/**
 * =====================================================================
 * NEWS COMPONENT — STYLES
 * =====================================================================
 * .news/.news__card/etc. copied verbatim from the actual uploaded
 * style.css (pulled directly, not reconstructed from memory — see
 * this project's own history for why that distinction matters).
 *
 * Everything under "Archive Mode — New UI" below has NO equivalent in
 * the original design at all (per the brief: this functionality
 * doesn't exist in the provided frontend). Built to match this
 * project's established tokens (--font-mono for small uppercase
 * labels, --red/--ink/--slate/--line, --radius-lg, existing .btn
 * styles) so it reads as part of the same site rather than bolted on.
 *
 * Tag qualifiers and font-family !important applied from the start —
 * both confirmed necessary, repeatedly, on this project's other
 * components: a bare single-class selector loses to Blocksy's own
 * base styling, and font-family specifically needs !important since
 * Blocksy uses !important on that property too.
 * =====================================================================
 */

/* ---------- News cards (authoritative, from the real source) ---------- */
/*
 * grid-template-columns changed from the original "1.4fr 1fr 1fr" to
 * equal thirds — the original ratio specifically existed to make room
 * for the "wide" first card's larger footprint. Since every card is
 * now the same size (per request), an uneven column width would have
 * made every card in the FIRST column visually wider than the other
 * two, regardless of content — not what "equal sizes" means.
 */
div.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
a.news__card {
  display: block; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.news__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
div.news__img { aspect-ratio: 16/10; overflow: hidden; }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news__card:hover .news__img img { transform: scale(1.05); }
div.news__body { padding: 26px 28px 30px; }
div.news__meta { font-family: var(--font-mono) !important; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
h3.news__title { font-family: var(--font-display) !important; font-size: var(--step-1); font-weight: 500; margin: 12px 0 6px; line-height: 1.2; }
p.news__excerpt { font-size: 14.5px; color: var(--slate); }
/* .news__card--wide rules removed entirely — no card ever receives
   this class anymore, so keeping dead CSS around would only risk
   confusing future maintenance. */
@media (max-width: 900px) {
  div.news { grid-template-columns: 1fr; }
}

/*
 * "View All" link — reuses the SAME visual technique as the existing
 * .eyebrow class (a short dash before small, uppercase, red mono-font
 * text), since that's the established style for this kind of small
 * label/link across the site. Not literally sharing the .eyebrow
 * class itself, since .eyebrow is meant for section labels ABOVE a
 * heading, not a clickable link — same look, different semantic role.
 */
.news__view-all-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
a.news__view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono) !important;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.news__view-all::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}
.news__view-all:hover { color: var(--ink); }
.news__view-all:hover::before { background: var(--ink); }

/* ---------- Archive Mode — New UI (no original design to match) ---------- */

.news-archive__controls {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
  margin-bottom: 30px;
}

.news-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 1 1 320px; }
.news-search__input {
  flex: 1 1 220px;
  font-family: var(--font-sans) !important;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}
.news-search__input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.news-search__clear,
.news-filter__reset {
  font-family: var(--font-mono) !important;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); background: none; border: 0; cursor: pointer;
  padding: 4px 6px;
}

.news-filter { display: flex; align-items: center; gap: 10px; }
.news-filter__select {
  font-family: var(--font-sans) !important;
  font-size: 14px;
  padding: 11px 34px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.news-archive__status {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
  font-family: var(--font-mono) !important;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
}
.news-archive__loading { color: var(--red); }

.news-archive__empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.news-archive__empty h3 { font-family: var(--font-display) !important; font-size: var(--step-2); font-weight: 500; margin-bottom: 10px; }
.news-archive__empty p { color: var(--slate); margin: 0 0 6px; }
.news-archive__no-results-text {
  font-family: var(--font-mono) !important;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red) !important;
}

.news-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 40px; flex-wrap: wrap;
}
.news-pagination__btn {
  font-family: var(--font-mono) !important;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.news-pagination__btn:hover:not(:disabled) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.news-pagination__btn:disabled { opacity: 0.4; cursor: default; }
.news-pagination__status {
  font-family: var(--font-mono) !important;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
