/**
 * news-exposed-filters component styling, promoted verbatim from the
 * gulp-compiled build artifact (dist/css/news-exposed-filters.css) to a
 * permanently tracked static file.
 *
 * Source: src/stories/components/form-items/news-exposed-filters.scss
 * (still present and tracked -- this is a build-pipeline retirement, not
 * a source-loss recovery).
 *
 * REAL CONSUMER: src/templates/block/block--views-exposed-filter-block.html.twig
 * attaches `lehigh_coe_theme/exposed-filters-news` -- real, live styling
 * for the exposed-filter/facets form on news-listing pages. This
 * component's JS, `news-exposed-filters.es6.js`, was confirmed
 * broken/dead and deleted in Phase 5 Batch F; only the CSS survives.
 *
 * PROMOTION CONTEXT (Phase 10 Batch C): this theme's gulp/Sass build
 * pipeline is being retired as part of the SDC conversion. The rules
 * below are transcribed verbatim from the current production build
 * output (dist/css/news-exposed-filters.css), keeping only the
 * genuinely news-exposed-filters-specific rules and excluding the
 * shared Bootstrap/theme preamble (font-face declarations, base
 * typography, resets, rich-text/list styles, Sass mixin doc-comments)
 * that duplicate content already covered by css/base/*.css and
 * css/global.css. Verified via full-content diff against the real,
 * currently-served dist/css/news-exposed-filters.css build artifact
 * (not a bare Sass recompile -- a bare recompile misses
 * autoprefixer-added vendor-prefixed declarations) (see
 * task-2-report.md for the exact command/output).
 * Zero intended visual change from the current live CSS.
 */

@media (min-width: 576px) {
  .block-views-exposed-filter-blocknews-search-page-news-view {
    margin-bottom: 20px;
  }
}
.block-views-exposed-filter-blocknews-search-page-news-view form {
  display: flex;
  row-gap: 1rem;
}
.block-views-exposed-filter-blocknews-search-page-news-view .form-item-key {
  flex: 1;
}
.block-views-exposed-filter-blocknews-search-page-news-view .form-item-year {
  gap: 0;
}
.block-views-exposed-filter-blocknews-search-page-news-view .form-actions {
  margin-inline-start: 0.5rem;
}
.block-views-exposed-filter-blocknews-search-page-news-view .form-actions button {
  width: 100%;
}

.facets-widget-links {
  font-weight: 600;
}
.facets-widget-links > ul {
  padding: 0;
  list-style-type: none;
}
.facets-widget-links > ul.item-list__links:first-of-type > li:first-of-type {
  border-top: 1px solid var(--bs-gray-300);
}
.facets-widget-links > ul > li {
  border-bottom: 1px solid var(--bs-gray-300);
}
.facets-widget-links > ul > li > a .facet-item__value {
  text-decoration: underline;
  text-decoration-thickness: from-font;
}
.facets-widget-links > ul > li > a::after {
  font-family: "Material Icons";
  content: "add";
  margin-left: auto;
  text-decoration: none;
  font-weight: 400;
}
.facets-widget-links > ul > li a {
  display: flex;
  font-size: clamp(1rem, 0.1785714286vw + 0.9642857143rem, 1.125rem);
  color: var(--bs-grey-60k);
  padding: 0.5rem;
  text-decoration: none;
}
.facets-widget-links > ul > li.facet-item--expanded ul {
  border-top: 1px solid var(--bs-gray-300);
  padding: 0;
  list-style-type: none;
}
.facets-widget-links > ul > li.facet-item--expanded ul li {
  border-bottom: 1px solid var(--bs-gray-300);
  margin: 0;
}
.facets-widget-links > ul > li.facet-item--expanded ul li:last-child {
  border-bottom: 0;
}
.facets-widget-links > ul > li.facet-item--expanded ul li a {
  padding: 12px 1rem;
  text-decoration: none;
  display: flex;
}
.facets-widget-links > ul > li.facet-item--expanded ul li a .facet-item__value {
  border: 0;
}
.facets-widget-links > ul > li.facet-item--expanded ul li a.is-active, .facets-widget-links > ul > li.facet-item--expanded ul li a.bef-link--selected {
  font-weight: 700;
}
.facets-widget-links > ul > li.facet-item--expanded ul li a.is-active .facet-item__count, .facets-widget-links > ul > li.facet-item--expanded ul li a.bef-link--selected .facet-item__count {
  font-weight: 700;
}
.facets-widget-links > ul > li.facet-item--expanded .facet-item__count {
  margin-left: auto;
  font-weight: 400;
}
.facets-widget-links > ul > li.facet-item--expanded > a::after {
  font-family: "Material Icons";
  content: "remove";
  margin-left: auto;
  font-weight: 400;
}
.facets-widget-links > ul > li .facet-item__status {
  display: none;
}

.facet-item-list-view-more {
  font-size: 0.875rem;
  font-weight: 700;
  gap: 5px;
  text-decoration: none !important;
}
.facet-item-list-view-more[aria-expanded=false]::before {
  content: "View More";
}
.facet-item-list-view-more[aria-expanded=false] .material-symbols-outlined {
  transform: rotate(0deg);
}
.facet-item-list-view-more[aria-expanded=true]::before {
  content: "View Less";
}
.facet-item-list-view-more[aria-expanded=true] .material-symbols-outlined {
  transform: rotate(180deg);
}
.facet-item-list-view-more .material-symbols-outlined {
  font-size: clamp(1rem, 0.1785714286vw + 0.9642857143rem, 1.125rem);
}
.facet-item-list-view-more + ul {
  transition: none;
}

.bottom-drawer .facets-widget-links > ul > li {
  border: 0;
}
.bottom-drawer .facets-widget-links > ul > li > a {
  color: var(--bs-black);
  font-size: 1rem;
  border: 0;
}
.bottom-drawer .facets-widget-links > ul > li > a * {
  text-decoration: none;
}
.bottom-drawer .facets-widget-links > ul > li > a:has(span.facet-item__status), .bottom-drawer .facets-widget-links > ul > li > a:hover {
  background-color: var(--bs-gold);
}
.bottom-drawer .facets-widget-links > ul > li > a::after {
  content: none;
  display: none;
}
.bottom-drawer .facets-widget-links > ul > li.facets-reset {
  display: none;
}

/**
 * News page archive fixes
 */
.views-exposed-form .bef-links li:has(#edit-year-all) {
  display: none;
}

.bef-links.bef-nested > ul > li > .bef-link > .facet-item__count {
  display: none;
}
