/* sqx-news-v2.css — redesigned /news/ surface (hybrid layout, Option 3).
   Scope: everything under main#main on /news/, tag pages and /spotlight/.
   All selectors are nv2-prefixed (plus the two page-header classes the
   site already styles) so the theme CSS and this file never fight. */

.nv2-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 0; }
.nv2-titlerow .page-title { flex: 1 1 560px; min-width: 0; margin: 0; font-weight: 700; color: #1f1f1f; letter-spacing: -0.02em; }
/* The theme forces .sqx-news-title-row { margin-bottom: 50px !important }
   (calibrated for the old layout, where the SEO intro paragraph was
   screen-reader-only, not the visible one this redesign shows) and
   .sqx-news-title-row .page-title { font-size: 2em !important }, each via
   several body-class-qualified selectors stacking up to 4 classes deep
   (e.g. "html body.blog.sqx-news-listing:not(.sqx-events-listing)
   .sqx-news-title-row"). No theme rule anywhere anchors these two classes
   to an id, so #main (unique, always present) safely outranks all of them
   regardless of how many classes they stack or their source order —
   matching the directory page's title row exactly (.sqx-sponsor-directory-
   title-row: margin-bottom 20px; .page-title: 32px/48px). */
#main .nv2-titlerow.sqx-news-title-row { margin-bottom: 20px !important; }
#main .nv2-titlerow.sqx-news-title-row .page-title { font-size: 32px !important; line-height: 48px !important; }
.nv2-intro { margin: 0; font-size: 16px; line-height: 1.6; color: #465866; max-width: 780px; }
.nv2-crumb { font-size: 13px; color: #647584; margin: 0 0 12px; }
.nv2-crumb a { color: #005696; text-decoration: none; }

.nv2-cols { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 24px; align-items: flex-start; }

/* ---- filter sidebar ---- */
.nv2-filters { flex: 1 1 260px; max-width: 280px; min-width: 240px; border: 1px solid #d3dbe1; border-radius: 6px; padding: 20px; background: #fff; box-sizing: border-box; }
.nv2-filters__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nv2-filters__head h2 { margin: 0; font-size: 15px; font-weight: 700; color: #1f1f1f; }
.nv2-clear, .nv2-mclear { border: 0; background: transparent; color: #005696; font-size: 13px; cursor: pointer; padding: 0; }
.nv2-mclose, .nv2-mactions { display: none; }
.nv2-group { border: 0; padding: 0; margin: 20px 0 0; }
.nv2-group + .nv2-group { border-top: 1px solid #eef2f5; padding-top: 16px; margin-top: 16px; }
.nv2-group legend { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6976; padding: 0; margin: 0 0 8px; float: left; width: 100%; }
.nv2-group legend + * { clear: both; }
.nv2-group legend.screen-reader-text { float: none; }
/* Row spacing + text size matched to the directory's .dir-tag-row: padding
   (not a fixed min-height) is what produces its 33px row, a 17px checkbox,
   and a 13px count — the mobile touch-target bump below (44px/20px) is
   deliberate for this page's full-screen mobile filter panel, which the
   directory has no equivalent of, and stays unchanged. */
.nv2-opt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14px; line-height: 1.5; color: #2d3f4d; cursor: pointer; margin: 0; clear: both; }
.nv2-opt input { width: 17px; height: 17px; accent-color: #005696; margin: 0; flex: 0 0 auto; }
.nv2-opt__name { flex: 1; min-width: 0; }
.nv2-opt--on .nv2-opt__name { font-weight: 700; color: #1f1f1f; }
.nv2-opt__count { font-size: 13px; color: #647584; font-variant-numeric: tabular-nums; }
.nv2-grouphead { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8896a3; margin: 10px 0 2px; }
.nv2-showall { display: block; text-align: left; margin-top: 6px; padding: 8px 0; border: 0; background: transparent; color: #005696; font-size: 14px; font-weight: 500; cursor: pointer; }
.nv2-fmt { border-top: 1px solid #eef2f5; margin-top: 16px; }
.nv2-fmt__toggle { width: 100%; padding: 14px 0 2px; display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6976; }
.nv2-fmt .nv2-group { margin-top: 8px; border: 0; padding-top: 0; }

/* ---- feed ---- */
.nv2-feed { flex: 999 1 560px; min-width: 0; }
/* Search box — faithful copy of the directory page's .dir-search-row
   (same icon, sizing, colors) at the top of the results column. */
.nv2-search-row { position: relative; margin-bottom: 16px; }
.nv2-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
#nv2-search { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px 0 42px; border: 1px solid #c3cfda; border-radius: 8px; font: inherit; font-size: 15px; color: #14212b; background: #fff; }
/* Fixed 3-up grid (2 rows of 3 for the 6-item Top Stories band) rather
   than auto-fit: at wide viewports auto-fit would fit a 4th column,
   splitting 6 cards unevenly (4+2) instead of a clean 3x2. */
.nv2-leadhead { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #1f1f1f; }
.nv2-leadband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 8px; }
.nv2-lead { display: flex; flex-direction: column; gap: 10px; }
.nv2-lead__img { display: block; aspect-ratio: 16 / 10; border-radius: 6px; border: 1px solid #eef2f5; overflow: hidden; }
.nv2-lead__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv2-lead__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.nv2-lead__title a, .nv2-row__title a { color: #1f1f1f; text-decoration: none; }
.nv2-lead__title a:hover, .nv2-row__title a:hover { color: #005696; }

.nv2-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nv2-chip { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 10px; text-decoration: none; line-height: 1.5; }
.nv2-chip--cat { color: #005696; background: #eff6fb; border: 1px solid #dceaf3; }
.nv2-chip--type { color: #465866; background: #f6f8fa; border: 1px solid #d3dbe1; }
.nv2-chip:hover { text-decoration: underline; }
.nv2-date { font-size: 13px; color: #647584; font-variant-numeric: tabular-nums; }

.nv2-listhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-bottom: 12px; border-bottom: 2px solid #1f1f1f; }
.nv2-listhead__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nv2-listhead__title { margin: 0; font-size: 20px; font-weight: 700; color: #1f1f1f; }
.nv2-listhead__flabel { font-size: 14px; color: #465866; }
.nv2-count { font-size: 14px; color: #647584; }
.nv2-selchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #005696; background: #005696; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
/* Dropdown control style matches the directory's #dir-per-page select
   exactly (lighter, thinner border) rather than the page's own darker,
   sharper-cornered one. */
.nv2-datesel { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #465866; }
.nv2-datesel select { height: 36px; border: 1px solid #c3cfda; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; color: #14212b; background: #fff; }

.nv2-list { margin: 0; }
.nv2-row { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid #eef2f5; align-items: flex-start; }
.nv2-row__img { flex: 0 0 120px; width: 120px; aspect-ratio: 3 / 2; border-radius: 4px; border: 1px solid #eef2f5; overflow: hidden; }
.nv2-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv2-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nv2-row__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.nv2-empty { padding: 40px 0; color: #465866; font-size: 15px; }

.nv2-pg { display: flex; justify-content: center; gap: 8px; margin: 32px 0 16px; flex-wrap: wrap; }
.nv2-pg__num, .nv2-pg__next { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #005696; color: #005696; border-radius: 4px; font-weight: 700; text-decoration: none; cursor: pointer; background: #fff; font-size: 15px; box-sizing: border-box; }
.nv2-pg__next { padding: 0 16px; }
.nv2-pg__num--on { background: #005696; color: #fff; }
.nv2-pg__gap { align-self: center; color: #647584; }

/* ---- mobile bar + filter panel ---- */
.nv2-mbar { display: none; }
@media (max-width: 991px) {
  .nv2-cols { margin-top: 16px; gap: 0; }
  .nv2-mbar { display: flex; gap: 8px; margin-top: 16px; padding: 10px 0; border-top: 1px solid #eef2f5; border-bottom: 1px solid #eef2f5; }
  .nv2-mfilters { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #005696; border-radius: 4px; background: #fff; color: #005696; font-weight: 700; font-size: 15px; cursor: pointer; }
  .nv2-mfilters__n { background: #005696; color: #fff; border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
  .nv2-datesel--m { flex: 1; }
  .nv2-datesel--m select { width: 100%; height: 44px; font-size: 15px; }  /* inherits the lighter border/radius above */
  .nv2-datesel:not(.nv2-datesel--m) { display: none; }

  .nv2-filters { display: none; position: fixed; inset: 0; z-index: 100000; max-width: none; min-width: 0; border: 0; border-radius: 0; padding: 0 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nv2-filters.nv2-filters--open { display: block; }
  .nv2-filters__head { position: sticky; top: 0; background: #fff; padding: 12px 0; border-bottom: 1px solid #d3dbe1; align-items: center; z-index: 1; }
  .nv2-filters__head .nv2-clear { display: none; }
  .nv2-mclose { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: #1f1f1f; cursor: pointer; }
  .nv2-opt { min-height: 44px; font-size: 15px; gap: 12px; }
  .nv2-opt input { width: 20px; height: 20px; }
  .nv2-showall { min-height: 44px; font-size: 15px; }
  .nv2-mactions { display: flex; gap: 12px; position: sticky; bottom: 0; background: #fff; padding: 12px 0 20px; border-top: 1px solid #d3dbe1; margin-top: 12px; }
  .nv2-mclear { flex: 0 0 auto; height: 48px; padding: 0 18px; border: 1px solid #005696; border-radius: 4px; background: #fff; color: #005696; font-weight: 700; font-size: 15px; cursor: pointer; }
  .nv2-mshow { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: #005696; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
  body.nv2-noscroll { overflow: hidden; }

  .nv2-leadhead { font-size: 18px; margin-bottom: 12px; }
  .nv2-leadband { grid-template-columns: 1fr; gap: 0; }
  .nv2-lead { margin-top: 16px; }
  .nv2-lead + .nv2-lead { display: grid; grid-template-columns: 96px 1fr; column-gap: 12px; row-gap: 5px; align-items: start; padding: 14px 0; border-bottom: 1px solid #eef2f5; margin-top: 8px; }
  .nv2-lead + .nv2-lead .nv2-lead__img { grid-row: 1 / span 3; width: 96px; height: 60px; aspect-ratio: auto; border-radius: 4px; }
  .nv2-lead + .nv2-lead .nv2-lead__title { font-size: 15px; }

  .nv2-row { gap: 12px; padding: 14px 0; }
  .nv2-row__img { flex: 0 0 96px; width: 96px; height: 64px; aspect-ratio: auto; }
  .nv2-row__title { font-size: 15px; }
  .nv2-chip { font-size: 11px; padding: 1px 8px; }
}
/* The old news page normalizes every button to white-on-blue; these
   ID-scoped rules out-rank that so the new controls keep their colors. */
#content .nv2-showall, #content .nv2-clear, #content .nv2-mclear,
#content .nv2-fmt__toggle { color: #5b6976; background: transparent; }
#content .nv2-mclear { background: #fff; border: 1px solid #005696; }
#content .nv2-mfilters { color: #005696; background: #fff; }
#content .nv2-mclose { color: #1f1f1f; background: transparent; }
#content .nv2-pg__num, #content .nv2-pg__next { color: #005696; background: #fff; }
#content .nv2-pg__num--on { background: #005696; color: #fff; }
#content .nv2-selchip, #content .nv2-mshow { background: #005696; color: #fff; }
.nv2-mfilters__n[hidden], .nv2-more[hidden], .nv2-clear[hidden],
.nv2-group--fmt[hidden] { display: none !important; }
