/**
 * SecureHold WP — Article page styles.
 * Scoped to .sh-page-article (body class set by layout.php).
 * Requires homepage.css (base tokens + reset). Enqueued by the router.
 *
 * Design source: SecureHold WP - Article.html (Claude Design, 2026-05-11)
 */

/* ═══════════════════════════════════════════
   PAGE-LEVEL OVERRIDES + MISSING TOKENS
   ═══════════════════════════════════════════ */

.sh-homepage.sh-page-article {
  background: #ffffff;
  --radius-md: 12px;
  --radius-lg: 16px;
  /* Color tokens not defined in homepage.css */
  --emerald-hover: #059669;
  --emerald-light: #d1fae5;
  --amber:         #d97706;
  --amber-light:   #fef3c7;
  --rose:          #e11d48;
  --sky:           #0284c7;
  --sky-light:     #e0f2fe;
  --brand-dark:    #1a3acc;
}

/* ═══════════════════════════════════════════
   BADGE — ALL 8 CATEGORY VARIANTS
   ═══════════════════════════════════════════ */

.sh-page-article .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid;
  background: #fff;
  white-space: nowrap;
}

.sh-page-article .badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.sh-page-article .badge.stripe   { color: #5b3aff;              border-color: #d8d0ff; background: #f4f1ff; }
.sh-page-article .badge.deposits { color: var(--brand-dark);    border-color: #c7d6ff; background: var(--brand-light); }
.sh-page-article .badge.use      { color: var(--emerald-hover); border-color: #a7f3d0; background: var(--emerald-light); }
.sh-page-article .badge.setup    { color: var(--sky);           border-color: #b9e2f6; background: var(--sky-light); }
.sh-page-article .badge.trouble  { color: var(--amber);         border-color: #fde68a; background: var(--amber-light); }
.sh-page-article .badge.compare  { color: #6d28d9;              border-color: #d8d0ff; background: #ede9fe; }
.sh-page-article .badge.updates  { color: var(--slate-700);     border-color: var(--slate-200); background: var(--slate-50); }
.sh-page-article .badge.agency   { color: #be185d;              border-color: #f9c5dc; background: #fce7f3; }

/* ═══════════════════════════════════════════
   ARTICLE HERO
   ═══════════════════════════════════════════ */

.sh-page-article .article-hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 36px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--slate-200);
  position: relative;
  overflow: hidden;
}

.sh-page-article .article-hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,91,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.sh-page-article .article-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

.sh-page-article .breadcrumb {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sh-page-article .breadcrumb a { color: var(--slate-500); text-decoration: none; }
.sh-page-article .breadcrumb a:hover { color: var(--slate-700); }
.sh-page-article .breadcrumb-sep { color: var(--slate-300); }
.sh-page-article .breadcrumb-current { color: var(--slate-700); font-weight: 500; }

.sh-page-article .article-hero .badge { margin-bottom: 16px; }

.sh-page-article .article-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin-bottom: 14px;
  max-width: 820px;
  text-wrap: balance;
}

.sh-page-article .article-hero h1 .subtitle-line {
  display: block;
  font-weight: 500;
  color: var(--slate-500);
  font-size: 0.62em;
  line-height: 1.25;
  margin-top: 10px;
  letter-spacing: -0.02em;
}

.sh-page-article .article-intro {
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate-600);
  max-width: 720px;
  margin-bottom: 28px;
}

.sh-page-article .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--slate-500);
  flex-wrap: wrap;
}

.sh-page-article .meta-row .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 600;
}

.sh-page-article .author-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--slate-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sh-page-article .meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--slate-300);
}

.sh-page-article .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-500);
}

/* Meta-row SVG icons: slate-400 per design */
.sh-page-article .meta-row svg { color: var(--slate-400); }

/* ═══════════════════════════════════════════
   ARTICLE WRAP — 2-COLUMN GRID
   ═══════════════════════════════════════════ */

.sh-page-article .article-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}

/* ═══════════════════════════════════════════
   TABLE OF CONTENTS
   ═══════════════════════════════════════════ */

.sh-page-article .toc-wrap {
  order: 2;
}

@media (min-width: 901px) {
  .sh-page-article .toc-wrap {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}

.sh-page-article .toc {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.sh-page-article .toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-page-article .toc-title::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.sh-page-article .toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.sh-page-article .toc-list a {
  display: block;
  padding: 9px 12px 9px 16px;
  margin-left: -12px;
  border-radius: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slate-600);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.sh-page-article .toc-list a:hover {
  color: var(--slate-900);
  background: var(--slate-50);
  text-decoration: none;
}

.sh-page-article .toc-list a.active {
  color: var(--brand-dark);
  background: var(--brand-light);
  border-left-color: var(--brand);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(47,91,255,0.12);
}

/* ═══════════════════════════════════════════
   ARTICLE CONTENT — PROSE
   ═══════════════════════════════════════════ */

.sh-page-article .article-content {
  min-width: 0;
  order: 1;
  max-width: 740px;
}

/* scroll-margin-top: both on section (matches standalone) and on H2 (TOC target). */
.sh-page-article .article-content > section {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* scroll-margin-top on H2 so sticky nav doesn't cover headings when TOC links to injected IDs */
.sh-page-article .article-content h2 {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--slate-900);
  margin-top: 48px;
  margin-bottom: 16px;
  text-wrap: balance;
}

/* No top margin on the very first H2 */
.sh-page-article .article-content > h2:first-child,
.sh-page-article .article-content > section:first-child h2 {
  margin-top: 0;
}

.sh-page-article .article-content p {
  font-size: 17.5px;
  line-height: 1.82;
  color: var(--slate-700);
  margin-bottom: 20px;
}

.sh-page-article .article-content p strong { color: var(--slate-900); font-weight: 600; }

.sh-page-article .article-content a:not(.btn-primary):not(.btn-secondary):not(.btn):not(.read-link) {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(47, 91, 255, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.sh-page-article .article-content a:not(.btn-primary):not(.btn-secondary):not(.btn):not(.read-link):visited {
  color: var(--brand);
}

.sh-page-article .article-content a:not(.btn-primary):not(.btn-secondary):not(.btn):not(.read-link):hover {
  color: var(--brand-dark);
  text-decoration-color: currentColor;
}

.sh-page-article .article-content a:not(.btn-primary):not(.btn-secondary):not(.btn):not(.read-link):focus-visible {
  outline: 2px solid rgba(47, 91, 255, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.sh-page-article .article-content ul,
.sh-page-article .article-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--slate-700);
}

.sh-page-article .article-content li {
  font-size: 17.5px;
  line-height: 1.78;
  margin-bottom: 10px;
}

.sh-page-article .article-content li strong { color: var(--slate-900); font-weight: 600; }

/* FAQ h2 inside the appended section */
.sh-page-article .article-section-faq h2 {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* ═══════════════════════════════════════════
   CALLOUT
   ═══════════════════════════════════════════ */

.sh-page-article .callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--brand-light);
  border: 1px solid #c7d6ff;
  border-radius: var(--radius-md);
  margin: 22px 0 28px;
}

.sh-page-article .callout-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}

.sh-page-article .callout-body  { flex: 1; min-width: 0; }
/* Alias: .callout-content = .callout-body (backward compat with older article HTML) */
.sh-page-article .callout-content { flex: 1; min-width: 0; }

.sh-page-article .callout-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.sh-page-article .callout-body p,
.sh-page-article .callout-content p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--slate-800) !important;
  margin: 0 !important;
}

.sh-page-article .callout.warning {
  background: var(--amber-light);
  border-color: #fde68a;
}

.sh-page-article .callout.warning .callout-icon { color: var(--amber); }
.sh-page-article .callout.warning .callout-label { color: #92400e; }
.sh-page-article .callout.warning .callout-body p,
.sh-page-article .callout.warning .callout-content p { color: #78350f !important; }

/* ═══════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════ */

.sh-page-article .compare-table-wrap {
  margin: 22px 0 28px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sh-page-article .compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.sh-page-article .compare-table thead th {
  background: var(--slate-50);
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--slate-700);
  font-size: 13px;
  border-bottom: 1px solid var(--slate-200);
}

.sh-page-article .compare-table thead th:first-child {
  color: var(--slate-500);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sh-page-article .compare-table thead th.hold {
  color: var(--brand-dark);
  background: var(--brand-light);
}

.sh-page-article .compare-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  line-height: 1.5;
  vertical-align: top;
}

.sh-page-article .compare-table tbody tr:last-child td { border-bottom: none; }

.sh-page-article .compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--slate-900);
  background: #fff;
  width: 32%;
}

.sh-page-article .compare-table td.hold-cell { background: rgba(47,91,255,0.03); }

.sh-page-article .cell-yes,
.sh-page-article .cell-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.sh-page-article .cell-yes { color: var(--emerald-hover); }
.sh-page-article .cell-no  { color: var(--rose); }

/* ═══════════════════════════════════════════
   STEP LIST
   ═══════════════════════════════════════════ */

.sh-page-article .step-list {
  list-style: none;
  padding-left: 0 !important;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sh-page-article .step-list li {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin: 0;
  line-height: 1.55;
  color: var(--slate-800);
  font-size: 15.5px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

.sh-page-article .step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--slate-900);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   USE CASE GRID
   ═══════════════════════════════════════════ */

.sh-page-article .use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 28px;
  list-style: none;
  padding-left: 0 !important;
}

.sh-page-article .use-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
}

.sh-page-article .use-chip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand-light);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   INLINE CTA
   ═══════════════════════════════════════════ */

.sh-page-article .inline-cta {
  margin: 28px 0;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-light) 100%);
  border: 1px solid #c7d6ff;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(47,91,255,0.04), 0 8px 24px rgba(47,91,255,0.06);
}

.sh-page-article .inline-cta h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 8px;
  text-wrap: balance;
}

.sh-page-article .inline-cta p {
  font-size: 15px !important;
  color: var(--slate-600) !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
}

.sh-page-article .inline-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Inline CTA buttons — WP site pattern (.btn.btn--primary from homepage.css) */
.sh-page-article .inline-cta .btn.btn--primary,
.sh-page-article .inline-cta .btn.btn--ghost {
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
}

/* ═══════════════════════════════════════════
   STANDALONE BUTTONS (.btn-primary / .btn-secondary)
   Used in inline-cta and doc-cta-band (design pattern).
   Scoped to .sh-page-article — no global impact.
   ═══════════════════════════════════════════ */

.sh-page-article .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(47,91,255,0.25);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.sh-page-article .btn-primary:hover {
  background: #1E48F0;
  box-shadow: 0 2px 8px rgba(47,91,255,0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.sh-page-article .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--slate-200);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.sh-page-article .btn-secondary:hover {
  border-color: var(--slate-300);
  color: var(--slate-900);
  background: var(--slate-50);
  text-decoration: none;
}

.sh-page-article .btn-primary.large,
.sh-page-article .btn-secondary.large {
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
}

/* ═══════════════════════════════════════════
   FAQ ACCORDIONS
   ═══════════════════════════════════════════ */

.sh-page-article .faq-list {
  list-style: none;
  padding: 0 !important;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-page-article .faq-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sh-page-article .faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  line-height: 1.4;
  user-select: none;
}

.sh-page-article .faq-summary::-webkit-details-marker { display: none; }

.sh-page-article .faq-summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--slate-400);
  border-bottom: 2px solid var(--slate-400);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}

.sh-page-article details[open] .faq-summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.sh-page-article .faq-body {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-600);
}

/* Override article-content prose styles inside FAQ body */
.sh-page-article .faq-body p {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--slate-600) !important;
  margin-bottom: 10px !important;
}
.sh-page-article .faq-body p:last-child { margin-bottom: 0 !important; }

/* ═══════════════════════════════════════════
   RELATED RESOURCES
   ═══════════════════════════════════════════ */

.sh-page-article .related-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px 0;
}

.sh-page-article .related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sh-page-article .related-header .left h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 6px;
}

.sh-page-article .related-header .left p {
  font-size: 14.5px;
  color: var(--slate-500);
}

.sh-page-article .related-header a.see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.sh-page-article .related-header a.see-all:hover { text-decoration: underline; }

.sh-page-article .related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sh-page-article .related-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.sh-page-article .related-card:hover {
  border-color: rgba(47,91,255,0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.sh-page-article .related-card .badge {
  align-self: flex-start;
  margin-bottom: 12px;
}

.sh-page-article .related-card h4 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  line-height: 1.4;
  margin-bottom: 12px;
  text-wrap: balance;
  flex: 1;
}

.sh-page-article .related-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--slate-200);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--slate-500);
}

.sh-page-article .read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   BOTTOM CTA BAND — DARK
   ═══════════════════════════════════════════ */

.sh-page-article .doc-cta-band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px 64px;
}

.sh-page-article .doc-cta-card {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1a2547 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sh-page-article .doc-cta-card::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,91,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.sh-page-article .doc-cta-card::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.sh-page-article .doc-cta-card > * { position: relative; z-index: 1; }

.sh-page-article .doc-cta-card h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
  text-wrap: balance;
}

.sh-page-article .doc-cta-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.sh-page-article .doc-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* doc-cta buttons: .btn-primary.large is already covered by the global .btn-primary.large rule above. */
/* .btn-ghost covers the "Explore resources" ghost button in the dark CTA card. */

.sh-page-article .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}

.sh-page-article .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1023px)
   ═══════════════════════════════════════════ */

@media (max-width: 1023px) {
  .sh-page-article .article-hero-inner { padding: 0 32px; }
  .sh-page-article .article-wrap       { padding: 40px 32px 0; gap: 44px; grid-template-columns: minmax(0, 1fr) 260px; }
  .sh-page-article .related-section    { padding: 56px 32px 0; }
  .sh-page-article .doc-cta-band       { padding: 56px 32px 48px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SINGLE COLUMN (≤ 900px)
   TOC moves above the article content
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .sh-page-article .article-wrap {
    grid-template-columns: 1fr;
    padding: 32px 32px 0;
    gap: 24px;
  }

  .sh-page-article .toc-wrap {
    order: -1; /* appears above article */
    position: static;
  }

  .sh-page-article .article-content { order: 1; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 767px)
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {
  .sh-page-article .article-hero { padding-top: calc(var(--nav-h) + 36px); }
  .sh-page-article .article-hero-inner { padding: 0 20px; }
  .sh-page-article .article-intro { font-size: 17px; }
  .sh-page-article .article-wrap  { padding: 28px 20px 0; }
  .sh-page-article .related-section { padding: 48px 20px 0; }
  .sh-page-article .doc-cta-band  { padding: 48px 20px 40px; }
  .sh-page-article .doc-cta-card  { padding: 36px 24px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — USE GRID 2-COL (≤ 720px)
   ═══════════════════════════════════════════ */

@media (max-width: 720px) {
  .sh-page-article .use-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — COMPARE TABLE COMPACT (≤ 600px)
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
  .sh-page-article .compare-table { font-size: 13.5px; }
  .sh-page-article .compare-table thead th,
  .sh-page-article .compare-table tbody td { padding: 12px; }
  .sh-page-article .compare-table tbody td:first-child { width: auto; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — RELATED GRID 2-COL (≤ 980px)
   ═══════════════════════════════════════════ */

@media (max-width: 980px) {
  .sh-page-article .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — RELATED GRID 1-COL (≤ 540px)
   ═══════════════════════════════════════════ */

@media (max-width: 540px) {
  .sh-page-article .related-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — USE GRID 1-COL (≤ 420px)
   Matches design breakpoint exactly
   ═══════════════════════════════════════════ */

@media (max-width: 420px) {
  .sh-page-article .use-grid { grid-template-columns: 1fr; }
}
