/* ============================================================
   DN Exposer LLC — article.css v1
   Styles specific to article / blog post pages
   Inherits tokens from main.css (--rose, --teal, --slate, etc.)
   ============================================================ */


/* ── Article page body offset ──────────────────────────────── */
.page-article {
  background: var(--cream);
}


/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.article-hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 48px;
  background: var(--cream);
}

.article-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.article-breadcrumb a {
  color: var(--muted);
  transition: color var(--tr);
}
.article-breadcrumb a:hover { color: var(--rose); }
.article-breadcrumb__sep { color: var(--border); }
.article-breadcrumb__cat {
  color: var(--rose);
  font-weight: 700;
  letter-spacing: .3px;
}

/* Title */
.article-hero__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  color: var(--slate);
  margin-bottom: 28px;
}

/* Meta row */
.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.article-author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-author-mini__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.article-author-mini__name {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.3;
}
.article-author-mini__role {
  display: block;
  font-size: .74rem;
  color: var(--muted);
}

.article-meta-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
}
.article-meta-item svg { color: var(--light); flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════════
   COVER IMAGE
   ══════════════════════════════════════════════════════════════ */
.article-cover {
  margin-bottom: 0;
  background: var(--cream);
}
.article-cover .wrap {
  max-width: 960px;
  margin: 0 auto;
}
.article-cover__fig {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.article-cover__img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.article-cover__caption {
  padding: 12px 20px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  background: var(--cream-mid);
}


/* ══════════════════════════════════════════════════════════════
   LAYOUT — 3-column: TOC | BODY | SHARE
   ══════════════════════════════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  gap: 48px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 80px;
}


/* ══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS (left sticky)
   ══════════════════════════════════════════════════════════════ */
.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.article-toc__inner {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--sh-xs);
  border: 1px solid var(--border);
}
.article-toc__label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-toc__list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-toc__list li {
  counter-increment: toc;
}
.article-toc__list a {
  display: block;
  padding: 7px 10px;
  font-size: .8rem;
  color: var(--muted);
  border-radius: var(--r-xs);
  line-height: 1.4;
  transition: background var(--tr), color var(--tr);
  border-left: 2px solid transparent;
}
.article-toc__list a:hover,
.article-toc__list a.is-active {
  color: var(--rose);
  background: var(--rose-light);
  border-left-color: var(--rose);
}


/* ══════════════════════════════════════════════════════════════
   ARTICLE BODY
   ══════════════════════════════════════════════════════════════ */
.article-body {
  min-width: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

/* Lead paragraph */
.article-lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--rose);
}

/* Headings */
.article-body h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--slate);
  margin: 56px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.2;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--slate);
  margin: 36px 0 14px;
  line-height: 1.25;
}

/* Paragraphs */
.article-body p {
  margin-bottom: 20px;
}

/* Lists */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
  padding-left: 4px;
}
.article-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  line-height: 1.7;
}
.article-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Links */
.article-ext-link {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-color: rgba(229, 52, 91, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--tr), color var(--tr);
}
.article-ext-link:hover {
  text-decoration-color: var(--rose);
}
.article-int-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(42, 157, 143, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--tr);
}
.article-int-link:hover {
  text-decoration-color: var(--teal);
}


/* ── Inline image ───────────────────────────────────────────── */
.article-img-block {
  margin: 40px 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.article-img-block img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.article-img-block figcaption {
  padding: 12px 18px;
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  background: var(--cream-mid);
  text-align: center;
}


/* ── Callouts ───────────────────────────────────────────────── */
.article-callout {
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 32px 0;
}
.article-callout__label {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}
.article-callout--definition {
  background: var(--rose-light);
  border-left: 4px solid var(--rose);
}
.article-callout--definition .article-callout__label { color: var(--rose); }
.article-callout--note {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
}
.article-callout--note .article-callout__label { color: var(--teal); }
.article-callout p { margin-bottom: 0 !important; }


/* ── Tables ─────────────────────────────────────────────────── */
.article-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--white);
}
.article-table thead tr {
  background: var(--slate);
}
.article-table thead th {
  padding: 14px 18px;
  color: rgba(255, 255, 255, .85);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.article-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.article-table tbody tr:last-child { border-bottom: none; }
.article-table tbody tr:hover { background: var(--cream); }
.article-table tbody td {
  padding: 14px 18px;
  color: var(--text);
  vertical-align: top;
  line-height: 1.55;
}
.article-table tbody td:first-child {
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}


/* ── Numbered steps ─────────────────────────────────────────── */
.article-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 36px 0;
  position: relative;
}
.article-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--rose), var(--teal));
  opacity: .25;
}
.article-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
}
.article-step__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--rose);
  color: var(--rose);
  font-family: var(--f-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-xs);
  position: relative;
  z-index: 1;
}
.article-step__body { flex: 1; padding-top: 12px; }
.article-step__title {
  font-size: 1.08rem;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
  border: none !important;
  padding: 0 !important;
}


/* ── FAQ ────────────────────────────────────────────────────── */
.article-faq {
  margin: 8px 0 40px;
}
.article-faq__item {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 12px;
  box-shadow: var(--sh-xs);
  border: 1px solid var(--border);
  transition: border-color var(--tr-md), box-shadow var(--tr-md);
}
.article-faq__item:hover {
  border-color: var(--rose);
  box-shadow: var(--sh-sm);
}
.article-faq__q {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 10px;
  line-height: 1.3;
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}
.article-faq__a {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0 !important;
}
.article-faq__source-note {
  font-size: .8rem;
  color: var(--light);
  margin-top: 16px;
}

/* ── CTA Box ────────────────────────────────────────────────── */
.article-cta-box {
  background: var(--slate);
  border-radius: var(--r-xl);
  padding: 40px 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.article-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 90% 60%, rgba(42,157,143,.15), transparent),
    radial-gradient(ellipse 50% 60% at 5% 30%, rgba(229,52,91,.1), transparent);
  pointer-events: none;
}
.article-cta-box__content { position: relative; z-index: 1; }
.article-cta-box__title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}
.article-cta-box__desc {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 28px !important;
}
.article-cta-box__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════════════════
   SHARE SIDEBAR (right sticky)
   ══════════════════════════════════════════════════════════════ */
.article-share {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.article-share__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.article-share__label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 4px;
}
.article-share__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tr-md), box-shadow var(--tr-md);
  cursor: pointer;
  border: none;
}
.article-share__btn span { display: none; } /* icon only at this size */
.article-share__btn:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.article-share__btn--fb  { background: #1877F2; color: #fff; }
.article-share__btn--tw  { background: #0f1419; color: #fff; }
.article-share__btn--li  { background: #0A66C2; color: #fff; }
.article-share__btn--copy { background: var(--cream-mid); color: var(--muted); border: 1.5px solid var(--border); }
.article-share__btn--copy:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.article-copy-feedback {
  font-size: .72rem;
  color: var(--teal);
  font-weight: 600;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════
   AUTHOR BOX
   ══════════════════════════════════════════════════════════════ */
.article-author-box {
  background: var(--cream-mid);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.article-author-box__inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  box-shadow: var(--sh-sm);
}
.article-author-box__img-wrap {
  flex-shrink: 0;
}
.article-author-box__img-wrap img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  box-shadow: var(--sh-sm);
}
.article-author-box__content { flex: 1; }
.article-author-box__by {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 4px;
}
.article-author-box__name {
  font-size: 1.25rem;
  color: var(--slate);
  margin-bottom: 4px;
}
.article-author-box__role {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.article-author-box__bio {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.article-author-box__quote {
  border-left: 3px solid var(--rose);
  padding: 10px 16px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--slate);
  background: var(--rose-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   RELATED ARTICLES
   ══════════════════════════════════════════════════════════════ */
.article-related {
  padding: 64px 0 80px;
  background: var(--cream);
}
.article-related__title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--slate);
  margin-bottom: 36px;
}
.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.article-related__cta { text-align: center; }

.related-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: box-shadow var(--tr-md), transform var(--tr-md);
}
.related-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.related-card__img-wrap { display: block; overflow: hidden; }
.related-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .6s ease;
}
.related-card:hover .related-card__img { transform: scale(1.05); }
.related-card__body { padding: 20px 22px; }
.related-card__date {
  display: block;
  font-size: .72rem;
  color: var(--light);
  margin-bottom: 8px;
}
.related-card__title {
  font-size: .98rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.related-card__title a { color: var(--slate); transition: color var(--tr); }
.related-card__title a:hover { color: var(--rose); }
.related-card__excerpt {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 200px 1fr 50px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr 50px;
    gap: 28px;
  }
  .article-toc {
    display: none; /* hide sidebar TOC on tablet; inline TOC can remain */
  }
  .article-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-hero {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 28px;
  }
  .article-hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .article-meta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 36px;
    padding-bottom: 48px;
  }
  .article-share { display: none; }
  .article-author-box__inner { flex-direction: column; padding: 24px; }
  .article-related__grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.4rem; margin-top: 40px; }
  .article-cta-box { padding: 28px 24px; }
  .article-cta-box__actions { flex-direction: column; }
  .article-cta-box__actions .btn { width: 100%; justify-content: center; }
  .article-steps::before { display: none; }
  .article-step { gap: 16px; }
  .article-step__num { width: 44px; height: 44px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .article-table thead th,
  .article-table tbody td { padding: 10px 12px; font-size: .8rem; }
  .article-body { font-size: .95rem; }
}