/* ============================================================
   The Wealth Mosaic, article single page
   ============================================================ */

/* Breadcrumb */
.crumb {
  background: #f7f8fa;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-size: 12.5px;
}
.crumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}
.crumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--mute-light, #aaa);
}
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--magenta); }
.crumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ===== Article hero ===== */
.art-hero {
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--rule-soft);
}
.art-hero__inner {
  max-width: var(--max);
  text-align: left;
}
.art-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
}
.art-hero__cat::before {
  content: "";
  width: 9px; height: 13px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'><path d='M3 2 L9 8 L3 14' fill='none' stroke='%23e6175a' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.art-hero__cat:hover { color: var(--magenta-2); }
.art-hero__title {
  font-family: var(--font);
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -.022em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 800px;
}
.art-hero__deck {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 60ch;
}

.art-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  flex-wrap: wrap;
  max-width: 800px;
}
.art-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.art-author__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
}
.art-author__avatar svg { display: block; }
.art-author__meta { display: flex; flex-direction: column; gap: 2px; }
.art-author__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.art-author__role { font-size: 12px; color: var(--muted); }
.art-hero__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 24px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.art-meta__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ===== Hero image ===== */
.art-cover {
  margin: 0;
  background: #fff;
  padding: 24px 0 34px;
}
.art-cover__img {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 12 / 5;
  box-shadow: 0 18px 44px -24px rgba(16,21,36,.28);
  background: var(--navy) url("https://picsum.photos/seed/twm-agentic-ai/1200/520") center/cover no-repeat;
}
.art-cover__img svg { width: 100%; height: 100%; display: none; }
.art-cover__cap {
  max-width: 880px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* ===== Body block ===== */
.art-block {
  background: #fff;
  padding: 36px 0 64px;
}
.art-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 340px;
  gap: 40px;
  justify-content: center;
  align-items: start;
  position: relative;
}

/* Sticky share rail */
.art-share {
  position: sticky;
  top: 100px;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  transform: translateX(-72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}
.art-share__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 8px;
}
.art-share__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: #fff;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.art-share__btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  transform: translateY(-1px);
}

/* ===== Body typography ===== */
.art-body {
  color: var(--ink);
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.art-body p {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  color: #2a2f44;
  margin: 0 0 22px;
}
.art-lead {
  font-size: 22px !important;
  line-height: 1.55 !important;
  color: var(--ink) !important;
  margin-bottom: 28px !important;
}
.art-body h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 40px 0 18px;
}
.art-body em { color: inherit; font-style: italic; }
.art-body strong { color: var(--ink); font-weight: 700; }

.art-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.art-list li {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: #2a2f44;
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
}
.art-list li:last-child { border-bottom: 0; }
.art-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--magenta);
}
.art-list--ordered { counter-reset: alist; }
.art-list--ordered li {
  counter-increment: alist;
  padding-left: 40px;
}
.art-list--ordered li::before {
  content: counter(alist);
  width: 22px; height: 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  top: 14px;
}

.art-pull {
  margin: 32px -16px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #f5f6f8, #ebeef2);
  border-left: 3px solid var(--magenta);
  border-radius: 4px;
}
.art-pull blockquote {
  margin: 0;
  font-family: var(--font);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.005em;
}
.art-pull figcaption {
  margin-top: 10px;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--muted);
}

/* ===== Sidebar ===== */
.art-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.art-side__block {
  background: #fff;
}
.art-side__block .section-head {
  margin-bottom: 10px;
}
.art-side__block .section-head h2 {
  font-size: 18px;
}
.art-side .subscribe-card,
.art-side .ad-slot {
  margin: 0;
}

.art-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.art-toc li {
  counter-increment: toc;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.art-toc li:last-child { border-bottom: 0; }
.art-toc a {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
  transition: color .12s ease;
}
.art-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--magenta);
  flex-shrink: 0;
  letter-spacing: .04em;
}
.art-toc li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.art-toc a:hover { color: var(--magenta); }

.art-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.art-tags a {
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  background: #f3f5f7;
  border-radius: 999px;
  color: var(--ink);
  transition: background .12s ease, color .12s ease;
}
.art-tags a:hover {
  background: var(--magenta);
  color: #fff;
}

/* ===== Author bio block ===== */
.art-author-bio {
  background: #f7f8fa;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 48px 0;
}
.bio-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}
.bio-card__avatar svg { display: block; border-radius: 50%; }
.bio-card__eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.bio-card__meta h3 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 4px;
  color: var(--ink);
}
.bio-card__role {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.bio-card__meta p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}
.bio-card__links { display: flex; gap: 22px; font-size: 13.5px; }

/* ===== Related articles ===== */
.art-related {
  background: #fff;
  padding: 60px 0 40px;
  border-top: 1px solid var(--rule-soft);
}
.art-related .section-head { margin-bottom: 26px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  transition: transform .15s ease;
  min-width: 0;
}
.related-card:hover { transform: translateY(-2px); }
.related-card__thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #f3f5f7 center/cover no-repeat;
  margin-bottom: 4px;
  position: relative;
  isolation: isolate;
}
.related-card__thumb svg { width: 100%; height: 100%; display: none; }
.related-card:nth-child(1) .related-card__thumb { background-image: url("https://picsum.photos/seed/twm-related-01/640/400"); }
.related-card:nth-child(2) .related-card__thumb { background-image: url("https://picsum.photos/seed/twm-related-02/640/400"); }
.related-card:nth-child(3) .related-card__thumb { background-image: url("https://picsum.photos/seed/twm-related-03/640/400"); }
.related-card__thumb svg text { display: none; }
.related-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16,21,36,.08) 100%);
  pointer-events: none;
}
.related-card__cat {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 700;
}
.related-card h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
  transition: color .12s ease;
  letter-spacing: -.005em;
}
.related-card:hover h4 { color: var(--magenta); }
.related-card__byline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.related-card__byline .author {
  color: #2c56e0;
  font-weight: 600;
}
.related-card__byline .author:hover {
  color: var(--magenta);
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .art-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
  .art-share { display: none; }
}
@media (max-width: 880px) {
  .art-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }
  .art-body,
  .art-side {
    grid-column: 1;
    grid-row: auto;
  }
  .art-side {
    position: static;
  }
  .related-grid { grid-template-columns: 1fr; }
  .bio-card { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .bio-card__avatar { width: 80px; height: 80px; }
}
@media (max-width: 560px) {
  .art-hero { padding: 32px 0 22px; }
  .art-hero__details { flex-wrap: wrap; gap: 14px; }
  .art-cover__img { aspect-ratio: 4 / 3; border-radius: 8px; }
  .art-body p { font-size: 16.5px; }
  .art-lead { font-size: 19px !important; }
  .art-body h2 { font-size: 22px; }
  .art-pull { margin: 24px 0; padding: 20px; }
  .art-pull blockquote { font-size: 18px; }
}
