/* ==============================================
   NEWSLETTER STYLES
   Reading page + Archive/listing page
   ============================================== */

/* --- Sticky Reading Header --- */
.reading-header {
  position: fixed; top: 72px; width: 100%; z-index: 90;
  background: rgba(250,250,248,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(-100%);
  transition: opacity 0.3s, transform 0.3s;
}
.reading-header.visible { opacity: 1; transform: translateY(0); }
.reading-header-inner {
  max-width: 720px; margin: 0 auto; padding: 10px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.reading-header-left { display: flex; align-items: center; gap: 12px; }
.reading-header-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--teal); background: var(--teal-subtle); padding: 3px 10px; border-radius: 4px;
}
.reading-header-title {
  font-size: 13px; font-weight: 600; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px;
}
.reading-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--teal); width: 0%; transition: width 0.1s;
}

/* --- Article Hero --- */
.article-hero { max-width: 720px; margin: 0 auto; padding: 140px 40px 48px; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.article-issue {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal); background: var(--teal-subtle); padding: 5px 14px; border-radius: 4px;
}
.article-date { font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.article-date::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--text-light); }
.article-reading-time { font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.article-reading-time::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--text-light); }

.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700; line-height: 1.2; color: var(--navy);
  letter-spacing: -0.5px; margin-bottom: 20px;
}
.article-subtitle { font-size: 18px; line-height: 1.6; color: var(--text-muted); font-weight: 300; max-width: 620px; }
.article-tags { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.article-tag {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  background: var(--bg-warm); padding: 4px 12px; border-radius: 20px;
  text-decoration: none; transition: all 0.2s; border: 1px solid var(--border);
}
.article-tag:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-subtle); }
.article-divider { max-width: 720px; margin: 0 auto; padding: 0 40px; }
.article-divider hr { border: none; height: 1px; background: var(--border); }

/* --- Article Body --- */
.article-body { max-width: 720px; margin: 0 auto; padding: 48px 40px; }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin: 48px 0 18px; line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 18px; font-weight: 600; color: var(--navy);
  margin: 36px 0 12px; line-height: 1.4;
}
.article-body p { font-size: 16.5px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.article-body a {
  color: var(--teal); text-decoration: underline;
  text-decoration-color: rgba(14,165,160,0.3); text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--teal); }
.article-body strong { font-weight: 600; color: var(--navy); }

/* Article images */
.article-body img {
  width: 100%; height: auto; border-radius: 10px;
  margin: 28px 0; box-shadow: 0 4px 20px rgba(15,43,70,0.08);
}
.article-body .img-caption {
  font-size: 12px; color: var(--text-light); text-align: center;
  margin: -18px 0 28px; font-style: italic;
}
.article-hero-img {
  width: 100%; height: auto; border-radius: 12px;
  margin: 32px 0 0; box-shadow: 0 8px 32px rgba(15,43,70,0.1);
}

/* Full-bleed image option */
.article-body .img-full {
  width: calc(100% + 80px); margin-left: -40px; border-radius: 0;
  box-shadow: none;
}
.article-body blockquote {
  border-left: 3px solid var(--teal); padding: 16px 24px; margin: 32px 0;
  background: var(--teal-subtle); border-radius: 0 8px 8px 0;
}
.article-body blockquote p { font-size: 15.5px; color: var(--navy-light); margin-bottom: 0; font-style: italic; }
.article-body ul, .article-body ol { margin: 16px 0 24px 24px; }
.article-body li { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 8px; padding-left: 4px; }

/* Callout boxes */
.callout {
  background: var(--bg-warm); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px 28px; margin: 32px 0;
}
.callout-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.callout-label.risk { color: #C44; }
.callout-label.insight { color: var(--teal); }
.callout-label.regulation { color: var(--gold); }
.callout p { font-size: 14.5px; line-height: 1.7; margin-bottom: 0; }

/* Callout via blockquote - auto-detect by bold prefix */
.article-body blockquote p strong:first-child {
  display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.article-body blockquote:has(strong:first-child) {
  border-left-width: 3px; padding: 20px 24px; border-radius: 0 10px 10px 0;
  background: var(--bg-warm); border-color: var(--teal);
}

/* Risk Alert style - detected by content */

/* --- Article Footer --- */
.article-footer { max-width: 720px; margin: 0 auto; padding: 0 40px 80px; }
.article-nav {
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 20px; padding: 40px 0; border-top: 1px solid var(--border);
}
.article-nav-item {
  flex: 1; text-decoration: none; padding: 20px 24px;
  border: 1px solid var(--border); border-radius: 10px; transition: all 0.2s;
}
.article-nav-item:hover { border-color: var(--teal); background: var(--teal-subtle); }
.article-nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 8px;
}
.article-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4;
}
.article-nav-item.next { text-align: right; }

.article-share { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 32px 0; }
.article-share-label { font-size: 13px; color: var(--text-light); }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s; border: 1px solid var(--border);
  color: var(--text-muted); background: var(--white); cursor: pointer; font-family: 'DM Sans';
}
.share-btn:hover { border-color: var(--navy); color: var(--navy); }
.share-btn.linkedin { border-color: #0A66C2; color: #0A66C2; }
.share-btn.linkedin:hover { background: #0A66C2; color: var(--white); }

.article-cta-box {
  background: var(--navy); border-radius: 12px; padding: 40px; text-align: center; margin-top: 24px;
}
.article-cta-box h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); margin-bottom: 10px; }
.article-cta-box p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.btn-teal {
  display: inline-block; background: var(--teal); color: var(--white);
  padding: 12px 28px; border-radius: 6px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.btn-teal:hover { background: var(--teal-light); }

/* === ARCHIVE PAGE === */
.archive-hero { max-width: 1200px; margin: 0 auto; padding: 140px 40px 48px; }
.archive-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; }
.archive-hero-text { max-width: 560px; }
.archive-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.archive-eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--teal); }
.archive-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700;
  color: var(--navy); line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 14px;
}
.archive-hero p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.archive-stat { text-align: right; }
.archive-stat-num { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 700; color: var(--navy); line-height: 1; }
.archive-stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* Filters */
.archive-filters {
  max-width: 1200px; margin: 0 auto; padding: 0 40px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 20px;
}
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border);
  text-decoration: none; transition: all 0.2s; cursor: pointer; background: var(--white);
}
.filter-tag:hover, .filter-tag.active { border-color: var(--teal); color: var(--teal); background: var(--teal-subtle); }
.archive-count { font-size: 13px; color: var(--text-light); }

/* Featured card */
.archive-featured { max-width: 1200px; margin: 0 auto; padding: 40px 40px 0; }
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 48px; text-decoration: none; transition: all 0.3s; position: relative; overflow: hidden;
}
.featured-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.featured-card:hover { box-shadow: 0 12px 40px rgba(15,43,70,0.08); border-color: var(--teal); }
.featured-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.featured-card h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700;
  color: var(--navy); line-height: 1.25; margin-bottom: 16px; transition: color 0.2s;
}
.featured-card:hover h2 { color: var(--teal); }
.featured-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.featured-right { display: flex; flex-direction: column; justify-content: center; }
.featured-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.featured-issue-badge { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--navy); }
.featured-meta-detail { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.featured-read-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--teal); color: var(--white);
  border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; width: fit-content;
}
.featured-read-btn:hover { background: var(--teal-light); transform: translateY(-1px); }

/* Archive cards */
.archive-list { max-width: 1200px; margin: 0 auto; padding: 40px; }
.archive-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: all 0.2s;
}
.archive-card:first-child { padding-top: 0; }
.archive-card:last-child { border-bottom: none; }
.archive-card:hover .archive-card-title { color: var(--teal); }

.archive-card-issue {
  width: 64px; height: 64px; border-radius: 10px; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.archive-card-issue-hash { font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 600; }
.archive-card-issue-num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--white); line-height: 1; }

.archive-card-content { min-width: 0; }
.archive-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.archive-card-date { font-size: 12px; color: var(--text-light); }
.archive-card-type { font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 10px; }
.archive-card-type.roundup { background: #E6F0FF; color: #2B5EA7; }
.archive-card-type.deepdive { background: #F0E6FF; color: #6B3FA0; }
.archive-card-type.spotlight { background: #E6FFE8; color: #2B7A3A; }

.archive-card-title {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600;
  color: var(--navy); line-height: 1.3; margin-bottom: 10px; transition: color 0.2s;
}
.archive-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 580px; }
.archive-card-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.archive-card-tags span { font-size: 10px; font-weight: 500; color: var(--text-light); background: var(--bg-warm); padding: 3px 10px; border-radius: 12px; }
.archive-card-arrow { font-size: 18px; color: var(--text-light); align-self: center; transition: all 0.2s; padding: 12px; }
.archive-card:hover .archive-card-arrow { color: var(--teal); transform: translateX(4px); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .archive-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .archive-stat { text-align: left; }
  .featured-card { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .archive-card { grid-template-columns: auto 1fr; }
  .archive-card-arrow { display: none; }
  .archive-filters { flex-direction: column; align-items: flex-start; gap: 12px; }
  .article-nav { flex-direction: column; }
}
@media (max-width: 600px) {
  .article-hero { padding: 120px 24px 36px; }
  .article-body { padding: 36px 24px; }
  .article-body .img-full { width: calc(100% + 48px); margin-left: -24px; }
  .article-footer { padding: 0 24px 60px; }
  .archive-hero { padding: 120px 24px 36px; }
  .archive-featured { padding: 24px 24px 0; }
  .archive-list { padding: 24px; }
  .archive-card { grid-template-columns: 1fr; gap: 16px; }
  .archive-card-issue { width: 48px; height: 48px; }
  .archive-card-issue-num { font-size: 18px; }
  .archive-card-title { font-size: 18px; }
  .article-hero h1 { font-size: 28px; }
}
