
/* ========== Learn page — Final 5 ========== */
.learn-hero-v2--pattern {
  position: relative;
  overflow: hidden;
}
.learn-hero-v2--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.9;
}
.learn-hero-v2--pattern > .container {
  position: relative;
  z-index: 1;
}

.learn-layout-2col {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .learn-layout-2col {
    grid-template-columns: 1fr;
  }
}
.learn-sidebar-col {
  position: sticky;
  top: 88px;
}
.learn-controls--side {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 8px 22px rgba(15,23,42,0.04);
}
.learn-controls--side .learn-controls__row {
  flex-direction: column;
  align-items: stretch;
}
.learn-controls--side .learn-sort {
  width: 100%;
  justify-content: space-between;
}
.learn-controls--side .learn-sort__select { flex: 1; }
.learn-side-cta {
  padding: 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  box-shadow: none;
}
.learn-side-cta strong { display: block; margin-bottom: 6px; font-size: 14px; }
.learn-side-cta p { margin: 0 0 12px; font-size: 13px; color: #9a3412; }
.learn-side-cta .btn { width: 100%; justify-content: center; }

.learn-sticky-filters {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248,250,252,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
}
.learn-sticky-filters[hidden] { display: none !important; }
.learn-chips--sticky {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
@media (min-width: 961px) {
  .learn-sticky-filters { display: none !important; }
}

.learn-post__meta {
  flex-wrap: wrap;
}


/* ========== Learn page — Phase 3 ========== */
body:has(.learn-hero-v2) {
  background: #f8fafc;
}

.learn-start {
  margin: -8px auto 22px;
}
.learn-start__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 700px) {
  .learn-start__grid { grid-template-columns: 1fr; }
}
.learn-start__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 8px 22px rgba(15,23,42,0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.learn-start__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(15,23,42,0.05), 0 14px 28px rgba(15,23,42,0.07);
}
.learn-start__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.learn-start__card strong { font-size: 14px; }
.learn-start__card span { font-size: 12px; color: #64748b; }

.learn-transparency {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
}
.learn-transparency--on-dark {
  background: rgba(255,255,255,0.14);
  color: #e2e8f0;
}

/* Compact list */
.learn-feed--compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
}
.learn-feed--compact .learn-post {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  align-items: stretch;
}
.learn-feed--compact .learn-post__media {
  aspect-ratio: auto;
  min-height: 96px;
  height: 100%;
}
.learn-feed--compact .learn-post__body {
  padding: 12px 14px;
}
.learn-feed--compact .learn-post__excerpt {
  display: none;
}
.learn-feed--compact .learn-post__body h2 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* Stagger enter */
.learn-stagger {
  animation: learnFadeUp 0.45s ease both;
  animation-delay: calc(var(--stagger, 0) * 45ms);
}
@keyframes learnFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .learn-stagger {
    animation: none;
  }
  .learn-post:hover {
    transform: none;
  }
}

.learn-trust-box {
  margin: 8px auto 100px;
}
.learn-trust-box__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 22px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 8px 24px rgba(15,23,42,0.04);
}
.learn-trust-box__inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #0f172a;
}
.learn-trust-box__inner p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
}
.learn-trust-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.learn-trust-box__links a {
  font-size: 13px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
}

.learn-layout-btn:focus-visible,
.learn-chip:focus-visible,
.learn-series__card:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}


/* ========== Learn page — Phase 2 ========== */
.learn-controls--v2 {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.learn-controls__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.learn-search {
  flex: 1 1 220px;
  min-width: 180px;
}
.learn-search .input {
  width: 100%;
  border-radius: 12px;
}
.learn-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.learn-sort__select {
  width: auto;
  min-width: 150px;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
}

.learn-read-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}
.learn-post.is-read {
  opacity: 0.92;
}
.learn-post.is-read .learn-post__media img {
  filter: saturate(0.85);
}

.learn-continue {
  margin-bottom: 16px;
}
.learn-continue__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.learn-continue__card strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.learn-series {
  margin-bottom: 20px;
}
.learn-series__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.learn-series__head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.learn-series__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.learn-series__card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: right;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.06);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 8px 20px rgba(15,23,42,0.04);
  cursor: pointer;
  font-family: inherit;
}
.learn-series__card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.learn-series__card span {
  font-size: 11px;
  color: #64748b;
}
.learn-series__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}
.learn-series__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.learn-card--later-v2 {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px !important;
}
.learn-later__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}
.learn-later__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.learn-card--later-v2 strong {
  font-size: 13px;
  margin-bottom: 4px;
}


/* ========== Learn page — Phase 1 ========== */
.learn-hero-v2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #292524 100%);
  color: #fff;
  padding: 40px 0 36px;
  margin-bottom: 28px;
}
.learn-hero-v2__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 800px) {
  .learn-hero-v2__inner { grid-template-columns: 1fr; }
}
.learn-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #fdba74;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.learn-hero-v2 h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.35;
  color: #fff;
}
.learn-hero-v2 p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.8;
  max-width: 520px;
}
.learn-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.learn-hero-v2 .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.learn-hero-v2 .btn-outline:hover {
  background: rgba(255,255,255,0.08);
}
.learn-hero-note {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 18px 14px;
}
.learn-hero-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}
.learn-hero-note ol {
  margin: 0;
  padding: 0 18px 0 0;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.85;
}

.learn-section-label {
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  margin: 0 0 10px;
}

/* Featured */
.learn-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 12px 32px rgba(15,23,42,0.06);
}
.learn-featured__media {
  position: relative;
  aspect-ratio: 21 / 9;
  background: #0f172a;
  min-height: 220px;
}
@media (max-width: 700px) {
  .learn-featured__media { aspect-ratio: 16 / 10; }
}
.learn-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.learn-featured__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #ea580c33);
}
.learn-featured__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15,23,42,0.88) 100%);
}
.learn-featured__content {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 22px 24px 24px;
  color: #fff;
  max-width: 720px;
}
.learn-featured__content h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: #fff;
}
.learn-featured__content p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.learn-featured__meta {
  font-size: 12px;
  font-weight: 700;
  color: #fdba74;
}

.learn-cat {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
}
.learn-featured .learn-cat {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* Controls */
.learn-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.learn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.learn-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s ease;
}
.learn-chip:hover { border-color: #fdba74; color: #c2410c; }
.learn-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* Cards phase1 */
.learn-post {
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 8px 24px rgba(15,23,42,0.04);
  border-radius: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.learn-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(15,23,42,0.04), 0 14px 32px rgba(15,23,42,0.07);
}
.learn-post__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}
.learn-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.learn-post:hover .learn-post__media img {
  transform: scale(1.03);
}
.learn-post__ph {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}
.learn-post__body h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.learn-post__body h2 a {
  color: inherit;
  text-decoration: none;
}
.learn-post__body h2 a:hover { color: #ea580c; }
.learn-post__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px !important;
}
.learn-post__more {
  font-size: 13px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
}

/* Skeleton */
.learn-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .learn-skeleton { grid-template-columns: 1fr; }
}
.learn-skel-card {
  height: 260px;
  border-radius: 18px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: magShimmer 1.2s infinite linear;
}

.learn-empty {
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.learn-trust {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  padding-bottom: 88px;
}

/* Mobile sticky CTA */
.learn-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15,23,42,0.06);
}
.learn-mobile-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 800px) {
  .learn-mobile-cta { display: block; }
}

/* Hide old hero if any leftover */
.learn-hero { display: none; }

.learn-hero { padding: var(--space-8) 0 var(--space-5); }
.learn-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.5rem 0; }
.learn-hero p { color: var(--text-muted); max-width: 40rem; }
.badge--soft {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: #eef2ff; color: #334155; padding: 4px 10px; border-radius: 999px;
}
.learn-feed {
  display: flex; flex-direction: column; gap: var(--space-6);
  padding-bottom: var(--space-8);
}
.learn-post {
  display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 0; overflow: hidden; padding: 0;
}
@media (max-width: 800px) {
  .learn-post { grid-template-columns: 1fr; }
}
.learn-post__media { min-height: 220px; background: #f1f5f9; }
.learn-post__media img {
  width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px;
}
.learn-post__body { padding: 22px 22px 24px; }
.learn-post__meta {
  display: flex; gap: 10px; align-items: center; margin-bottom: 8px;
  font-size: 12px; color: var(--text-muted);
}
.learn-post__body h2 {
  margin: 0 0 10px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45;
}
.learn-post__body p {
  margin: 0 0 16px; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.85;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: var(--space-5) 0; font-size: var(--fs-sm);
}


.learn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px auto 20px;
}
.learn-toolbar__label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.learn-toolbar__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.learn-toolbar__btns .btn.is-active {
  background: #1b2a4a;
  color: #fff;
  border-color: #1b2a4a;
}

.learn-feed--list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.learn-feed--grid-3,
.learn-feed--grid-4 {
  display: grid;
  gap: 18px;
  margin-bottom: 48px;
}
.learn-feed--grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.learn-feed--grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .learn-feed--grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .learn-feed--grid-3,
  .learn-feed--grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .learn-feed--grid-3,
  .learn-feed--grid-4 {
    grid-template-columns: 1fr;
  }
}

.learn-feed--grid-3 .learn-post,
.learn-feed--grid-4 .learn-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.learn-feed--grid-3 .learn-post__media,
.learn-feed--grid-4 .learn-post__media {
  aspect-ratio: 16 / 10;
}
.learn-feed--grid-3 .learn-post__media img,
.learn-feed--grid-4 .learn-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-page {
  max-width: 760px;
  padding: 32px 16px 64px;
}
.article-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #d97b3f;
}
.article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.article-cover {
  margin: 18px 0 22px;
  border-radius: 16px;
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #1e293b;
}
.article-body p {
  margin: 0 0 1em;
}

.learn-layout-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: 0.15s ease;
}
.learn-layout-btn:hover { border-color: #d97b3f; color: #d97b3f; }
.learn-layout-btn.is-active {
  background: #1b2a4a;
  border-color: #1b2a4a;
  color: #fff;
}


/* Article — phase 4 */
.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #d97b3f, #f0a36b);
  z-index: 1000;
  pointer-events: none;
}
.article-hero {
  position: relative;
  padding: 48px 0 40px;
  background: #0f172a;
  color: #fff;
  margin-bottom: 28px;
  overflow: hidden;
}
.article-hero.has-cover .article-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: scale(1.02);
}
.article-hero__content { position: relative; z-index: 1; max-width: 760px; }
.article-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fdba74;
  text-decoration: none;
}
.article-hero .article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.article-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.35;
  margin: 0 0 12px;
  color: #fff;
}
.article-excerpt {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 640px;
}
.article-layout {
  max-width: 760px;
  padding-bottom: 24px;
}
.article-body {
  font-size: 17px;
  line-height: 1.95;
  color: #1e293b;
}
.article-body p { margin: 0 0 1.15em; }
.article-cta {
  margin-top: 32px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.article-cta__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.article-related {
  padding: 32px 0 64px;
  max-width: 1000px;
}
.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 800px) {
  .article-related__grid { grid-template-columns: 1fr; }
}
.article-related__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-related__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.article-related__img {
  aspect-ratio: 16/10;
  background: #f1f5f9;
}
.article-related__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-related__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-related__body strong {
  font-size: 14px;
  line-height: 1.5;
}


/* ========== Magazine article (Zoomit / Digikala Mag inspired) ========== */
.reading-progress {
  position: fixed;
  top: 0; right: 0; left: auto;
  height: 3px;
  width: 0;
  background: linear-gradient(270deg, #ea580c, #fbbf24);
  z-index: 1200;
  pointer-events: none;
}
.mag-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #0b1220;
  margin-bottom: 28px;
}
.mag-hero__media {
  position: absolute;
  inset: 0;
  background: #111827 center/cover no-repeat;
  opacity: 0.45;
}
.mag-hero.has-cover .mag-hero__media { opacity: 0.55; }
.mag-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.88) 78%, #0b1220 100%);
}
.mag-hero__inner {
  position: relative;
  z-index: 1;
  padding: 48px 16px 40px;
  max-width: 820px;
}
.mag-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fdba74;
  text-decoration: none;
  margin-bottom: 14px;
}
.mag-hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.mag-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.mag-dot { opacity: 0.5; }
.mag-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.35;
  margin: 0 0 14px;
  color: #fff;
  font-weight: 800;
}
.mag-hero__lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  margin: 0 0 20px;
  max-width: 640px;
}
.mag-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mag-author__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.mag-author strong { display: block; font-size: 14px; }
.mag-author span { font-size: 12px; color: rgba(255,255,255,0.7); }

.mag-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
  max-width: 1100px;
}
@media (max-width: 960px) {
  .mag-layout { grid-template-columns: 1fr; }
  .mag-sidebar { order: 2; }
}
.mag-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mag-side-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}
.mag-side-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: #0f172a;
}
.mag-toc { display: flex; flex-direction: column; gap: 8px; }
.mag-toc a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  line-height: 1.45;
}
.mag-toc a:hover { color: #ea580c; }
.mag-popular { display: flex; flex-direction: column; gap: 8px; }
.mag-popular a {
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  line-height: 1.45;
}
.mag-popular a:hover { color: #ea580c; }
.mag-share { display: flex; flex-direction: column; gap: 6px; }
.mag-share__btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: #334155;
  text-decoration: none;
  font-family: inherit;
}
.mag-share__btn:hover { border-color: #fdba74; }

.mag-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mag-tool {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: #475569;
}
.mag-tool.is-on {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.mag-summary {
  padding: 16px 18px;
  margin-bottom: 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
}
.mag-summary__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #c2410c;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.mag-summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #431407;
}

.mag-body {
  font-size: 18px;
  line-height: 2;
  color: #1e293b;
}
.mag-body h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.6em;
  color: #0f172a;
  scroll-margin-top: 96px;
}
.mag-body .mag-p { margin: 0 0 1.15em; }
.mag-pull {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-right: 4px solid #ea580c;
  background: #f8fafc;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.75;
  color: #0f172a;
}
.mag-figure {
  margin: 1.5em 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
}
.mag-figure img { width: 100%; display: block; }
.mag-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
}
.mag-table-wrap { overflow-x: auto; margin: 1.4em 0; }
.mag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mag-table th, .mag-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: right;
}
.mag-table th { background: #f1f5f9; font-weight: 700; }

.mag-reveal { opacity: 0; transform: translateY(10px); transition: 0.45s ease; }
.mag-reveal.is-visible { opacity: 1; transform: none; }

.mag-mid-cta {
  margin: 28px 0;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid #fed7aa;
  border-radius: 16px;
}
.mag-mid-cta p { margin: 6px 0 0; font-size: 13px; color: #64748b; }
.mag-mid-cta__btns { display: flex; flex-wrap: wrap; gap: 8px; }

.mag-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.mag-tags .mag-tag {
  background: #f1f5f9;
  color: #334155;
}

.mag-series { margin-top: 16px; padding: 14px 16px; }
.mag-series p { margin: 0; font-size: 14px; color: #475569; }

.mag-related { padding: 32px 0 24px; max-width: 1100px; }
.mag-related__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mag-related__head h2 { margin: 0; font-size: 1.25rem; }
.mag-related__head a { font-size: 13px; color: #ea580c; font-weight: 600; }
.mag-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 800px) {
  .mag-related__grid { grid-template-columns: 1fr; }
}
.mag-related__card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: 0.15s ease;
}
.mag-related__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.mag-related__img {
  aspect-ratio: 16/10;
  background: #e2e8f0;
}
.mag-related__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mag-related__body { padding: 12px 14px 16px; }
.mag-related__body span {
  font-size: 11px;
  color: #ea580c;
  font-weight: 700;
}
.mag-related__body strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.mag-endcard { padding-bottom: 72px; max-width: 820px; }
.mag-endcard__inner { padding: 22px; text-align: center; }
.mag-endcard h3 { margin: 8px 0 14px; font-size: 1.2rem; }

.mag-fab-back {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.25);
  display: none;
}
@media (max-width: 800px) {
  .mag-fab-back { display: inline-flex; }
  .mag-sidebar { position: static; }
}

/* Focus / dark / print */
body.mag-focus .site-header,
body.mag-focus .mobile-nav,
body.mag-focus .mag-sidebar,
body.mag-focus .mag-mid-cta,
body.mag-focus .mag-related,
body.mag-focus .mag-endcard,
body.mag-focus .site-footer,
body.mag-focus .mag-fab-back,
body.mag-focus .mag-toolbar {
  display: none !important;
}
body.mag-focus .mag-layout {
  grid-template-columns: 1fr;
  max-width: 720px;
}
body.mag-dark {
  background: #0b1220;
  color: #e2e8f0;
}
body.mag-dark .mag-body { color: #e2e8f0; }
body.mag-dark .mag-side-card,
body.mag-dark .mag-related__card,
body.mag-dark .mag-summary,
body.mag-dark .mag-mid-cta,
body.mag-dark .mag-endcard__inner {
  background: #111827;
  border-color: #1f2937;
  color: #e2e8f0;
}
body.mag-dark .mag-summary p,
body.mag-dark .mag-pull { color: #e2e8f0; background: #0f172a; }
body.mag-dark .mag-tool { background: #111827; color: #e2e8f0; border-color: #334155; }

@media print {
  .site-header, .mobile-nav, .mag-sidebar, .mag-toolbar, .mag-mid-cta,
  .mag-related, .mag-endcard, .mag-fab-back, .reading-progress, .site-footer {
    display: none !important;
  }
  .mag-hero { min-height: auto; color: #000; background: #fff; }
  .mag-hero__media, .mag-hero__shade { display: none; }
  .mag-hero__title, .mag-hero__lead, .mag-author span { color: #000; }
  .mag-layout { grid-template-columns: 1fr; }
}


/* --- Article delight pack --- */
.mag-remain {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.2);
  pointer-events: none;
}
.mag-hero__media {
  will-change: transform;
  transform: scale(1.05);
  transition: transform 0.05s linear;
}
.mag-body h2 {
  position: relative;
  padding-right: 14px;
}
.mag-body h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ea580c, #fbbf24);
}

.mag-stat {
  margin: 1.4em 0;
  padding: 22px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15,23,42,0.18);
}
.mag-stat__value {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #fdba74, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mag-stat__label {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.mag-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 1.4em 0;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.mag-gallery__slide {
  flex: 0 0 min(86%, 320px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 16/10;
}
.mag-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mag-react {
  margin: 24px 0 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.mag-react__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #334155;
}
.mag-react__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mag-react__btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: #334155;
}
.mag-react__btn.is-on {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.mag-react__msg {
  margin: 10px 0 0;
  font-size: 13px;
  color: #64748b;
}

.mag-checklist {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.mag-check-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mag-check-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  cursor: pointer;
}
.mag-check-list input { margin-top: 3px; }

.mag-quote-pop {
  position: absolute;
  z-index: 1200;
  background: #0f172a;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.25);
}
.mag-quote-pop button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
}

/* Skeleton */
.mag-skeleton { padding: 32px 16px 64px; max-width: 800px; }
.mag-skel {
  border-radius: 16px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: magShimmer 1.2s infinite linear;
}
.mag-skel--hero { height: 220px; margin-bottom: 20px; }
.mag-skel-line {
  height: 14px;
  border-radius: 8px;
  margin: 12px 0;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: magShimmer 1.2s infinite linear;
}
@keyframes magShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body.mag-dark .mag-react,
body.mag-dark .mag-checklist {
  background: #111827;
  border-color: #1f2937;
  color: #e2e8f0;
}
body.mag-dark .mag-react__btn {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}


/* Article pack 2 */
.mag-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.mag-chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.mag-chip--soft {
  background: rgba(255,255,255,0.14);
}
.mag-forwho {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.mag-forwho__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mag-forwho .mag-chip { background: #fff7ed; color: #c2410c; }

.mag-faq { margin: 20px 0; padding: 16px; border-radius: 16px; border: 1px solid #e2e8f0; }
.mag-faq__item { border-bottom: 1px solid #f1f5f9; padding: 10px 0; }
.mag-faq__item:last-child { border-bottom: 0; }
.mag-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}
.mag-faq__item p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}

.mag-paths { margin: 16px 0; padding: 16px; border-radius: 16px; border: 1px solid #e2e8f0; }
.mag-paths__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .mag-paths__grid { grid-template-columns: 1fr; }
}
.mag-path {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
}
.mag-path strong { display: block; margin-bottom: 4px; font-size: 14px; }
.mag-path span { font-size: 12px; color: #64748b; }
.mag-path:hover { border-color: #fdba74; background: #fff7ed; }

.mag-playlist { margin: 16px 0; padding: 16px; border-radius: 16px; border: 1px solid #e2e8f0; }
.mag-playlist__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mag-playlist__bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.mag-playlist__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ea580c, #fbbf24);
}
.mag-playlist__steps {
  margin: 0;
  padding: 0 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mag-playlist__steps a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
}
.mag-playlist__steps li.is-active a {
  color: #ea580c;
  font-weight: 700;
}

.mag-intlinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
@media (max-width: 800px) {
  .mag-intlinks { grid-template-columns: 1fr; }
}
.mag-intlink {
  display: block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: 0.15s ease;
}
.mag-intlink:hover {
  transform: translateY(-2px);
  border-color: #fdba74;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.mag-intlink__kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #ea580c;
  margin-bottom: 4px;
}
.mag-intlink strong { display: block; font-size: 14px; margin-bottom: 4px; }
.mag-intlink span { font-size: 12px; color: #64748b; }

.mag-font-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-right: auto;
}
.mag-font-size input[type="range"] { width: 90px; }

.mag-ig-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mag-ig-modal.is-open { display: flex; }
.mag-ig-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.mag-ig-close:hover { background: #e2e8f0; }
.mag-ig-modal__panel {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.mag-ig-modal__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mag-ig-modal__actions { width: 100%; display: flex; justify-content: center; }

.learn-later { padding-top: 12px; padding-bottom: 8px; }
.learn-later__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.learn-later__head h2 { margin: 0; font-size: 1.1rem; }
.learn-later__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.learn-card--later {
  display: block;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.learn-card--later strong { display: block; font-size: 13px; margin-bottom: 6px; }
.learn-card--later span { font-size: 12px; color: #64748b; }

body.mag-dark .mag-faq,
body.mag-dark .mag-paths,
body.mag-dark .mag-playlist,
body.mag-dark .mag-forwho,
body.mag-dark .mag-intlink {
  background: #111827;
  border-color: #1f2937;
  color: #e2e8f0;
}


/* Soft elevation system — calm, consistent, low-contrast */
.article-page-body {
  --mag-soft-bg: #ffffff;
  --mag-soft-border: rgba(15, 23, 42, 0.04);
  --mag-soft-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.04);
  --mag-soft-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.06);
  --mag-soft-radius: 18px;
}

.mag-main .mag-summary,
.mag-main .mag-forwho,
.mag-main .mag-body,
.mag-main .mag-react,
.mag-main .mag-faq,
.mag-main .mag-paths,
.mag-main .mag-playlist,
.mag-main .mag-checklist,
.mag-main .mag-series,
.mag-side-card,
.mag-intlink,
.mag-path,
.mag-related__card,
.mag-endcard__inner {
  background: var(--mag-soft-bg);
  border: 1px solid var(--mag-soft-border);
  border-radius: var(--mag-soft-radius);
  box-shadow: var(--mag-soft-shadow);
}

.mag-main .mag-summary,
.mag-main .mag-forwho,
.mag-main .mag-react,
.mag-main .mag-faq,
.mag-main .mag-paths,
.mag-main .mag-playlist,
.mag-main .mag-checklist,
.mag-main .mag-series {
  padding: 18px 20px;
  margin: 14px 0;
}

.mag-main .mag-summary {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.mag-body {
  padding: 30px 28px;
  margin: 14px 0 18px;
}

.mag-intlinks {
  border-top: none;
  padding-top: 4px;
  gap: 12px;
}

.mag-intlink,
.mag-path {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mag-intlink:hover,
.mag-path:hover,
.mag-related__card:hover {
  box-shadow: var(--mag-soft-shadow-hover);
  transform: translateY(-1px);
  border-color: rgba(234, 88, 12, 0.12);
  background: #fff;
}

.mag-side-card {
  padding: 14px 16px;
}

/* related/end already have structure — just inherit soft elevation above */

body.mag-dark {
  --mag-soft-bg: #111827;
  --mag-soft-border: rgba(255, 255, 255, 0.06);
  --mag-soft-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(0, 0, 0, 0.25);
  --mag-soft-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.25), 0 14px 32px rgba(0, 0, 0, 0.3);
}
body.mag-dark .mag-main .mag-summary {
  background: linear-gradient(180deg, #1c1917 0%, #111827 100%);
}
