/* components/article.css
   Article template styling: Hero, Introduction, Main Content,
   Key Takeaways, References, Related Products, Related Articles.
   Related Products reuses the existing .rp/.related classes from
   related-products.css as-is (no new styles needed for that section).
   .article-card (used here for Related Articles, and reused by the
   Research Hub's search/filter grid) is defined at the bottom. */

/* HERO */
.article-hero{position:relative;padding:32px 40px 0;max-width:var(--max);margin:0 auto}

.article-hero__cat{font-family:var(--fm);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--amber);display:block;margin-bottom:16px}

.article-hero__title{font-family:var(--fd);font-size:clamp(32px,4vw,52px);font-weight:300;line-height:1.1;letter-spacing:-.01em;color:var(--ink-900);max-width:820px;margin-bottom:20px}

.article-hero__meta{font-family:var(--fb);font-size:13px;color:var(--ink-500);margin-bottom:32px}

.article-hero__imgwrap{width:100%;aspect-ratio:16/7;border-radius:var(--r-lg);overflow:hidden;background:var(--s200);margin-bottom:48px}

.article-hero__imgwrap img{width:100%;height:100%;object-fit:cover}

/* INTRODUCTION + MAIN CONTENT share one measure for readability */
.article-body-wrap{max-width:720px;margin:0 auto;padding:0 40px}

.article-introduction{font-family:var(--fd);font-size:22px;font-weight:300;line-height:1.5;color:var(--ink-700);margin-bottom:48px}

.article-body__h2{font-family:var(--fd);font-size:26px;font-weight:400;color:var(--ink-900);margin:48px 0 20px}

.article-body__h3{font-family:var(--fd);font-size:20px;font-weight:400;color:var(--ink-900);margin:36px 0 16px}

.article-body__p{font-family:var(--fb);font-size:16px;line-height:1.75;color:var(--ink-700);margin-bottom:20px}

.article-body__list{margin:0 0 24px;padding-left:22px}

.article-body__list li{font-family:var(--fb);font-size:16px;line-height:1.7;color:var(--ink-700);margin-bottom:10px}

.article-body__figure{margin:32px 0}

.article-body__figure img{width:100%;border-radius:var(--r-md)}

.article-body__caption{font-family:var(--fb);font-size:12px;color:var(--ink-500);margin-top:10px;text-align:center}

/* Callout — modular block, one variant today ("note"), styled so
   additional variants can be added later by adding a new
   .article-callout--{variant} rule, not restructuring this one */
.article-callout{border-left:2px solid var(--amber);background:var(--s100);border-radius:0 var(--r-md) var(--r-md) 0;padding:20px 24px;margin:32px 0}

.article-callout__label{font-family:var(--fm);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--amber);display:block;margin-bottom:8px}

.article-callout__text{font-family:var(--fb);font-size:15px;line-height:1.65;color:var(--ink-700)}

/* KEY TAKEAWAYS */
.article-takeaways{max-width:720px;margin:56px auto 0;padding:0 40px}

.takeaways__box{background:var(--ink-900);border-radius:var(--r-lg);padding:36px 40px}

.takeaways__title{font-family:var(--fm);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--amber);margin-bottom:20px}

.takeaways__list{list-style:none;display:flex;flex-direction:column;gap:14px}

.takeaways__item{font-family:var(--fb);font-size:15px;line-height:1.6;color:rgba(250,250,248,.88);padding-left:24px;position:relative}

.takeaways__item::before{content:'';position:absolute;left:0;top:9px;width:6px;height:6px;border-radius:50%;background:var(--amber)}

/* REFERENCES */
.article-references{max-width:720px;margin:56px auto 0;padding:0 40px}

.references__title{font-family:var(--fm);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-700);margin-bottom:20px;border-bottom:1px solid var(--ink-100);padding-bottom:16px}

.references__list{list-style:decimal;padding-left:20px;display:flex;flex-direction:column;gap:12px}

.references__item{font-family:var(--fb);font-size:14px;line-height:1.6;color:var(--ink-500)}

.references__label{color:var(--ink-900);font-style:italic}

.references__source{display:block;font-size:13px;color:var(--ink-300);margin-top:2px}

/* Section spacers reused by Related Products / Related Articles */
.article-section{max-width:var(--max);margin:0 auto;padding:64px 40px 0}

.article-section__title{font-family:var(--fm);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-700);margin-bottom:28px}

/* ARTICLE CARD — used for Related Articles here, and reused as-is by
   the Research Hub's search/filter grid (assets/js/pages/research-hub.js) */
.article-card{display:block}

.article-card__imgwrap{position:relative;aspect-ratio:4/3;border-radius:var(--r-md);overflow:hidden;background:var(--s200);margin-bottom:16px}

.article-card__imgwrap img{width:100%;height:100%;object-fit:cover;transition:transform 500ms var(--smooth)}

.article-card:hover .article-card__imgwrap img{transform:scale(1.03)}

.article-card__cat{font-family:var(--fm);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--amber);display:block;margin-bottom:8px}

.article-card__title{font-family:var(--fd);font-size:19px;font-weight:400;line-height:1.25;color:var(--ink-900);margin-bottom:8px}

.article-card__excerpt{font-family:var(--fb);font-size:13px;line-height:1.55;color:var(--ink-500);margin-bottom:12px}

.article-card__readtime{font-family:var(--fb);font-size:12px;color:var(--ink-300)}

.article-cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}

@media(max-width:1023px){
  .article-hero{padding:24px 24px 0}
  .article-body-wrap,.article-takeaways,.article-references{padding:0 24px}
  .article-section{padding:56px 24px 0}
  .article-cards-grid{grid-template-columns:repeat(2,1fr)}
  .related__grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:639px){
  .article-hero{padding:20px 20px 0}
  .article-hero__imgwrap{aspect-ratio:4/3;margin-bottom:32px}
  .article-introduction{font-size:19px}
  .article-body-wrap,.article-takeaways,.article-references{padding:0 20px}
  .article-section{padding:48px 20px 0}
  .takeaways__box{padding:28px 24px}
  .article-cards-grid{grid-template-columns:1fr;gap:16px}
  .related__grid{grid-template-columns:repeat(2,1fr);gap:14px}
}
