@charset "UTF-8";
/*
 * custom_article.css
 * TCforBE — News article page styles
 * Path: templates/cassiopeia_tcforbe/css/custom_article.css
 *
 */ 

body.view-article main {
  grid-column: main-start / main-end;
   display: grid;
}

/* Masthead and caption span the full width — both columns */
body.view-article .article-hero,
body.view-article .hero-caption {
  grid-column: 1 / -1;
}

/* Article content stays in column 1 */


@media (min-width: 992px) {
  body.view-article .com-content-article {
  
}
}

/* Sidebar module — column 2, same row as article content */
body.view-article .related-articles-sidebar {
  grid-column: 2 / 3;
  grid-row: 3; /* content row */
  padding-top: clamp(2rem, 4vw, 3.5rem);
  position: sticky;
  top: calc(57px + 1.5rem); /* clear sticky header */
}


/* ==========================================================================
   MASTHEAD  —  full-bleed cinematic header, replaces hero module
   ========================================================================== */


/* ==========================================================================
   ARTICLE HEADER  —  meta + social share row
   ========================================================================== */

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: 0.8rem;
  color: var(--color-muted, #6b6e72);
}

.article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.article-meta .meta-item + .meta-item::before {
  content: "·";
  margin: 0 0.55rem;
  color: var(--color-border);
}

.article-meta i { font-size: 0.85em; }

.article-meta a {
  color: var(--color-muted);
  text-decoration: none;
}
.article-meta a:hover { color: var(--link-hover-color); }

/* Social share */
.article-share {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.share-label {
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted, #6b6e72);
  margin-right: 0.4rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--color-muted, #6b6e72);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.share-btn:hover { text-decoration: none; }
.share-btn.fb:hover { color: #1877f2; background: rgba(24, 119, 242, 0.09); }
.share-btn.tw:hover { color: #000;    background: rgba(0, 0, 0, 0.07); }
.share-btn.li:hover { color: #0a66c2; background: rgba(10, 102, 194, 0.09); }


/* ==========================================================================
   ARTICLE BODY  —  editorial prose
   ========================================================================== */

.article-body {
  font-size: clamp(0.97rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.85;
  color: var(--color-ink, #53565a);
}
@media (min-width: 992px) { 
  .article-body {
    width:80%;
  }
}
/* Lead paragraph */
.article-body > p:first-child {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.72;
  color: var(--color-heading);
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.article-body p { margin-bottom: 1.2rem; }

/* In-body headings */
.article-body h2 {
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  margin: 2.25rem 0 0.75rem;
}

.article-body h3 {
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  margin: 1.75rem 0 0.6rem;
}

/* Body links */
.article-body a:not(.btn):not(.btn-article-cta) {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link-color) 35%, transparent);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.article-body a:not(.btn):not(.btn-article-cta):hover {
  color: var(--link-hover-color);
  text-decoration-color: var(--link-hover-color);
}

/* Strong */
.article-body strong,
.article-body b {
  font-weight: 600;
  color: var(--color-heading);
}

/* Lists */
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.article-body li { margin-bottom: 0.45rem; line-height: 1.7; }

/* Blockquote / pull-quote */
.article-body blockquote {
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
  border: none;
  border-left: 3px solid var(--color-brand-green-light, #62a744);
  padding: 0.35rem 0 0.35rem 1.25rem;
  margin: 2rem 0;
}
.article-body blockquote p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* CTA button (btn-secondary, btn-accessible patterns already in articles) */
.article-body .btn.btn-secondary,
.article-body .btn-accessible,
.article-body .btn-article-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-brand-blue-text, #0077ab);
  background: transparent;
  border: 2px solid var(--color-brand-blue-text, #0077ab);
  border-radius: 0;
  padding: 0.8rem 1.6rem;
  margin-top: 1.25rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.article-body .btn.btn-secondary:hover,
.article-body .btn-accessible:hover,
.article-body .btn-article-cta:hover {
  background: var(--color-brand-blue-text, #0077ab);
  color: #fff;
  text-decoration: none;
}

/* In-article images (not the masthead) */
.article-body figure {
  margin: 1.75rem 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
}
.article-body figcaption {
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: 0.72rem;
  color: var(--color-muted);
  padding: 0.4rem 0 0;
  border-top: 1px solid var(--color-border);
  line-height: 1.5;
}


/* ==========================================================================
   SIDEBAR  —  .related-articles-sidebar (existing class from mod_articles)
   Overrides only what's needed to work in the 22rem right column
   ========================================================================== */

/* "More Articles" label */
.related-articles-sidebar::before {
  content: "More Articles";
  display: block;
  font-family: var(--cassiopeia-font-family-headings, "Barlow", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-brand-green-dark, #005b2e);
}

/* Lead article in sidebar — single-column, no hover lift */
.related-articles-sidebar .news-lead {
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg, #f8f6f1);
  animation: none; /* suppress homepage entrance animation */
}
.related-articles-sidebar .news-lead::after { display: none; }
.related-articles-sidebar .news-lead__link {
  display: block;
  min-height: auto;
}
.related-articles-sidebar .news-lead__figure {
  height: clamp(130px, 14vw, 180px);
}
.related-articles-sidebar .news-lead__body { padding: 0.85rem 1rem 0.9rem; }
.related-articles-sidebar .news-lead__heading {
  font-size: 0.88rem;
  line-height: 1.3;
  margin-bottom: 0;
}
.related-articles-sidebar .news-lead:hover .news-lead__heading {
  color: var(--link-hover-color);
}

/* Ruled list */
.related-articles-sidebar .news-index {
  border-top: 1px solid var(--color-border);
}
.related-articles-sidebar .news-index__link {
  padding: 0.7rem 0;
  gap: 0.85rem;
}
/* Remove hover indent on narrow sidebar */
.related-articles-sidebar .news-index__item .news-index__link:hover {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.related-articles-sidebar .news-index__heading { font-size: 0.82rem; }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  body.view-article main {
    grid-template-columns: 1fr;
  }

  /* All children span full width */
  body.view-article .article-masthead,
  body.view-article .masthead-caption,
  body.view-article .com-content-article,
  body.view-article .related-articles-sidebar {
    grid-column: 1 / -1;
  }

  /* Sidebar drops below content, loses sticky */
  body.view-article .related-articles-sidebar {
    position: static;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    margin-top: 0;
  }

  /* Lead image can be wider on tablet */
  .related-articles-sidebar .news-lead__figure {
    height: clamp(160px, 28vw, 220px);
  }

  .article-body { max-width: 100%; }
}

@media (max-width: 640px) {
  .article-masthead { height: clamp(260px, 60vw, 360px); }
  .article-header { flex-direction: column; align-items: flex-start; }
  .com-content-article { padding-left: 0; padding-right: 0; }
}


/* ==========================================================================
   ENTRANCE ANIMATION
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @keyframes article-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }

  .article-masthead__tag   { animation: article-rise 0.4s ease 0.05s both; }
  .article-masthead__title { animation: article-rise 0.5s ease 0.12s both; }
  .article-header          { animation: article-rise 0.4s ease 0.20s both; }
  .article-body            { animation: article-rise 0.45s ease 0.28s both; }
}

@media (prefers-reduced-motion: reduce) {
  .article-masthead__img { transition: none; }
}