/**
 * TRON Wiki — Premium visual layer ($1M polish)
 */

/* ── Global atmosphere ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::before { opacity: 0.04; }

/* ── Lucide icon system ── */
.lucide, [data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-sidebar) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.5);
  color: var(--text-secondary);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), color var(--duration-fast);
}

.icon-box .lucide { width: 18px; height: 18px; }

.icon-box--sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.icon-box--sm .lucide { width: 15px; height: 15px; }

.icon-box--accent {
  background: linear-gradient(145deg, var(--color-accent-soft) 0%, rgba(37,99,235,0.06) 100%);
  border-color: var(--color-accent-muted);
  color: var(--color-accent-ink);
}

.icon-box--brand {
  background: linear-gradient(145deg, var(--color-brand-soft) 0%, rgba(255,6,10,0.04) 100%);
  border-color: var(--color-brand-muted);
  color: #B91C1C;
}

a:hover .icon-box,
.cat-tile:hover .cat-tile__icon,
.tool-card:hover .tool-card__icon {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-sm);
}

/* ── Premium sidebar ── */
.sidebar__link {
  position: relative;
}

.sidebar__link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, var(--color-brand), var(--color-accent));
  border-radius: 0 3px 3px 0;
}

.sidebar__link .lucide {
  width: 16px;
  height: 16px;
  opacity: 0.45;
}

.sidebar__link.is-active .lucide { opacity: 0.9; color: var(--color-accent-ink); }

.sidebar__logo {
  position: relative;
  overflow: hidden;
}

.sidebar__logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] .sidebar__logo::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 55%);
}

/* ── Premium topbar search (Raycast-style) ── */
.topbar__search-trigger {
  position: relative;
  background: var(--bg-sidebar);
  box-shadow: none;
  border-color: var(--border);
  color: var(--text-muted);
  gap: var(--space-2);
}

.topbar__search-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__search-trigger .lucide {
  width: 16px;
  height: 16px;
  opacity: 0.55;
  flex-shrink: 0;
}

.topbar__search-trigger:hover {
  border-color: var(--color-muted-light);
  box-shadow: none;
  color: var(--text-secondary);
  background: var(--bg-surface);
}

/* ── Hero ultra premium ── */
.hero-docs {
  margin-bottom: var(--space-12);
}

.hero-docs__orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  animation: orb-float 18s ease-in-out infinite;
  pointer-events: none;
}

.hero-docs__orb--2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,6,10,0.08) 0%, transparent 70%);
  top: auto;
  bottom: -60px;
  right: auto;
  left: 40%;
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 15px) scale(1.05); }
  66% { transform: translate(15px, -10px) scale(0.98); }
}

.hero-docs h1 {
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-docs h1 {
  background: linear-gradient(135deg, #FAFAFA 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.chip .lucide {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.chip:hover .lucide { opacity: 0.9; color: var(--color-accent); }

/* ── Stat cards premium ── */
.stat-card {
  position: relative;
  background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-sidebar) 100%);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.5);
}

.stat-card__icon {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  opacity: 0.35;
  color: var(--color-accent);
}

.stat-card__icon .lucide { width: 22px; height: 22px; }

.stat-card__value {
  background: linear-gradient(135deg, var(--text) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .stat-card__value {
  background: linear-gradient(135deg, #FAFAFA 30%, #71717A 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Category tiles ── */
.cat-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--tile-bg, var(--bg-sidebar)) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.4);
  font-size: 0;
}

.cat-tile__icon .lucide {
  width: 20px;
  height: 20px;
  color: var(--tile-accent, var(--color-accent));
}

.cat-tile:hover .cat-tile__icon {
  border-color: var(--color-accent-muted);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-accent-muted);
}

/* ── Featured glow ── */
.featured {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.04) 0%, transparent 50%),
    linear-gradient(165deg, var(--bg-sidebar) 0%, var(--bg-surface) 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.5);
}

.featured::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Cards luxury hover ── */
.card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(250,250,250,0.5) 100%);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="dark"] .card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(17,17,19,0.5) 100%);
  box-shadow: var(--shadow-xs);
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-accent-muted);
  transform: translateY(-3px);
}

.card__arrow .lucide {
  width: 16px;
  height: 16px;
}

/* ── Path cards — layout in features.css ── */
/* ── Tool cards ── */
.tool-card__icon {
  background: linear-gradient(145deg, var(--color-accent-soft) 0%, rgba(37,99,235,0.05) 100%);
  border: 1px solid var(--color-accent-muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.tool-card__icon .lucide { width: 20px; height: 20px; }

.tool-card__arrow .lucide { width: 16px; height: 16px; }

/* ── Code block mac chrome ── */
.code-block {
  background: #F8F9FB;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="dark"] .code-block { background: #0C0C0E; }

.code-block__header::before {
  content: '';
  display: flex;
  gap: 5px;
  width: 42px;
  height: 10px;
  background:
    radial-gradient(circle, #FF5F57 3px, transparent 3px) 0 50%,
    radial-gradient(circle, #FEBC2E 3px, transparent 3px) 50% 50%,
    radial-gradient(circle, #28C840 3px, transparent 3px) 100% 50%;
  background-size: 10px 10px;
  background-repeat: no-repeat;
  margin-right: var(--space-2);
}

.code-block__header {
  display: flex;
  align-items: center;
}

.article-nav__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.article-nav__label .lucide { width: 14px; height: 14px; opacity: 0.5; }

.code-block__copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ── Premium footer ── */
.site-footer--premium {
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-12) var(--page-gutter) var(--space-6);
  background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-canvas, var(--bg)) 100%);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--space-10);
  width: 100%;
  margin: 0 auto var(--space-10);
}

.footer-brand__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-3);
  max-width: 280px;
}

.footer-col__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-col a .lucide { width: 14px; height: 14px; opacity: 0.4; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  width: 100%;
  margin: 0 auto;
  padding-top: var(--space-6);
  padding-right: var(--to-top-clearance, calc(42px + var(--space-5) + var(--space-3)));
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Donate: sidebar card + footer chip ── */
.donate-card {
  position: relative;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
}

.donate-card__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 6, 10, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.donate-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.donate-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.donate-card__badge .lucide {
  width: 13px;
  height: 13px;
  color: #e5484d;
}

.donate-card__network {
  font-size: 0.62rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.donate-card__hint {
  margin: 0 0 var(--space-2);
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.donate-card__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.donate-card__addr {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  opacity: 0.88;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
}

.donate-card__addr:hover {
  color: var(--text-secondary);
  opacity: 1;
  border-color: var(--color-muted-light);
}

.donate-card__copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-sidebar);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}

.donate-card__copy .lucide { width: 12px; height: 12px; }

.donate-card__copy:hover {
  background: var(--bg-surface);
  border-color: var(--color-muted-light);
  color: var(--text);
  transform: translateY(-1px);
}

.donate-card__copy.is-copied {
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

.donate-card__scan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-2);
  font-size: 0.62rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-decoration: none;
}

.donate-card__scan:hover {
  color: var(--text);
  text-decoration: none;
}

.donate-card__scan .lucide { width: 11px; height: 11px; }

.donate-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  background: var(--bg-sidebar);
  border-radius: 999px;
}

.donate-chip__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #e5484d;
}

.donate-chip__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 6, 10, 0.14);
  animation: donate-pulse 2.8s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes donate-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 640px) {
  .donate-chip__icon::after {
    animation: none;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donate-chip__icon::after {
    animation: none;
    opacity: 0;
  }
}

.donate-chip__icon .lucide { width: 14px; height: 14px; }

.donate-chip__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.donate-chip__label {
  font-size: 0.62rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.donate-chip__label em {
  font-style: normal;
  font-weight: var(--weight-medium);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  opacity: 0.85;
}

.donate-chip__addr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  opacity: 0.9;
  text-decoration: none;
  white-space: nowrap;
}

.donate-chip__addr:hover {
  color: var(--text-secondary);
  opacity: 1;
}

.donate-chip__copy {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}

.donate-chip__copy .lucide { width: 14px; height: 14px; }

.donate-chip__copy:hover {
  color: var(--text);
  border-color: var(--color-muted-light);
  transform: scale(1.05);
}

.donate-chip__copy.is-copied {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}

.footer-brand__icon {
  width: 32px;
  height: 32px;
}

/* legacy donate blocks — kept for old static pages */
.footer-donate {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  background: var(--bg-sidebar);
  border-radius: var(--radius-lg);
}

.footer-donate__label {
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
  opacity: 0.75;
}

.footer-donate__addr {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.footer-donate__addr:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-donate__copy {
  height: 30px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  transition:
    background var(--duration-fast),
    border-color var(--duration-fast),
    color var(--duration-fast),
    opacity var(--duration-fast),
    transform var(--duration-fast) var(--ease-out);
  opacity: 0.78;
}

.footer-donate__copy:hover {
  opacity: 1;
  background: var(--bg-surface);
  border-color: var(--color-muted-light);
  color: var(--text);
  transform: translateY(-1px);
}

/* ── Palette premium ── */
.palette__item-icon {
  font-size: 0;
  background: linear-gradient(145deg, var(--bg-sidebar), var(--bg-surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.palette__item-icon .lucide { width: 16px; height: 16px; color: var(--color-accent); }

/* ── Article toolbar ── */
.article-toolbar {
  background: linear-gradient(180deg, var(--bg-sidebar) 0%, rgba(247,247,248,0.5) 100%);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.5);
}

.article-toolbar__btn .lucide { width: 14px; height: 14px; }

/* ── Feedback premium ── */
.feedback {
  background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.feedback__btn .lucide { width: 16px; height: 16px; }

/* ── Related cards ── */
.related {
  background: linear-gradient(135deg, var(--bg-sidebar) 0%, var(--bg-surface) 100%);
  box-shadow: var(--shadow-xs);
}

.related__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.related__title .lucide {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  opacity: 0.8;
}

.related__item span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.related__item span .lucide {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.related__item:hover span .lucide {
  opacity: 0.6;
  transform: translate(1px, -1px);
}

.related__item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons luxury ── */
.btn--primary {
  background: linear-gradient(180deg, #3B82F6 0%, var(--color-accent) 100%);
  box-shadow: var(--shadow-sm), 0 1px 2px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #60A5FA 0%, var(--color-accent-hover) 100%);
  box-shadow: var(--shadow-md), 0 4px 12px rgba(37,99,235,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ── Announcement premium ── */
.announce {
  background: linear-gradient(90deg, #0C0A09 0%, #1C1917 40%, #0F172A 100%);
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.announce .lucide {
  width: 14px;
  height: 14px;
  color: #4ADE80;
}

/* ── Hub cards ── */
.hub-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-sidebar) 100%);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}

.hub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hub-card__list a .lucide {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.hub-card__list a:hover .lucide { opacity: 0.5; }

/* ── Newsletter premium ── */
.newsletter {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-surface) 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.5);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-docs__orb { display: none; }
}

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

.glossary-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.glossary-letter {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.glossary-entry {
  margin-bottom: var(--space-5);
}

.glossary-entry h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.glossary-list .glossary-entry p {
  margin: 0;
  color: var(--text-secondary);
}

/* ── Glass topbar ── */
.topbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

[data-theme="dark"] .topbar {
  background: rgba(9, 9, 11, 0.78);
}

/* ── Section titles ── */
.section-title h2 {
  letter-spacing: -0.03em;
}

.section-title a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--weight-medium);
}

.section-title a::after {
  content: '→';
  opacity: 0.5;
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}

.section-title a:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* ── Featured CTA ── */
.featured .btn--primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.featured .btn--primary .lucide {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast);
}

.featured .btn--primary:hover .lucide { transform: translateX(3px); }

/* ── Article list luxury ── */
.article-list__item {
  transition: background var(--duration-fast), padding var(--duration-fast);
  border-radius: var(--radius-md);
  margin: 0 calc(var(--space-2) * -1);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.article-list__item:hover {
  background: var(--bg-sidebar);
}

.article-list__title a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.article-list__title a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-muted);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.article-list__item:hover .article-list__title a::before { opacity: 1; }

/* ── Glossary tags ── */
.tag--link {
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast);
}

.tag--link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
  border-color: var(--color-accent-muted);
}

/* ── TOC premium rail ── */
.toc {
  background: linear-gradient(180deg, var(--bg-sidebar) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.toc__link.is-active {
  color: var(--color-accent-ink);
  font-weight: var(--weight-medium);
}

.toc__link.is-active::before {
  background: linear-gradient(180deg, var(--color-brand), var(--color-accent));
}

/* ── Prose article title ── */
.prose > h1:first-of-type,
.article-layout__content > h1 {
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .prose > h1:first-of-type,
[data-theme="dark"] .article-layout__content > h1 {
  background: linear-gradient(135deg, #FAFAFA 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Alerts with Lucide ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.4);
}

.alert__icon,
.alert .lucide.alert__icon,
.alert svg.alert__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert__content {
  flex: 1;
  min-width: 0;
}

.alert__body p {
  margin: 0 0 var(--space-2);
}

.alert__body p:last-child {
  margin-bottom: 0;
}

/* ── Steps premium ── */
.step::before {
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.3);
  background: linear-gradient(145deg, var(--color-accent) 0%, #1D4ED8 100%);
}

/* ── Article nav ── */
.article-nav__item {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-sidebar) 100%);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}

.article-nav__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ── Breadcrumb ── */
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ── Primary button icons ── */
.btn--primary .lucide { width: 15px; height: 15px; }

/* ── Newsletter ── */
.newsletter__form .btn--primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Sidebar collapse icon flip ── */
.shell.is-collapsed .sidebar__collapse .lucide {
  transform: rotate(180deg);
}

.sidebar__collapse .lucide {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-normal) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .hero-docs__orb { animation: none; }
}

/* ── Monochrome redesign overrides (no violet/purple gradients) ── */
.hero-docs__orb,
.hero-docs__orb--2 {
  display: none !important;
}

.hero-docs h1,
[data-theme="dark"] .hero-docs h1 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: var(--text) !important;
}

.sidebar__link.is-active::before {
  background: var(--color-accent) !important;
}

.toc,
.featured,
.card {
  background: var(--bg-sidebar) !important;
}

.featured::after {
  display: none !important;
}

.icon-box,
.icon-box--accent,
.icon-box--brand,
.stat-card,
.cat-tile__icon,
.article-nav__item {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
}

.step::before {
  background: var(--color-accent-soft) !important;
}
