/* ================================================================
   READYLAYER — article.css
   Shared article page template for all /thinking/[slug] pages.
   Load order: after main.css, insights.css, services.css
   All classes prefixed art- to avoid collision.

   Reused from main.css (no new CSS needed):
     rl-eyebrow, rl-btn-primary, rl-btn-ghost,
     rl-header / nav, rl-footer-*, reveal, all CSS variables

   Reused from insights.css (no new CSS needed):
     ins-cat-pill + modifiers (category badge in hero + more grid)
     ins-article-card + ins-ac-* (the "more from insights" grid)

   Reused from services.css (no new CSS needed):
     svc-page-cta / svc-page-cta-inner / svc-cta-row (bottom CTA)

   New in this file:
     art-hero          — dark article hero with breadcrumb, meta, title, deck, author
     art-layout        — 3-col grid: aside | prose | (empty gutter)
     art-aside         — sticky share/back sidebar (desktop only)
     art-prose         — readable prose column, all typography
     art-pull-quote    — styled blockquote with accent left treatment
     art-stat-callout  — inline 2-up (or 1-up) stat display blocks
     art-foot          — tags + share strip at end of article
     art-more          — "More from Insights" section above CTA
   ================================================================ */


/* ----------------------------------------------------------------
   ARTICLE HERO
   ---------------------------------------------------------------- */
.art-hero {
  background: var(--rl-near-black);
  padding:    120px 0 72px;
  position:   relative;
  overflow:   hidden;
}
.art-hero::before {
  content:        '';
  position:       absolute;
  top:            0;
  right:          -200px;
  width:          600px;
  height:         600px;
  background:     radial-gradient(ellipse, rgba(200,80,42,.06) 0%, transparent 65%);
  pointer-events: none;
}

/* Breadcrumb */
.art-breadcrumb {
  margin-bottom: 2rem;
  animation:     rl-fadeUp 0.6s ease forwards;
}
.art-breadcrumb a {
  font-family:    var(--rl-font-mono);
  font-size:      0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(245,242,236,.3);
  text-decoration: none;
  transition:     color 0.2s;
}
.art-breadcrumb a:hover { color: var(--rl-off-white); }

.art-hero-inner {
  max-width: 760px;
  position:  relative;
  z-index:   1;
}

/* Category + date + read time row */
.art-hero-meta {
  display:     flex;
  align-items: center;
  gap:         1rem;
  flex-wrap:   wrap;
  margin-bottom: 1.5rem;
  animation:   rl-fadeUp 0.6s 0.05s ease forwards;
}

.art-hero-date,
.art-hero-read-time {
  font-family:    var(--rl-font-mono);
  font-size:      0.62rem;
  letter-spacing: 0.1em;
  color:          rgba(245,242,236,.3);
}

.art-hero-h1 {
  font-family:    var(--rl-font-display);
  font-size:      clamp(2rem, 4.5vw, 3.2rem);
  font-weight:    800;
  color:          var(--rl-off-white);
  line-height:    1.1;
  letter-spacing: -0.025em;
  margin-bottom:  1.5rem;
  animation:      rl-fadeUp 0.7s 0.1s ease forwards;
}
.art-hero-h1 em { font-style: italic; color: var(--rl-accent); }

/* Deck / standfirst */
.art-hero-deck {
  font-size:     1.05rem;
  color:         rgba(245,242,236,.55);
  line-height:   1.75;
  font-weight:   300;
  margin-bottom: 2.5rem;
  max-width:     680px;
  animation:     rl-fadeUp 0.7s 0.18s ease forwards;
}

/* Author strip */
.art-hero-author {
  display:     flex;
  align-items: center;
  gap:         0.85rem;
  animation:   rl-fadeUp 0.7s 0.25s ease forwards;
}

.art-author-avatar {
  width:           40px;
  height:          40px;
  border-radius:   50%;
  background:      rgba(200,80,42,.2);
  border:          1px solid rgba(200,80,42,.3);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--rl-font-mono);
  font-size:       0.6rem;
  font-weight:     700;
  color:           var(--rl-accent);
  flex-shrink:     0;
  letter-spacing:  0.05em;
}

.art-author-meta {
  display:        flex;
  flex-direction: column;
  gap:            0.1rem;
}

.art-author-name {
  font-size:   0.85rem;
  font-weight: 600;
  color:       var(--rl-off-white);
}

.art-author-role {
  font-family:    var(--rl-font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.1em;
  color:          rgba(245,242,236,.3);
  text-transform: uppercase;
}


/* ----------------------------------------------------------------
   ARTICLE LAYOUT — 3-col: aside | prose | gutter
   ---------------------------------------------------------------- */
.art-body-section {
  background: var(--rl-off-white);
  padding:    72px 0 80px;
}

.art-layout {
  display:               grid;
  grid-template-columns: 72px 1fr 72px;
  gap:                   48px;
  align-items:           start;
}

/* Collapse to single column below lg */
@media (max-width: 1099.98px) {
  .art-layout {
    grid-template-columns: 1fr;
    gap:                   0;
  }
  .art-aside { display: none; } /* hidden on mobile/tablet */
}


/* ----------------------------------------------------------------
   STICKY ASIDE  (desktop only — share + back link)
   ---------------------------------------------------------------- */
.art-aside {
  position: sticky;
  top:      88px; /* 64px nav + 24px breathing room */
}

.art-aside-inner {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.85rem;
}

.art-aside-label {
  font-family:    var(--rl-font-mono);
  font-size:      0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--rl-mid);
}

.art-share-links {
  display:        flex;
  flex-direction: column;
  gap:            0.4rem;
}

.art-share-btn {
  width:           36px;
  height:          36px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border:          1px solid var(--rl-border);
  background:      var(--rl-warm);
  color:           var(--rl-mid);
  font-size:       0.75rem;
  font-weight:     700;
  text-decoration: none;
  transition:      border-color 0.2s, color 0.2s;
}
.art-share-btn:hover { border-color: var(--rl-accent); color: var(--rl-accent); }

.art-aside-divider {
  width:      1px;
  height:     32px;
  background: var(--rl-border);
}

.art-aside-back {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--rl-mid);
  text-decoration: none;
  writing-mode:   vertical-rl;
  transform:      rotate(180deg);
  transition:     color 0.2s;
}
.art-aside-back:hover { color: var(--rl-accent); }


/* ----------------------------------------------------------------
   PROSE COLUMN
   Optimised for reading: comfortable measure, generous line-height,
   clear heading hierarchy.
   ---------------------------------------------------------------- */
.art-prose {
  min-width: 0; /* prevent grid blowout */
}

/* Lede — first paragraph, larger */
.art-lede {
  font-size:     1.1rem;
  color:         var(--rl-black);
  line-height:   1.8;
  font-weight:   400;
  margin-bottom: 1.5rem;
}

/* Body paragraphs */
.art-prose p {
  font-size:     1rem;
  color:         #2a2a2a;
  line-height:   1.85;
  margin-bottom: 1.4rem;
}
.art-prose p:last-child { margin-bottom: 0; }

/* Headings */
.art-prose h2 {
  font-family:    var(--rl-font-display);
  font-size:      clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight:    800;
  color:          var(--rl-black);
  line-height:    1.15;
  letter-spacing: -0.02em;
  margin-top:     3rem;
  margin-bottom:  1.1rem;
  padding-top:    3rem;
  border-top:     1px solid var(--rl-border);
}
.art-prose h2:first-child {
  margin-top:  0;
  padding-top: 0;
  border-top:  none;
}

.art-prose h3 {
  font-family:   var(--rl-font-display);
  font-size:     1.15rem;
  font-weight:   700;
  color:         var(--rl-black);
  margin-top:    2rem;
  margin-bottom: 0.75rem;
}

/* Strong within prose */
.art-prose strong { color: var(--rl-black); font-weight: 600; }

/* Links within prose */
.art-prose a {
  color:          var(--rl-accent);
  text-decoration: none;
  border-bottom:  1px solid rgba(200,80,42,.3);
  transition:     border-color 0.2s;
}
.art-prose a:hover { border-color: var(--rl-accent); }

/* Lists */
.art-prose ul,
.art-prose ol {
  padding-left:  1.5rem;
  margin-bottom: 1.4rem;
}
.art-prose li {
  font-size:     1rem;
  color:         #2a2a2a;
  line-height:   1.8;
  margin-bottom: 0.4rem;
}


/* ----------------------------------------------------------------
   PULL QUOTE
   ---------------------------------------------------------------- */
.art-pull-quote {
  margin:      2.5rem 0;
  padding:     1.75rem 2rem;
  background:  var(--rl-warm);
  border:      1px solid var(--rl-border);
  border-left: 4px solid var(--rl-accent);
  position:    relative;
}

.art-pull-quote p {
  font-family:   var(--rl-font-display);
  font-size:     clamp(1.1rem, 2vw, 1.3rem);
  font-weight:   700;
  font-style:    italic;
  color:         var(--rl-black);
  line-height:   1.5;
  margin-bottom: 0 !important; /* override art-prose p spacing */
}


/* ----------------------------------------------------------------
   STAT CALLOUTS
   Two-up (default) or single (--single modifier)
   ---------------------------------------------------------------- */
.art-stat-callout {
  display:               grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:           center;
  gap:                   0;
  margin:                2rem 0;
  background:            var(--rl-near-black);
  border:                1px solid rgba(255,255,255,.06);
}

.art-stat-callout--single {
  grid-template-columns: 1fr;
}

.art-stat-item {
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
  padding:        1.75rem 2rem;
}

.art-stat-num {
  font-family:    var(--rl-font-display);
  font-size:      clamp(2.5rem, 6vw, 3.5rem);
  font-weight:    900;
  color:          var(--rl-off-white);
  line-height:    1;
  letter-spacing: -0.03em;
}
.art-stat-num span { color: var(--rl-accent); font-size: 0.6em; }

.art-stat-desc {
  font-size:   0.82rem;
  color:       rgba(245,242,236,.45);
  line-height: 1.6;
  max-width:   260px;
}

.art-stat-source {
  color:          rgba(245,242,236,.25);
  font-style:     italic;
  font-family:    var(--rl-font-mono);
  font-size:      0.72em;
  letter-spacing: 0.05em;
  display:        inline;
}

/* Vertical divider between the two stats */
.art-stat-divider {
  width:      1px;
  height:     100%;
  min-height: 80px;
  background: rgba(255,255,255,.06);
  align-self: stretch;
}

@media (max-width: 575.98px) {
  .art-stat-callout {
    grid-template-columns: 1fr;
  }
  .art-stat-divider {
    width:      100%;
    height:     1px;
    min-height: auto;
  }
}


/* ----------------------------------------------------------------
   ARTICLE FOOTER  (tags + share)
   ---------------------------------------------------------------- */
.art-foot {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1.5rem;
  flex-wrap:       wrap;
  padding-top:     2rem;
  margin-top:      3rem;
  border-top:      1px solid var(--rl-border);
}

.art-foot-tags {
  display:  flex;
  gap:      0.4rem;
  flex-wrap: wrap;
}

.art-foot-tag {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:        0.2rem 0.6rem;
  border:         1px solid var(--rl-border);
  color:          var(--rl-mid);
  background:     var(--rl-warm);
}

.art-foot-share {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
}

.art-foot-share-label {
  font-family:    var(--rl-font-mono);
  font-size:      0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--rl-mid);
}

.art-foot-share a {
  width:           32px;
  height:          32px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border:          1px solid var(--rl-border);
  background:      var(--rl-warm);
  color:           var(--rl-mid);
  font-size:       0.72rem;
  font-weight:     700;
  text-decoration: none;
  transition:      border-color 0.2s, color 0.2s;
}
.art-foot-share a:hover { border-color: var(--rl-accent); color: var(--rl-accent); }


/* ----------------------------------------------------------------
   MORE FROM INSIGHTS
   Uses ins-article-card grid from insights.css — no new card CSS.
   ---------------------------------------------------------------- */
.art-more {
  background:    var(--rl-warm);
  padding:       72px 0 80px;
  border-top:    1px solid var(--rl-border);
  border-bottom: 1px solid var(--rl-border);
}

.art-more-header {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  gap:             1rem;
  margin-bottom:   2.5rem;
}

.art-more-header h2 {
  font-family:    var(--rl-font-display);
  font-size:      1.25rem;
  font-weight:    700;
  letter-spacing: -0.01em;
}

.art-more-all {
  font-family:    var(--rl-font-mono);
  font-size:      0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--rl-accent);
  text-decoration: none;
  transition:     opacity 0.2s;
}
.art-more-all:hover { opacity: 0.7; }

.art-more-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
}

@media (max-width: 767.98px) {
  .art-more-grid { grid-template-columns: 1fr; }
}