/* Collectron — /news archive (index) styles. Centralized from news.html.
   Consumed by the static reference AND the WP Theme Builder archive template.
   Tokens, nav, footer, CTA and buttons come from global.css — this file only
   carries the news-specific sections: hero, feed list, item rows, pagination. */

/* =============================================================
   NEWS HERO HEADER
   ============================================================= */
.news-hero {
  background-color: var(--c-indigo);
  background-image: url('../images/stock/aerial-north-mexico-industrial-city.webp');
  background-size: cover;
  background-position: center 40%;
  padding: 0 var(--pad-h);
  position: relative;
  overflow: hidden;
}
.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 66, 0.88);
  z-index: 0;
}
.news-hero__content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(clamp(40px, 5vw, 64px) + 66px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  z-index: 1;
}
.news-hero__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-soft-blue);
  margin-bottom: 16px;
}
.news-hero__h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--tracking);
  color: #F2F2F3;
  max-width: 22ch;
  margin-bottom: 16px;
}
.news-hero__body {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--c-dim-dark);
  max-width: 52ch;
}


/* =============================================================
   NEWS FEED
   ============================================================= */
.news-feed {
  background: var(--c-surface);
  padding: var(--pad-v) var(--pad-h);
}
.news-feed__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.news-feed__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- News item --- */
.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}
.news-item:first-child {
  padding-top: 0;
}
.news-item:last-child {
  border-bottom: none;
}
@media (min-width: 768px) {
  .news-item {
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .news-item {
    grid-template-columns: 380px 1fr;
    gap: 48px;
  }
}

/* Image — hover scoped to image only */
.news-item__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .news-item__img-wrap {
    margin-bottom: 0;
  }
}
.news-item__img-wrap::before {
  content: '';
  display: block;
  padding-top: 66.667%; /* 3:2 */
}
.news-item__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}
.news-item__img-wrap:hover img {
  transform: scale(1.03);
}

/* Content */
.news-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.news-item__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.news-item__category {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-navy);
  background: rgba(4, 30, 66, 0.06);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.news-item__title {
  display: block;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.news-item__title:hover {
  color: var(--c-blue);
}
.news-item__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 56ch;
  margin-bottom: 18px;
}
.news-item__read-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  position: relative;
  transition: color 180ms var(--ease);
}
.news-item__read-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--c-blue);
  transition: width 220ms var(--ease);
}
.news-item__read-link:hover::after {
  width: 100%;
}
.news-item__read-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  position: relative;
  top: 0.5px;
}


/* =============================================================
   PAGINATION
   ============================================================= */
.news-pagination {
  background: var(--c-surface);
  padding: 0 var(--pad-h) var(--pad-v);
}
.news-pagination__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 48px;
  border-top: 1px solid var(--c-border);
}
.news-pagination__btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.news-pagination__btn:hover {
  color: var(--c-navy);
  background: rgba(4, 30, 66, 0.04);
}
.news-pagination__btn.is-active {
  color: var(--c-blue);
  background: rgba(0, 25, 255, 0.06);
  border-color: rgba(0, 25, 255, 0.15);
}
.news-pagination__btn--arrow {
  color: var(--c-navy);
}
.news-pagination__btn--arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.news-pagination__btn--arrow:disabled:hover {
  background: transparent;
}
.news-pagination__ellipsis {
  font-size: 14px;
  color: var(--c-text-muted);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =============================================================
   NEWS SINGLE POST (news-post.html) — simpler than the blog single:
   single centered column, no sidebar / TOC.
   ============================================================= */

/* --- Hero --- (featured image = dynamic bg in WP; navy overlay on top) */
.npost-hero {
  background-color: var(--c-indigo);
  background-size: cover;
  background-position: center 40%;
  padding: 0 var(--pad-h);
  position: relative;
  overflow: hidden;
}
.npost-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 66, 0.88);
  z-index: 1;
}
.npost-hero__content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(clamp(40px, 5vw, 64px) + 66px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  z-index: 2;
}
.npost-hero__topic {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-navy);
  background: rgba(255, 255, 255, 0.88);
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 20px;
}
.npost-hero__h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--tracking);
  color: #F2F2F3;
  max-width: 28ch;
  margin-bottom: 24px;
}
.npost-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.npost-hero__source {
  font-size: 14px;
  font-weight: 600;
  color: #F2F2F3;
}
.npost-hero__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}
.npost-hero__date {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-dim-dark);
}

/* --- Article (single centered column) --- */
.npost-article {
  background: var(--c-surface);
  padding: clamp(48px, 6vw, 72px) var(--pad-h) var(--pad-v);
}
.npost-article__inner {
  max-width: 720px;
  margin: 0 auto;
}
.npost-article__inner p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}
.npost-article__inner p:last-child { margin-bottom: 0; }
.npost-article__inner h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-top: 48px;
  margin-bottom: 20px;
}
.npost-article__inner h2:first-child { margin-top: 0; }
.npost-article__inner h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-top: 36px;
  margin-bottom: 16px;
}
.npost-article__inner h2 + h3 { margin-top: 24px; }
.npost-article__inner ul,
.npost-article__inner ol { margin-bottom: 24px; padding-left: 24px; }
.npost-article__inner ul { list-style: disc; }
.npost-article__inner ol { list-style: decimal; }
.npost-article__inner li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.npost-article__inner li:last-child { margin-bottom: 0; }
.npost-article__inner blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--c-surface-alt);
  border-radius: 8px;
}
.npost-article__inner blockquote p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-navy);
  margin-bottom: 0;
  font-style: italic;
}
.npost-article__inner blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: var(--c-text-muted);
}
.npost-article__inner hr {
  border: none;
  height: 1px;
  background: var(--c-border);
  margin: 40px 0;
}
.npost-article__inner a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 140ms var(--ease);
}
.npost-article__inner a:hover { color: var(--c-blue-hover); }
.npost-article__inner strong { font-weight: 600; color: var(--c-navy); }
.npost-article__inner img { width: 100%; border-radius: 8px; margin: 32px 0; }
.npost-article__inner figure { margin: 32px 0; }
.npost-article__inner figcaption {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 10px;
}
/* Source attribution (part of the article content) */
.npost-source {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.npost-source strong { font-weight: 600; color: var(--c-navy); }
.npost-source a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }

/* --- Article footer (topic + share, then Back to News) --- */
.npost-footer {
  background: var(--c-surface);
  padding: 0 var(--pad-h);
}
.npost-footer__inner {
  max-width: 720px;
  margin: 0 auto;
}
.npost-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.npost-footer__topic {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: var(--c-surface-alt);
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.npost-footer__topic:hover { color: var(--c-blue); background: rgba(0, 25, 255, 0.06); }
.npost-footer__share {
  display: flex;
  align-items: center;
  gap: 12px;
}
.npost-footer__share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
}
.npost-footer__share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--c-text-muted);
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.npost-footer__share-link:hover { color: var(--c-blue); background: rgba(0, 25, 255, 0.06); }
.npost-footer__share-link svg { width: 18px; height: 18px; }
/* Back to news */
.npost-back { padding: 32px 0; }
.npost-back__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  transition: gap 180ms var(--ease);
}
.npost-back__link:hover { gap: 12px; }
.npost-back__link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Related news (compact cards, no image) --- */
.related-news {
  background: var(--c-surface-alt);
  padding: var(--pad-v) var(--pad-h);
}
.related-news__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.related-news__header { margin-bottom: 40px; }
.related-news__h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
}
.related-news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .related-news__grid { grid-template-columns: repeat(3, 1fr); }
}
.news-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 1px 8px rgba(4, 30, 66, 0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.news-card:hover {
  box-shadow: 0 8px 24px rgba(4, 30, 66, 0.08);
  transform: translateY(-3px);
}
.news-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}
.news-card__topic {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-navy);
  background: rgba(4, 30, 66, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.news-card__title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--tracking);
  color: var(--c-navy);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.news-card__title:hover { color: var(--c-blue); }
.news-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted);
  flex: 1;
}
