/* Nexus AI Themes — Article Block Library
   All components theme through the design tokens (--c-*, --r, --font-head). */

/* ── Table of Contents ─────────────────────────────────────── */
.nexus-toc{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r-lg);padding:18px 20px;margin:0 0 28px}
.nexus-toc.is-sticky{position:sticky;top:80px}
.nexus-toc-title{font-family:var(--font-head);font-weight:800;font-size:15px;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;list-style:none}
.nexus-toc-title::-webkit-details-marker{display:none}
.nexus-toc-title::after{content:"–";float:right;color:var(--c-muted)}
.nexus-toc details:not([open]) .nexus-toc-title::after{content:"+"}
.nexus-toc-list{margin:14px 0 0;padding-left:18px}
.nexus-toc-list ol,.nexus-toc-list ul{margin:6px 0 6px 4px;padding-left:16px}
.nexus-toc-list li{margin:5px 0;line-height:1.4}
.nexus-toc-list a{color:var(--c-text);text-decoration:none;font-size:14px}
.nexus-toc-list a:hover,.nexus-toc-list a.is-active{color:var(--c-primary)}
.nexus-toc.is-numbered .nexus-toc-list{list-style:decimal}
.nexus-toc:not(.is-numbered) .nexus-toc-list{list-style:none;padding-left:0}

/* ── Key Takeaways ─────────────────────────────────────────── */
.nexus-takeaways{background:var(--c-tint,color-mix(in srgb,var(--c-primary) 8%,var(--c-surface)));border-left:4px solid var(--c-primary);border-radius:var(--r);padding:20px 24px;margin:0 0 28px}
.nexus-takeaways-title{font-family:var(--font-head);font-size:18px;font-weight:800;margin:0 0 10px}
.nexus-takeaways-list{margin:0;padding-left:20px}
.nexus-takeaways-list li{margin:6px 0;line-height:1.55}

/* ── Review boxes ──────────────────────────────────────────── */
.nexus-review-box{display:flex;gap:12px;align-items:center;background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r);padding:10px 14px;margin:0 0 14px;font-size:14px}
.nexus-review-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--c-success,#16a34a);color:#fff;font-weight:800;flex:none}
.nexus-review-box--expert .nexus-review-icon{background:var(--c-primary)}
.nexus-review-label{font-weight:800;margin-right:4px}
.nexus-review-cred{color:var(--c-muted)}
.nexus-review-cred::before{content:" — "}
.nexus-review-date{display:block;color:var(--c-muted);font-size:12px}

/* ── Author Authority box ──────────────────────────────────── */
.nexus-author-box{display:flex;gap:18px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r-lg);padding:22px;margin:32px 0}
.nexus-author-avatar img{width:84px;height:84px;border-radius:50%;object-fit:cover}
.nexus-author-name{font-family:var(--font-head);font-weight:800;font-size:18px;color:var(--c-text)}
.nexus-author-title{display:block;color:var(--c-muted);font-size:13px;margin-top:2px}
.nexus-author-creds{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:10px 0;padding:0}
.nexus-author-creds li{background:var(--c-tint,color-mix(in srgb,var(--c-primary) 10%,var(--c-surface)));color:var(--c-primary);font-size:12px;font-weight:700;padding:3px 9px;border-radius:99px}
.nexus-author-creds .cred-exp{background:var(--c-primary);color:var(--c-on-primary,#fff)}
.nexus-author-expertise{font-size:14px;margin:8px 0}
.nexus-author-bio{color:var(--c-muted);font-size:14px;line-height:1.6;margin:8px 0}
.nexus-author-socials{display:flex;gap:14px;margin-top:8px}
.nexus-author-social{font-size:13px;font-weight:600;color:var(--c-primary)}
@media(max-width:560px){.nexus-author-box{flex-direction:column}}

/* ── Sticky Share bar ──────────────────────────────────────── */
.nexus-share{position:fixed;left:max(16px,calc(50% - var(--container)/2 - 64px));top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:8px;z-index:40}
.nexus-share-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--c-surface);border:1px solid var(--c-border);color:var(--c-text);cursor:pointer;transition:transform .15s,color .15s,border-color .15s}
.nexus-share-btn:hover{color:var(--c-primary);border-color:var(--c-primary);transform:translateY(-2px)}
.nexus-share-copy{position:relative}
.nexus-share-tip{position:absolute;left:50px;background:var(--c-text);color:var(--c-bg);font-size:11px;padding:2px 7px;border-radius:4px;opacity:0;pointer-events:none;white-space:nowrap;transition:opacity .15s}
.nexus-share-copy.is-copied .nexus-share-tip{opacity:1}
@media(max-width:1180px){
  .nexus-share{left:0;right:0;top:auto;bottom:0;transform:none;flex-direction:row;justify-content:center;gap:6px;padding:8px;background:var(--c-surface);border-top:1px solid var(--c-border)}
  .nexus-share-tip{left:50%;top:-30px;transform:translateX(-50%)}
}

/* ── Related ───────────────────────────────────────────────── */
.nexus-related{margin:40px 0}
.nexus-related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px}
