/* ============================================================
   Elite Agent — Components CSS
   Reusable: cards, ad containers, author box, newsletter CTA.
   ============================================================ */

/* ---- Hide author avatars site-wide (images lost during media cleanup) ---- */
.opinion-card__avatar,
.archive-header__avatar,
.movers-strip__avatar {
  display: none;
}

/* ---- Story cards ---- */

/* Lead card — large image + headline + excerpt */
.card-lead {
  position: relative;
}

.card-lead__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-lead__content {
  padding: 12px 0;
}

.card-lead__headline {
  margin-top: 8px;
}

.card-lead__headline a:hover {
  color: var(--accent-primary);
}

.card-lead__excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grey-600);
  line-height: 1.5;
  margin-top: 8px;
}

/* Secondary card — smaller image + headline + excerpt */
.card-secondary {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-100);
}

/* Remove card border when parent container handles it */
.story-grid__item .card-secondary,
.related-stories__card .card-secondary,
.four-oh-four__story .card-secondary,
.hero__secondary-story .card-secondary {
  border-bottom: none;
  padding-bottom: 0;
}

.card-secondary__image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  object-fit: cover;
}

.card-secondary__content {
  flex: 1;
  min-width: 0;
}

.card-secondary__headline a:hover {
  color: var(--accent-primary);
}

.card-secondary__excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compact card — headline only + timestamp */
.card-compact {
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
}

.card-compact__headline {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.card-compact__headline a:hover {
  color: var(--accent-primary);
}

.card-compact__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ---- Ad containers ---- */

/* Base ad container */
.ad-zone {
  text-align: center;
  overflow: hidden;
  margin: 0 auto;
}

/* No extra margin or decoration — ads stand on their own */
.ad-zone:empty {
  display: none;
}

/* Superbanner — 1200 x 270, above masthead */
.ad-superbanner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0;
}

/* Leaderboard — 1456 x 180 */
.ad-leaderboard {
  max-width: 1456px;
  margin: 16px auto;
  padding: 8px 0;
}

/* MREC — 300 x 250 (expandable to 300 x 600 billboard) */
.ad-mrec {
  width: 300px;
  min-height: 250px;
  max-height: 600px;
  margin: 0 auto 20px;
  overflow: hidden;
}

/* House ad — 300 x 300 (non-standard) */
.ad-house {
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
  overflow: hidden;
}

/* In-article banner — 728 x 90 */
.ad-in-article {
  max-width: 728px;
  margin: 24px auto;
  text-align: center;
}

/* Interscroller — 720 x 720 desktop, 360 x 720 mobile */
.ad-interscroller {
  width: 360px;
  height: 720px;
  margin: 24px auto;
  position: relative;
  overflow: hidden;
}

/* Side towers — positioned by responsive.css */
.side-tower {
  display: none;
}

/* Author bio box — styles in single.css */

/* ---- TLDR box ---- */
.article-tldr {
  border-left: 3px solid var(--accent-primary);
  padding: 12px 16px;
  margin: 12px 0 20px;
  background: var(--warm-cream);
}

.article-tldr__label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 4px;
}

.article-tldr p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--black);
}

/* ---- Audio player ---- */
.article-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 12px 0;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: 4px;
}

.audio-play-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.audio-play-btn .play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
}

.audio-play-btn .audio-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.audio-play-btn .audio-duration {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--grey-400);
}

/* ---- Newsletter CTA (sidebar / inline) ---- */
.newsletter-cta {
  padding: 20px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  text-align: center;
}

.newsletter-cta__title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.newsletter-cta__description {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--grey-600);
  margin-bottom: 12px;
}

.newsletter-cta__form {
  display: flex;
  gap: 8px;
}

.newsletter-cta__input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 14px;
}

.newsletter-cta__input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.newsletter-cta__submit {
  padding: 8px 16px;
  background: var(--accent-primary);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: filter var(--speed-fast) var(--ease);
}

.newsletter-cta__submit:hover {
  filter: brightness(0.9);
}

/* ---- Related stories grid ---- */
.related-stories {
  padding: 24px 0;
  margin-top: 24px;
  border-top: 1px solid var(--grey-200);
}

.related-stories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .related-stories__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gutter);
  }

  .related-stories__card .card-secondary {
    flex-direction: column;
  }

  .related-stories__card .card-secondary__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
  }
}

.related-stories__card {
  /* Uses card-secondary internally */
}

/* ---- News ticker ---- */
.news-ticker {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.news-ticker__bar {
  display: flex;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 max(var(--side-padding), 16px);
}

.news-ticker__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  color: var(--white);
  background: var(--accent-news);
  padding: 10px 16px;
  margin-right: 16px;
  z-index: 2;
  position: relative;
}

.news-ticker__track {
  overflow: hidden;
  flex: 1;
  padding: 10px 0;
  margin-left: 16px;
}

.news-ticker__inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
}

.news-ticker__inner:hover {
  /* JS pauses scrolling on hover */
}

.news-ticker__item {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  transition: color var(--speed-fast) var(--ease);
  padding: 0 20px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.news-ticker__item:first-child {
  border-left: none;
}

.news-ticker__item:hover {
  color: var(--accent-primary);
}

/* Ticker scroll is JS-driven via requestAnimationFrame in navigation.js */

/* ---- Engagement placeholder ---- */
.engagement-placeholder {
  padding: 24px 0;
  /* Empty by default — future widget goes here */
}
