/* =============================================
   Article Page — WSJ-Inspired Editorial Layout v2
   ============================================= */

/* ── Scoped CSS Variables ── */
.article {
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ink: #1a1a1a;
  --ink-secondary: #555;
  --ink-tertiary: #888;
  --rule: #d4d4d4;
  --rule-heavy: #1a1a1a;
  --bg-warm: #f7f5f0;
  --accent: #1a73e8;

  background: #ffffff;
}

/* ── Article Header ── */
.article-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 0;
}

.article-header__category {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.article-header__headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 820px;
  letter-spacing: -0.02em;
}

.article-header__deck {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: #445366;
  max-width: 720px;
  margin-bottom: 28px;
}

.article-header__rule {
  height: 3px;
  background: var(--rule-heavy);
  width: 100%;
  margin-bottom: 16px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

/* Meta — Left */
.meta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta-author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
}
.meta-author__info {
  display: flex;
  flex-direction: column;
}
.meta-author__name {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
a.meta-author__name {
  color: var(--ink);
  text-decoration: none;
}
a.meta-author__name:hover {
  text-decoration: underline;
}
.meta-author__title {
  font-family: var(--font-family);
  font-size: 12px;
  color: var(--ink-tertiary);
}

.meta-details {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--ink-tertiary);
}
.meta-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-tertiary);
  opacity: 0.5;
}

/* Meta — Right (share buttons) */
.meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.share-btn:hover {
  border-color: var(--accent);
  background: #f0f6ff;
}
.share-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--ink-secondary);
}

/* ── Hero Image ── */
.hero-image {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 40px;
}
.hero-image__img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.hero-image__caption {
  font-family: var(--font-family);
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-top: 8px;
  padding-left: 2px;
}

/* ── Audio Bar (compact wrapper) ── */
.audio-bar {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 40px;
}

/* ── Fuel Surcharge Chart ── */
.fuel-chart-wrapper {
  margin: 32px 0;
  padding: 24px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

/* ── Article Content Grid ── */
.article-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
}

.article-content {
  max-width: 740px;
  min-width: 0;
}

/* ── Prose — Body Text ── */
.article-content .prose p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 24px;
}

.article-content .prose p:first-child {
  font-size: 21px;
  line-height: 1.65;
}

.article-content .prose p:first-child::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 4.2em;
  font-weight: 700;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 6px;
  color: var(--accent);
}

.article-content .prose strong {
  font-weight: 600;
}

.article-content .prose em {
  font-style: italic;
}

.article-content .prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.article-content .prose a:hover {
  color: #1557b0;
}

/* ── Section Headings (h2) ── */
.article-content .prose h2 {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule-heavy);
}

/* ── Sub-headings (h3) ── */
.article-content .prose h3 {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 32px 0 14px;
}

/* ── Blockquotes ── */
.article-content .prose blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--accent);
  background: #f5f8fc;
  border-radius: 0 6px 6px 0;
}
.article-content .prose blockquote p {
  font-style: italic;
  margin-bottom: 12px;
}
.article-content .prose blockquote p:last-child {
  margin-bottom: 0;
}

/* ── Tables ── */
.article-content .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: var(--font-family);
  font-size: 14px;
}
.article-content .prose thead th {
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 10px 16px;
  border-bottom: 2px solid var(--rule-heavy);
  background: var(--bg-warm);
}
.article-content .prose tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.article-content .prose tbody tr:last-child td {
  border-bottom: none;
}
.article-content .prose tbody td strong {
  font-weight: 600;
}

/* ── Horizontal Rules ── */
.article-content .prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

/* ── Lists ── */
.article-content .prose ul,
.article-content .prose ol {
  margin: 20px 0;
  padding-left: 28px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink);
}
.article-content .prose li {
  margin-bottom: 8px;
}

/* ── Mid-Article CTA ── */
.mid-article-cta {
  margin: 48px 0;
  padding: 32px 36px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mid-article-cta__content {
  flex: 1;
}
.mid-article-cta__eyebrow {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.mid-article-cta__text {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  margin-bottom: 0;
}
.mid-article-cta__sub {
  font-family: var(--font-family);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  margin-bottom: 0;
}
.mid-article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.mid-article-cta__btn:hover {
  background: #1557b0;
}

/* ── Author Bio Card ── */
.author-bio-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.author-bio-card__hex {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background: #1E90FF;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}
.author-bio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 20%;
}
.author-bio-card__text {
  flex: 1;
  min-width: 0;
}
.author-bio-card__name {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.author-bio-card__name a {
  color: var(--ink);
  text-decoration: none;
}
.author-bio-card__name a:hover {
  text-decoration: underline;
}
.author-bio-card__title {
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 2px;
}
.author-bio-card__bio {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-top: 8px;
}
.author-bio-card__bio a {
  color: var(--accent);
  text-decoration: none;
}
.author-bio-card__bio a:hover {
  text-decoration: underline;
}

/* ── Tags ── */
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.article-tags a {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.15s;
}
.article-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f6ff;
}

/* ════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════ */
.article-sidebar {
  padding-top: 8px;
  position: relative;
}
.sidebar-sticky {
  position: sticky;
  top: 80px;
}
.sidebar-section {
  margin-bottom: 32px;
}
.sidebar-section__title {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule-heavy);
}

/* -- Sidebar CTA (primary) -- */
.sidebar-cta {
  background: linear-gradient(145deg, var(--navy), #163d5e);
  border-radius: 10px;
  padding: 28px 24px;
  color: white;
}
.sidebar-cta__title {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sidebar-cta__desc {
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-cta__btn:hover {
  background: #1557b0;
}

/* -- Related Articles -- */
.related-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.related-item:last-child {
  border-bottom: none;
}
.related-item__category {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.related-item__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.15s;
}
.related-item:hover .related-item__title {
  color: var(--accent);
}
.related-item__date {
  font-family: var(--font-family);
  font-size: 11px;
  color: var(--ink-tertiary);
  margin-top: 4px;
}

/* -- Newsletter Signup -- */
.sidebar-newsletter {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px;
}
.sidebar-newsletter__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.sidebar-newsletter__icon svg {
  width: 18px;
  height: 18px;
}
.sidebar-newsletter__title {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.sidebar-newsletter__desc {
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}
.sidebar-newsletter__input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-newsletter__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 13px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.sidebar-newsletter__input:focus {
  border-color: var(--accent);
}
.sidebar-newsletter__input::placeholder {
  color: var(--ink-tertiary);
}
.sidebar-newsletter__submit {
  width: 100%;
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-newsletter__submit:hover {
  background: #1557b0;
}
.sidebar-newsletter__fine {
  font-family: var(--font-family);
  font-size: 11px;
  color: var(--ink-tertiary);
  margin-top: 8px;
  line-height: 1.4;
}

/* -- Podcast Teaser -- */
.sidebar-podcast {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.sidebar-podcast__header {
  background: var(--blue);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-podcast__mic-icon {
  font-size: 20px;
  color: white;
  font-variation-settings: 'FILL' 1;
}
.sidebar-podcast__badge {
  background: rgba(255,255,255,0.2);
  color: white;
  font-family: var(--font-family);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  line-height: 1.4;
}
.sidebar-podcast__header-text {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: white;
  flex: 1;
  white-space: nowrap;
}
.sidebar-podcast__body {
  padding: 20px;
}
.podcast-episode {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.podcast-episode:last-child {
  border-bottom: none;
}
.podcast-episode__title {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}
.podcast-episode__meta {
  font-family: var(--font-family);
  font-size: 11px;
  color: var(--ink-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.podcast-episode__play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
}
.podcast-episode__play svg {
  width: 12px;
  height: 12px;
  fill: var(--accent);
}

/* -- Resource Navigation -- */
.resource-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: all 0.15s;
}
.resource-nav-item:last-child {
  border-bottom: none;
}
.resource-nav-item:hover .resource-nav-item__title {
  color: var(--accent);
}
.resource-nav-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resource-nav-item__icon svg {
  width: 16px;
  height: 16px;
}
.resource-nav-item__title {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s;
}
.resource-nav-item__count {
  font-family: var(--font-family);
  font-size: 11px;
  color: var(--ink-tertiary);
}

/* -- Commercial CTA -- */
.sidebar-cta-commercial {
  background: linear-gradient(145deg, var(--blue), #4a9af5);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.sidebar-cta-commercial::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.sidebar-cta-commercial__stat {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
}
.sidebar-cta-commercial__stat-label {
  font-family: var(--font-family);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  position: relative;
}
.sidebar-cta-commercial__title {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
  position: relative;
}
.sidebar-cta-commercial__desc {
  font-family: var(--font-family);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
}
.sidebar-cta-commercial__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--blue);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
}
.sidebar-cta-commercial__btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   END-OF-ARTICLE CTA (full width)
   ════════════════════════════════════════ */
.article-bottom-cta {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 40px;
}
.article-bottom-cta__inner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a6e 100%);
  border-radius: 12px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.article-bottom-cta__content {
  position: relative;
  z-index: 1;
  flex: 1;
}
.article-bottom-cta__eyebrow {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.article-bottom-cta__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 500px;
}
.article-bottom-cta__desc {
  font-family: var(--font-family);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-width: 480px;
}
.article-bottom-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.article-bottom-cta__primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  justify-content: center;
}
.article-bottom-cta__primary:hover {
  background: #1557b0;
}
.article-bottom-cta__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  justify-content: center;
}
.article-bottom-cta__secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

/* ── Back Link ── */
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover {
  color: #1557b0;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 860px) {
  .article-grid {
    grid-template-columns: 1fr;
    padding: 24px 24px 48px;
    gap: 40px;
  }
  .article-header {
    padding: 32px 24px 0;
  }
  .article-header__headline {
    font-size: 36px;
  }
  .article-header__deck {
    font-size: 18px;
  }
  .article-header__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-image {
    padding: 0 24px;
  }
  .hero-image__img {
    height: 280px;
  }
  .audio-bar {
    padding: 0 24px;
  }
  .mid-article-cta {
    flex-direction: column;
    text-align: center;
  }
  .sidebar-sticky {
    position: relative;
    top: 0;
  }
  .article-bottom-cta {
    padding: 0 24px;
  }
  .article-bottom-cta__inner {
    flex-direction: column;
    padding: 36px 28px;
  }
}

@media (max-width: 600px) {
  .article-header__headline {
    font-size: 28px;
  }
  .article-header__deck {
    font-size: 16px;
  }
  .meta-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .meta-details {
    flex-wrap: wrap;
  }
  .meta-right {
    display: none;
  }
  .hero-image__img {
    height: 200px;
  }
  .article-content .prose p {
    font-size: 17px;
    line-height: 1.7;
  }
  .article-content .prose p:first-child {
    font-size: 18px;
  }
}
