/* Shared long-form article layout */
.article-page {
  --article-brand-950:#17143F;
  --article-brand-900:#24205A;
  --article-brand-700:#3730A3;
  --article-brand-600:#4F46E5;
  --article-brand-400:#818CF8;
  --article-brand-200:#C7D2FE;
  --article-brand-50:#EEF2FF;
}

html:not([data-theme="dark"]) .article-page {
  /* Approved five-color light palette (light mode only; dark mode unchanged). */
  --article-brand-950:#0B1120;
  --article-brand-900:#1E293B;
  --article-brand-700:#4F46E5;
  --article-brand-600:#4F46E5;
  --article-brand-400:#C7D2FE;
  --article-brand-200:#C7D2FE;
  --article-brand-50:rgba(199,210,254,.28);
  --red-deep:#0B1120;
  --red-mid:#4F46E5;
  --red-dark:#0B1120;
  --red-lt:rgba(199,210,254,.28);
  --peach:#C7D2FE;
  --tangerine:#4F46E5;
  --bg-page:#F4F4F5;
  --bg-surface:rgba(199,210,254,.16);
  --bg-surface-2:rgba(199,210,254,.3);
  --bg-card:#FFFFFF;
  --text-primary:#0B1120;
  --text-body:#1E293B;
  --text-muted:rgba(30,41,59,.78);
  --text-subtle:rgba(30,41,59,.66);
  --text-link:#4F46E5;
  --border:rgba(30,41,59,.12);
  --border-md:rgba(30,41,59,.2);
}

.article-page .article-hero {
  padding-top:clamp(3rem,5vw,4.5rem);
  padding-bottom:clamp(2.5rem,4vw,3.5rem);
  background:var(--bg-page);
}

.article-page .article-hero::before {
  background:radial-gradient(ellipse 55% 70% at 82% 0%,rgba(99,102,241,.1),transparent 72%);
}

.article-hero-inner { max-width:64rem; }
.article-page .article-category {
  display:inline-flex;
  margin-bottom:1rem;
  padding:.42rem .8rem;
  border:1px solid rgba(79,70,229,.18);
  border-radius:999px;
  background:var(--article-brand-50);
  color:var(--article-brand-700);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
[data-theme="dark"] .article-page .article-category { background:rgba(129,140,248,.1);color:#C4B5FD;border-color:rgba(165,180,252,.2); }
.article-page .article-title {
  max-width:21ch;
  margin:0;
  color:var(--text-primary);
  font-size:clamp(2.15rem,4vw,3.5rem);
  line-height:1.04;
  letter-spacing:-.045em;
}
.article-byline { display:flex;align-items:center;gap:.85rem;margin-top:1.5rem;color:var(--text-muted); }
.article-byline .author-avatar { width:44px;height:44px;border-color:rgba(79,70,229,.22);object-fit:cover;object-position:58% 25%; }
.article-byline-name { color:var(--text-primary);font-weight:700;font-size:.9rem; }
.article-byline-meta { color:var(--text-subtle);font-size:.78rem;margin-top:.15rem; }
[data-theme="dark"] .article-byline-meta { color:#A1A1AA; }

.article-content-section { background:var(--bg-page);border-bottom:1px solid var(--border); }
.article-page .article-layout { grid-template-columns:minmax(0,1fr) 320px;gap:clamp(2.5rem,5vw,5rem); }
.article-page .service-detail-body { max-width:56rem; }
.article-page .article-lead { font-size:clamp(1.08rem,2vw,1.25rem);line-height:1.8;color:var(--text-primary);font-weight:500; }
.article-page .article-figure { margin:2.5rem 0; }
.article-page .service-detail-body h2::before { background:var(--article-brand-600); }
.article-page .service-detail-body .deliverables-list .feature-icon { color:var(--article-brand-700); }
[data-theme="dark"] .article-page .service-detail-body .deliverables-list .feature-icon { color:#C4B5FD; }
.article-page .service-detail-body p:has(> strong:first-child) { border-left-color:var(--article-brand-600);background:rgba(79,70,229,.035); }
.article-page .service-detail-body a[href]:not(.btn):not(.article-linkedin) { color:var(--article-brand-700)!important;text-decoration-color:rgba(79,70,229,.38); }
.article-page .service-detail-body a[href]:not(.btn):not(.article-linkedin):hover { color:var(--article-brand-600)!important;text-decoration-color:var(--article-brand-600); }

.article-takeaway {
  margin:1.75rem 0 2.25rem;
  padding:1.15rem 1.25rem;
  border:1px solid rgba(79,70,229,.16);
  border-left:4px solid var(--article-brand-600);
  border-radius:0 var(--r-md) var(--r-md) 0;
  background:var(--article-brand-50);
}
.article-takeaway strong { display:block;color:var(--article-brand-700);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.35rem; }
.article-takeaway p { margin:0!important;font-size:.95rem!important;line-height:1.65!important;color:var(--text-body)!important; }
[data-theme="dark"] .article-takeaway { background:rgba(129,140,248,.08);border-color:rgba(165,180,252,.18);border-left-color:#818CF8; }
[data-theme="dark"] .article-takeaway strong { color:#C4B5FD; }

.article-cta {
  margin-top:3rem;
  padding:clamp(1.5rem,3vw,2.25rem);
  border:1px solid rgba(165,180,252,.2);
  border-radius:var(--r-xl);
  background:linear-gradient(135deg,var(--article-brand-900),var(--article-brand-950));
  box-shadow:0 20px 48px rgba(23,20,63,.18);
}
.article-page .service-detail-body .article-cta h2 { margin:0 0 .55rem;padding:0;border:0;color:#FFFFFF;font-size:clamp(1.55rem,3vw,2rem); }
.article-page .service-detail-body .article-cta h2::before { display:none; }
.article-page .service-detail-body .article-cta p { color:rgba(255,255,255,.72);font-size:.95rem;line-height:1.7;margin-bottom:1.25rem;max-width:58ch; }
.article-cta .btn { font-size:.9rem;padding:.8rem 1.35rem;background:#FFFFFF;border-color:#FFFFFF;color:var(--article-brand-900);box-shadow:none; }
.article-cta .btn:hover { background:#C7D2FE;border-color:#C7D2FE;color:var(--article-brand-900); }

.article-author { margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border); }
.article-author-heading { display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem; }
.article-author-heading h2 { margin:0!important;padding:0!important;border:0!important;font-size:1.15rem!important; }
.article-author-heading h2::before { display:none; }
.article-page .service-detail-body .article-author-heading a.article-linkedin { display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:#3730A3;color:#FFFFFF!important;text-decoration:none!important; }
.article-page .service-detail-body .article-author-heading a.article-linkedin:hover { background:#312E81;color:#FFFFFF!important;text-decoration:none; }
.article-author-card { padding:1.35rem;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--bg-surface); }
.article-author-card .author-card-inner { margin:0;align-items:center; }
.article-author-card img { width:88px;height:88px;border-radius:var(--r-md);object-fit:cover;object-position:58% 25%;flex-shrink:0; }
.article-author-name { margin:0 0 .35rem!important;color:var(--text-primary)!important;font-weight:800; }
.article-author-bio { margin:0!important;font-size:.88rem!important;line-height:1.7!important;color:var(--text-muted)!important; }
.article-author-links { margin:.85rem 0 0!important;padding-top:.85rem;border-top:1px solid var(--border);font-size:.82rem!important;line-height:1.6!important;color:var(--text-muted)!important; }

.article-page .sticky-sidebar { top:6.5rem; }
.article-page .sidebar-card { padding:1.35rem;margin-bottom:1rem;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--bg-card);box-shadow:none; }
.article-page .sidebar-card:hover { box-shadow:var(--shadow-sm); }
.article-page .sidebar-card p { color:var(--text-muted);font-size:.86rem;line-height:1.65;margin-bottom:1rem; }
.article-toc { list-style:none;display:flex;flex-direction:column;gap:.15rem;margin-top:.35rem; }
.article-toc a { display:block;padding:.45rem .55rem;border-radius:7px;color:var(--text-muted);font-size:.82rem;line-height:1.4;text-decoration:none; }
.article-toc a:hover { color:var(--article-brand-700);background:var(--article-brand-50); }
.article-sidebar-cta { background:var(--article-brand-950)!important;border-color:var(--article-brand-950)!important; }
.article-page .article-sidebar-cta h2 { color:#FFFFFF;font-family:var(--ff-display);font-size:1.2rem;margin-bottom:.55rem; }
.article-page .article-sidebar-cta p { color:rgba(255,255,255,.76); }
.article-sidebar-cta .btn { width:100%;justify-content:center;font-size:.82rem;padding:.75rem 1rem;background:#4F46E5;border-color:#4F46E5;color:#FFFFFF; }
.article-related { display:flex;flex-direction:column;gap:.2rem;margin-top:.25rem; }
.article-related a { display:block;padding:.48rem 0;border-bottom:1px solid var(--border);color:var(--article-brand-700);font-size:.82rem;line-height:1.45; }
.article-related li:last-child a { border-bottom:0; }

.article-faq { margin-top:3.5rem; }
.article-page .service-detail-body .article-faq>h2 { margin-bottom:1.25rem; }
.article-faq .faq-list { display:flex;flex-direction:column;gap:.65rem; }
.article-faq .faq-item { border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg-card);overflow:hidden; }
.article-faq .faq-question { width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border:0;background:transparent;color:var(--text-primary);font:700 .95rem/1.45 var(--ff-body);text-align:left;cursor:pointer; }
.article-faq .faq-icon { color:var(--article-brand-600); }
.article-faq .faq-answer p { margin:0!important;padding:0 1.1rem 1rem;font-size:.9rem!important;line-height:1.7!important;color:var(--text-muted)!important;max-width:none; }

html:not([data-theme="dark"]) .article-author-card,
html:not([data-theme="dark"]) .article-page .sidebar-card,
html:not([data-theme="dark"]) .article-faq .faq-item {
  background:linear-gradient(180deg,#F8FAFF 0%,#F4F6FC 100%);
  border-color:#D7DCE8;
  box-shadow:0 10px 28px rgba(15,23,42,.055);
}
html:not([data-theme="dark"]) .article-page .sidebar-card:hover { box-shadow:0 14px 34px rgba(15,23,42,.08); }

[data-theme="dark"] .article-page .service-detail-body a[href]:not(.btn):not(.article-linkedin) {
  color:#C4B5FD!important;
  text-decoration-color:rgba(196,181,253,.45);
}
[data-theme="dark"] .article-page .service-detail-body a[href]:not(.btn):not(.article-linkedin):hover {
  color:#DDD6FE!important;
  text-decoration-color:#A78BFA;
}
[data-theme="dark"] .article-related a { color:#A5B4FC; }
[data-theme="dark"] .article-page .article-figure figcaption { color:#A1A1AA; }

@media(max-width:1024px) {
  .article-page .article-layout { grid-template-columns:minmax(0,1fr) 280px;gap:2.5rem; }
}
@media(max-width:860px) {
  .article-page .article-layout { grid-template-columns:1fr; }
  .article-page .service-detail-body { max-width:none; }
  .article-page .sticky-sidebar { position:static;display:grid;grid-template-columns:1fr 1fr;gap:1rem; }
  .article-page .sticky-sidebar .sidebar-card { margin:0; }
  .article-page .sticky-sidebar .sidebar-card:first-child { grid-column:1/-1; }
}
@media(max-width:600px) {
  .article-page .article-hero { padding-top:2.5rem;padding-bottom:2.25rem; }
  .article-page .article-title { font-size:clamp(2rem,9vw,2.65rem); }
  .article-byline { align-items:flex-start; }
  .article-page .sticky-sidebar { grid-template-columns:1fr; }
  .article-page .sticky-sidebar .sidebar-card:first-child { grid-column:auto; }
  .article-author-card .author-card-inner { align-items:flex-start; }
}
