.news-listing { margin-top: clamp(16px, 3vw, 24px); }

.news-filter-bar {
  background: var(--bg-3);
  position: relative; 
  padding-block: 14px; 
}
.news-filter-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  background: linear-gradient(to bottom, var(--bg-3), var(--bg));
  pointer-events: none;
}

.news-filter-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
}

.news-search {
  display: flex;
  flex: 0 1 300px;
  min-width: 200px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.news-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  font-family: var(--font-body);
  color: var(--text);
}
.news-search input:focus { outline: none; }
.news-search button {
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.news-search button:hover,
.news-search button:focus-visible { color: var(--biru-boss); }

.news-filter-bar-categories {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.news-filter-bar-categories .products-filter {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
  margin-bottom: 0;
}
.news-filter-bar-categories .products-filter::-webkit-scrollbar { display: none; }
.news-filter-bar-categories .products-pill { flex: 0 0 auto; }

.news-scroll-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 5vw, 36px);
  z-index: 2;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  background: rgba(10, 14, 28, 0.4);
  cursor: pointer;
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.news-scroll-edge:hover:not(:disabled) { background: rgba(10, 14, 28, 0.55); }
.news-scroll-edge:disabled { opacity: 0; pointer-events: none; cursor: default; }
.news-scroll-edge--left { left: 0; }
.news-scroll-edge--right { right: 0; }

.news-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.news-filter-toggle:hover,
.news-filter-toggle:focus-visible { border-color: var(--biru-boss); color: var(--biru-boss); }
.news-filter-toggle[aria-expanded="true"] { border-color: var(--biru-boss); color: var(--biru-boss); }
.news-filter-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--biru-boss);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
}
.news-filter-toggle-badge[hidden] { display: none; }
.news-filter-toggle-chevron {
  font-size: 0.7rem;
  transition: transform var(--dur-fast) var(--ease);
}
.news-filter-toggle[aria-expanded="true"] .news-filter-toggle-chevron { transform: rotate(180deg); }

.news-filter-panel {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  margin-top: -1px; 
  transition: grid-template-rows 0.3s var(--ease);
}
.news-filter-panel.is-open { grid-template-rows: 1fr; }
.news-filter-panel-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-block: 0;
}
.news-filter-panel.is-open .news-filter-panel-inner { padding-block: 16px; }

.news-listing-dates { display: flex; gap: 8px; flex: 0 0 auto; }
.news-listing-dates select {
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text-2);
}

.news-listing-tags { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.news-tag {
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 40px 16px 40px 16px / 16px 40px 16px 40px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.news-tag:hover,
.news-tag:focus-visible { border-color: var(--biru-boss); color: var(--biru-boss); }
.news-tag.is-active { border-color: var(--biru-boss); background: var(--biru-boss); color: var(--accent-ink); }

@media (max-width: 640px) {
  .news-filter-bar { padding-block: 10px; }
  .news-filter-bar-inner { padding: 8px 10px; }
  .news-search { flex-basis: 100%; }
  .news-filter-bar-categories { flex-basis: 100%; order: 2; }
  .news-filter-toggle { order: 3; }
}

.news-listing-results.is-loading { opacity: .5; pointer-events: none; }

.news-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.news-card:hover,
.news-card:focus-visible { border-color: var(--biru-boss); transform: translateY(-2px); }

.news-card-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--biru-yellow);
  color: var(--biru-yellow-ink);
  font-size: 0.9rem;
  box-shadow: 0 8px 18px -6px rgba(6,11,23,0.5);
  transition: transform var(--dur-fast) var(--ease);
}
.news-card:hover .news-card-arrow,
.news-card:focus-visible .news-card-arrow { transform: translateX(3px); }

.news-card-thumb { position: relative; aspect-ratio: 16/10; background: var(--line-2); overflow: hidden; }
.news-card-thumb--empty { background: var(--bg-2); }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.news-card-category {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--biru-boss);
}
.news-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.news-card-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 4px;
}

.news-listing-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-3);
  font-family: var(--font-body);
}

.news-listing-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
}
.news-listing-pager-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.news-listing-pager-btn:hover:not(:disabled),
.news-listing-pager-btn:focus-visible:not(:disabled) { border-color: var(--biru-boss); color: var(--biru-boss); }
.news-listing-pager-btn:disabled { opacity: .35; cursor: default; }
.news-listing-pager-status {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-3);
}

@media (max-width: 560px) {
  .news-listing-grid { grid-template-columns: 1fr; }
}

.nm-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.nm-modal[hidden] { display: none; }
.nm-modal.is-loading .nm-modal-scroll { opacity: .4; pointer-events: none; }
.nm-modal-scrim { position: absolute; inset: 0; background: rgba(6,11,23,0.72); backdrop-filter: blur(2px); }

.nm-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  
  max-width: 1120px;
  height: 92vh;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid rgba(245,180,0,0.55);
  box-shadow: 0 0 0 1px rgba(245,180,0,0.12), 0 0 46px 6px rgba(245,180,0,0.28), var(--shadow);
}

.nm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--biru-boss);
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(6,11,23,0.55);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nm-modal-close:hover, .nm-modal-close:focus-visible { background: var(--line); transform: scale(1.06); }

.nm-modal-scroll { height: 100%; overflow-y: auto; }

.nm-modal-banner { position: relative; width: 100%; background: var(--biru-ink); }
.nm-modal-banner img { width: 100%; height: auto; display: block; }

.nm-modal-body {
  padding: clamp(24px, 4vw, 40px);
  
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}
.nm-modal-inner:has(.nm-modal-banner) .nm-modal-body { padding-top: clamp(20px, 3vw, 28px); }

.nm-modal-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--biru-yellow);
  margin-bottom: 10px;
}

.nm-modal-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 700;
  color: var(--biru-royal);
  padding-right: clamp(36px, 4vw, 48px); 
}

.nm-modal-date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.nm-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 3vw, 26px); }

.nm-modal-content { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.75; color: var(--text); }
.nm-modal-content :is(h1, h2, h3, h4) { font-family: var(--font-display); color: var(--biru-royal); margin: 1.4em 0 0.5em; }
.nm-modal-content p { margin: 0 0 1em; }
.nm-modal-content blockquote { border-left: 3px solid var(--biru-yellow); padding-left: 16px; margin: 1.2em 0; color: var(--text-2); font-style: italic; }
.nm-modal-content a { color: var(--biru-boss); }
.nm-modal-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

.nm-modal-neighbors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 24px);
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--line);
}
.nm-modal-neighbor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
  text-decoration: none;
  min-width: 0;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nm-modal-neighbor:hover, .nm-modal-neighbor:focus-visible { background: var(--line); transform: translateY(-1px); }
.nm-modal-neighbor--next { text-align: right; align-items: flex-end; }
.nm-modal-neighbor.is-disabled { visibility: hidden; }
.nm-modal-neighbor-dir {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--biru-yellow);
}
.nm-modal-neighbor-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 560px) {
  .nm-modal-neighbors { grid-template-columns: 1fr; }
  .nm-modal-neighbor--next { text-align: left; align-items: flex-start; }

  .nm-modal { padding: 0; }
  .nm-modal-box { max-width: 100%; height: 100%; border-radius: 0; }
}

/* ---------------------------------------------------------------------
 * TEMP: hide news tags (2026-09-08) — reversible, CSS-only.
 * Tag data, filter logic, and the tag pills in the DOM are untouched;
 * this just visually removes them from both the filter bar's secondary
 * panel and the article modal. To bring tags back, delete this block
 * (or comment it out) — nothing else needs to change.
 * --------------------------------------------------------------------- */
.news-listing-tags,
.nm-modal-tags {
  display: none !important;
}

/* ---------------------------------------------------------------------
 * Modal header image (2026-09-08). These banner images are marketing
 * posters with a title baked into the artwork, sometimes near the very
 * top — object-fit:cover on a fixed 16:7 box was cropping straight
 * through that text. Switched to a fixed-width, natural-height banner
 * (see .nm-modal-banner / .nm-modal-banner img above) so the full
 * poster always shows, uncropped, whatever its aspect ratio.
 *
 * Small yellow "scroll to read" badge overlapping the bottom-right
 * corner of the banner (.nm-modal-banner above is position:relative to
 * anchor it) — decorative accent nudging the reader into the body copy
 * below, in BIRU's brand yellow.
 * --------------------------------------------------------------------- */
.nm-modal-banner-badge {
  position: absolute;
  right: clamp(16px, 3vw, 28px);
  bottom: 0;
  transform: translateY(50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--biru-yellow);
  color: var(--biru-yellow-ink);
  font-size: 1.1rem;
  box-shadow: 0 10px 24px -8px rgba(6,11,23,0.45), 0 0 0 4px var(--bg-3);
  z-index: 1;
}
