/*
 * article.css — the article page's own look (2026-11-09).
 *
 * These rules lived in the <head> of the authored page every article used to
 * be poured into (`blog-the-power-of-rainbow`). The article page is drawn by
 * `@rainbow/core/articleLayout` now, so its look is a stylesheet of its own,
 * loaded by that page alone, with the same values: an article looks as it did.
 */

/* ── Skip link ── */
.skip-link { position: absolute; left: 0.5rem; top: 0.5rem; z-index: 9999; padding: 0.5rem 1rem; background: #5e2d91; color: #fff; border-radius: 8px; font-size: 0.875rem; font-weight: 600; transform: translateY(-200%); transition: transform .2s; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* ── Breadcrumb ── */
.breadcrumb-nav ol { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb-nav li { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: #9ca3af; }
.breadcrumb-nav li a { color: #9ca3af; text-decoration: none; transition: color .15s; }
.breadcrumb-nav li a:hover { color: #5e2d91; }
.breadcrumb-nav li[aria-current="page"] span { color: #374151; font-weight: 500; }
.breadcrumb-sep { color: #d1d5db; }

/* ── Article prose ── */
.prose-article h2:not(.article-block *) { font-size: 1.5rem; font-weight: 700; color: #1e1b4b; margin-top: 2.5rem; margin-bottom: 1rem; scroll-margin-top: 96px; }
.prose-article h3:not(.article-block *) { font-size: 1.125rem; font-weight: 600; color: #312e81; margin-top: 1.75rem; margin-bottom: 0.75rem; scroll-margin-top: 96px; }
.prose-article p:not(.article-block *) { color: #374151; line-height: 1.8; margin-bottom: 1.25rem; font-size: 1rem; }
.prose-article ul:not(.article-block *) { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: none; }
.prose-article ul li:not(.article-block *) { position: relative; padding-left: 1.25rem; margin-bottom: 0.6rem; color: #374151; font-size: 1rem; line-height: 1.75; }
.prose-article ul li:not(.article-block *)::before { content: ''; position: absolute; left: 0; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%; background: #5e2d91; }

/* ── Key points box ── */
.key-points-box { background: #f0f5ff; border-radius: 16px; padding: 1.75rem 2rem; margin-bottom: 2rem; }
.key-points-box h2 { font-size: 1.0625rem; font-weight: 700; color: #1e3a6e; margin-bottom: 1rem; margin-top: 0; }
.key-points-box li { color: #1e3264 !important; }
.key-points-box li::before { background: #3730a3 !important; border-radius: 2px !important; width: 7px !important; height: 7px !important; }

/* ── Inline CTA banner ── */
.inline-cta { background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%); border-radius: 14px; padding: 1.5rem 2rem; margin: 2rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.inline-cta p { color: #e0e7ff !important; margin-bottom: 0 !important; font-weight: 600; font-size: 0.9375rem; }
.inline-cta a { flex-shrink: 0; padding: 8px 20px; border-radius: 8px; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.25); color: #fff; font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background .18s; display: inline-flex; align-items: center; gap: 6px; }
.inline-cta a:hover { background: rgba(255,255,255,0.2); }

/* ── Sticky sidebar ── */
.sidebar-sticky { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; }
.sidebar-sticky::-webkit-scrollbar { display: none; }

/* ── Contents list ── */
.toc-container { border: 1.5px solid #e9e5ff; border-radius: 14px; background: #fff; overflow: hidden; margin-bottom: 1.25rem; }
.toc-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 0.9375rem; font-weight: 700; color: #1e1b4b; background: none; border: none; cursor: pointer; }
.toc-chevron { transition: transform .2s; }
.toc-chevron.open { transform: rotate(180deg); }
.toc-list { padding: 0 18px 14px; display: none; list-style: none; margin: 0; }
.toc-list.visible { display: block; }
.toc-list li { margin: 0; }
.toc-list li::before { display: none; }
.toc-list a { display: block; padding: 5px 0; font-size: 0.8125rem; color: #5e2d91; text-decoration: none; border-left: 2px solid transparent; padding-left: 10px; transition: border-color .15s, color .15s; }
.toc-list a:hover, .toc-list a.active { border-left-color: #5e2d91; color: #3c1c5e; font-weight: 600; }

/* ── Resource card (the white book) ── */
.resource-card { border: 1.5px solid #e9e5ff; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(94,45,145,.06); }
.resource-card-img-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%); display: flex; align-items: flex-end; padding: 14px; }
.resource-card-body { padding: 1.125rem 1.25rem 1.375rem; }
.resource-card-type { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; color: #ea580c; margin-bottom: 0.625rem; }
.resource-card-title { font-size: 1rem; font-weight: 700; color: #1e1b4b; margin-bottom: 0.75rem; line-height: 1.4; }
.resource-card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.875rem; font-weight: 600; color: #5e2d91; text-decoration: none; }
.resource-card-link:hover { color: #3c1c5e; gap: 8px; }

/* ── Article images ── */
.article-img { width: 100%; border-radius: 14px; display: block; }
.article-figure { margin: 2rem 0; }
.article-figure figcaption { text-align: center; font-size: 0.8125rem; color: #6b7280; margin-top: 0.625rem; }

/* ── Author avatar ── */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #5e2d91, #a78bfa); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }

/* ── Article tags ── */
.tag-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; background: #f5f3ff; color: #5e2d91; border: 1px solid #ddd6fe; text-decoration: none; transition: background .15s; }
.tag-pill:hover { background: #ede9fe; }

/* ── Mobile submenu ── */
.mobile-submenu { padding-left: 1rem; border-left: 2px solid #ede9fe; }
.mobile-submenu a { color: #5e2d91; font-size: 0.875rem; }
