/* ============================================================
   ARTICLE DETAIL VIEW — article-detail-view.css
   Self-contained styles for hero + page-wrap content.
   Drop this into any layout. No header/breadcrumb/footer styles included.
   ============================================================ */

/* ============================================================
   TOKENS
   Define these on :root in the host layout, or they will fall
   back to the values below via the cascade.
   ============================================================ */
:root {
  --bg:             #0c0c14;
  --bg-lift:        #111119;
  --surface:        rgba(255,255,255,0.03);
  --surface-2:      rgba(255,255,255,0.055);
  --border:         rgba(255,255,255,0.07);
  --border-2:       rgba(255,255,255,0.13);
  --text:           #e4e2df;
  --text-sub:       #a8a6a3;
  --text-dim:       #555;
  --purple:         #a092e2;
  --purple-dim:     rgba(160,146,226,0.10);
  --purple-border:  rgba(160,146,226,0.25);
  --gold:           #c9a84c;
  --gold-dim:       rgba(201,168,76,0.09);
  --gold-border:    rgba(201,168,76,0.30);
  --max-w:          1120px;
  --adv-font:       "SF Pro Display","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
}


/* ============================================================
   HERO
   ============================================================ */
.adv-hero {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 0 24px;
}

.adv-hero-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a24;
  max-width: 480px;
}
.adv-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adv-hero-content { padding: 24px 0 0; }

.adv-hero-filed-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adv-filed-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--purple-border);
  background: var(--purple-dim);
  padding: 3px 9px;
  border-radius: 3px;
}

h1.adv-hero-h1 {
  font-family: var(--adv-font);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  color: #f0ede8;
  letter-spacing: -0.5px;
  max-width: 820px;
  margin-bottom: 16px;
}

.adv-hero-lead {
  font-family: var(--adv-font);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  color: var(--text-sub);
  max-width: 720px;
  margin-bottom: 20px;
}

.adv-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.adv-hero-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
}
.adv-hero-source img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

/* Favicon placeholder — circle with source index number */
.adv-favicon-placeholder {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: var(--purple);
  flex-shrink: 0;
  font-family: var(--adv-font);
  line-height: 1;
}
/* Slightly larger variant used in footnotes / sidebar sources */
.adv-favicon-placeholder--sm {
  width: 12px;
  height: 12px;
  font-size: 7px;
}

.adv-hero-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
}


/* ============================================================
   PAGE WRAP & CONTENT GRID
   ============================================================ */
.adv-page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.adv-content-grid {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 48px;
  padding: 40px 0 0;
}

@media (max-width: 880px) {
  .adv-content-grid { grid-template-columns: 1fr; }
  .adv-sidebar { display: none; }
}


/* ============================================================
   KEY FACTS / TL;DR BOX
   ============================================================ */
.adv-key-facts {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-top: 3px solid var(--purple);
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 32px;
}

.adv-key-facts-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--adv-font);
}
.adv-key-facts-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--purple-border);
}

.adv-key-facts ul { list-style: none; padding: 0; }
.adv-key-facts li {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  color: var(--text-sub);
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-family: var(--adv-font);
}
.adv-key-facts li:last-child { border-bottom: none; }
.adv-key-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.7;
}
.adv-key-facts li b { color: var(--text); }


/* ============================================================
   ARTICLE PROSE
   ============================================================ */
.adv-article-prose {
  font-family: var(--adv-font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-sub);
}
.adv-article-prose p { margin-bottom: 22px; }
.adv-article-prose b,
.adv-article-prose strong { color: var(--text); font-weight: 600; }

.adv-article-prose h2 {
  font-family: var(--adv-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 40px 0 18px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Inline citation superscript */
sup.adv-cite-ref {
  font-size: 9px;
  vertical-align: super;
  margin-left: 1px;
  line-height: 0;
}
sup.adv-cite-ref a {
  color: var(--purple);
  font-family: var(--adv-font);
  font-weight: 600;
  text-decoration: none;
}
sup.adv-cite-ref a:hover { text-decoration: underline; }


/* ============================================================
   PULL QUOTE
   Key insight displayed as a pull quote — no speaker/cite.
   ============================================================ */
.adv-pull-quote {
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 32px 0;
}

.adv-pull-quote-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 10px;
  font-family: var(--adv-font);
}

.adv-pull-quote blockquote {
  font-family: var(--adv-font);
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}


/* ============================================================
   INLINE VIDEO
   ============================================================ */
.adv-article-video {
  border-radius: 8px;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--border-2);
  overflow: hidden;
  margin: 28px 0;
}

.adv-article-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: #000;
  text-decoration: none;
}
.adv-article-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition: transform 0.3s, filter 0.3s;
}
.adv-article-video-thumb:hover img {
  transform: scale(1.02);
  filter: brightness(0.65);
}

.adv-article-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.adv-article-video-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(220,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: transform 0.2s, background 0.2s;
}
.adv-article-video-thumb:hover .adv-article-video-play-btn {
  transform: scale(1.1);
  background: rgb(220,0,0);
}
.adv-article-video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 15px solid #fff;
  margin-left: 3px;
}

.adv-article-video-meta { padding: 11px 16px 14px; }

.adv-article-video-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-family: var(--adv-font);
}

.adv-article-video-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.4;
  display: block;
  text-decoration: none;
  transition: color 0.15s;
  font-family: var(--adv-font);
}
.adv-article-video-title:hover { color: var(--text); text-decoration: none; }


/* ============================================================
   FOOTNOTES / SOURCES SECTION
   ============================================================ */
.adv-footnotes-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-2);
}

.adv-section-rule-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--adv-font);
}
.adv-section-rule-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.adv-footnote-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.adv-footnote-item:last-child { border-bottom: none; }

.adv-fn-num {
  font-size: 9px;
  font-weight: 700;
  color: var(--purple);
  min-width: 14px;
  padding-top: 3px;
  font-family: var(--adv-font);
}

.adv-fn-pub {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  flex-shrink: 0;
  padding-top: 1px;
  width: 20%;
}
.adv-fn-pub img {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.adv-fn-pub-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-sub);
  font-family: var(--adv-font);
}

.adv-fn-body { flex: 1; }

.adv-fn-quote {
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 3px;
  font-family: var(--adv-font);
}

.adv-fn-link {
  font-size: 10px;
  color: var(--purple);
  text-decoration: none;
}
.adv-fn-link:hover { text-decoration: underline; }


/* ============================================================
   FAQ SECTION
   Questions only — no expandable answers.
   ============================================================ */
.adv-faq-section { margin-top: 36px; }

.adv-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  font-size: 13.5px;
  color: var(--text-sub);
  font-family: var(--adv-font);
  line-height: 1.5;
}
.adv-faq-item:first-child { border-top: 1px solid var(--border); }


/* ============================================================
   SIDEBAR
   ============================================================ */
.adv-sidebar {
  position: sticky;
  top: 70px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
    padding-bottom: 14px;   
}

.adv-sb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.adv-sb-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--adv-font);
}
.adv-sb-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Key Insight */
.adv-sb-insight {
  font-family: var(--adv-font);
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-sub);
  border-left: 2px solid var(--purple);
  padding-left: 12px;
}

/* Summary list */
.adv-sb-summary-list { list-style: none; padding: 0; }
.adv-sb-summary-list li {
  font-size: 12.5px;
  color: var(--text-sub);
  padding: 7px 0 7px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.5;
  font-family: var(--adv-font);
}
.adv-sb-summary-list li:last-child { border-bottom: none; }
.adv-sb-summary-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.6;
}
.adv-sb-summary-list b { color: var(--text); }

/* Key People */
.adv-sb-people { display: flex; flex-wrap: wrap; gap: 5px; }
.adv-person-pill {
  font-size: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--text-sub);
  font-family: var(--adv-font);
}

/* Topics */
.adv-sb-topics { display: flex; flex-wrap: wrap; gap: 5px; }
.adv-topic-tag {
  font-size: 10px;
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--purple);
  font-family: var(--adv-font);
}

/* Sources */
.adv-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.adv-source-row:last-child { border-bottom: none; }
.adv-source-row img {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
}
.adv-source-name {
  font-size: 12px;
  color: var(--text-sub);
  font-family: var(--adv-font);
}
.adv-source-type {
  font-size: 10px;
  color: var(--text-dim);
  margin-left: auto;
  font-family: var(--adv-font);
}


/* ============================================================
   RELATED REPORTING
   ============================================================ */
.adv-related-section {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border-2);
  margin-top: 48px;
}

.adv-related-header {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--adv-font);
}
.adv-related-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.adv-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .adv-related-grid { grid-template-columns: 1fr; }
}

.adv-related-card {
  border: 1px solid var(--border-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  /* Top accent colour is set dynamically via inline style on the element */
  border-top-width: 3px;
  border-top-style: solid;
  border-top-color: var(--border-2); /* fallback if no accent supplied */
}
.adv-related-card:hover {
  border-color: var(--purple-border);
  box-shadow: 0 4px 24px rgba(160,146,226,0.07);
}

.adv-rc-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #1a1a24;
}

.adv-rc-body { padding: 16px; }

.adv-rc-source-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.adv-rc-source-badge img {
  width: 13px;
  height: 13px;
  border-radius: 2px;
}
.adv-rc-source-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  /* colour is set via inline style per card */
  color: var(--purple);
  font-family: var(--adv-font);
}

.adv-rc-headline {
  font-family: var(--adv-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adv-rc-summary {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 12px;
  font-family: var(--adv-font);
}

.adv-rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.adv-rc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.adv-rc-tag {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  background: rgba(255,255,255,0.025);
  font-family: var(--adv-font);
}
.adv-rc-date {
  font-size: 10.5px;
  color: var(--text-dim);
  font-family: var(--adv-font);
}

/* Related card TL;DR facts list */
.adv-rc-key-facts {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.adv-rc-key-facts-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: var(--adv-font);
}
.adv-rc-facts-list { list-style: none; padding: 0; }
.adv-rc-facts-list li {
  font-size: 11.5px;
  color: var(--text-sub);
  padding: 5px 0 5px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.5;
  font-family: var(--adv-font);
}
.adv-rc-facts-list li:last-child { border-bottom: none; }
.adv-rc-facts-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  /* colour set via --rc-accent on the parent card */
  background: var(--rc-accent, var(--text-dim));
  opacity: 0.7;
}

/* ── Subscribed topic indicator ── */
.adv-tag--subscribed {
  background: rgba(61, 184, 106, 0.12);
  border-color: rgba(61, 184, 106, 0.35);
  color: #3db86a;
}
.adv-tag--subscribed::before {
  content: '✓ ';
  font-size: 0.85em;
  font-weight: 700;
}

/* Applied to filed-tag, topic-tag, rc-tag, person-pill variants */
.adv-filed-tag.adv-tag--subscribed {
  background: rgba(61, 184, 106, 0.12);
  border-color: rgba(61, 184, 106, 0.35);
  color: #3db86a;
}
.adv-topic-tag.adv-tag--subscribed {
  background: rgba(61, 184, 106, 0.12);
  border-color: rgba(61, 184, 106, 0.35);
  color: #3db86a;
}
.adv-rc-tag.adv-tag--subscribed {
  background: rgba(61, 184, 106, 0.12);
  border-color: rgba(61, 184, 106, 0.35);
  color: #3db86a;
}
.adv-person-pill.adv-tag--subscribed {
  background: rgba(61, 184, 106, 0.10);
  border-color: rgba(61, 184, 106, 0.30);
  color: #3db86a;
}

body.light-mode h1.adv-hero-h1,
body.light-mode .adv-key-facts li b,
body.light-mode .adv-article-prose b, 
body.light-mode .adv-article-prose strong,
body.light-mode .adv-pull-quote blockquote,
body.light-mode .adv-sb-summary-list b,
body.light-mode .adv-rc-headline {
    color: #1a1a1a;
}
body.light-mode .adv-hero-lead,
body.light-mode .adv-key-facts li,
body.light-mode .adv-article-prose,
body.light-mode.adv-article-prose p,
body.light-mode .adv-sb-summary-list li,
body.light-mode .adv-rc-summary,
body.light-mode .adv-rc-facts-list li {
    color: #585551;
}

body.light-mode .adv-article-video {
    background: #000;
}

body.light-mode .adv-faq-item {
    border-bottom: 1px solid #c0c0c0;
    color: #1a1a1a;
}

body.light-mode .adv-person-pill {
    color: #585551;
    border-color: #585551;
}


body.light-mode .adv-sb-card,
body.light-mode .adv-related-card {
        background: #efefef8a;
}