/* ============================================================
   Newsroom — Editorial stylesheet
   Extends :root variables from nextgen.css
   ============================================================ */

:root {
  --news-accent:               #C41E3A;
  --news-category-pacific:     #006B6B;
  --news-category-technology:  #1A4A8A;
  --news-category-business:    #2D5A27;
  --news-category-environment: #4A7C59;
  --news-category-fisheries:   #1B4E6B;
  --news-category-regional:    #6B4226;
  --font-headline:             'Playfair Display', Georgia, serif;
  --font-editorial:            'Source Serif 4', Georgia, serif;
  --card-radius:               3px;
  --card-shadow:               0 1px 3px rgba(38, 36, 34, 0.08);
  --card-shadow-hover:         0 8px 24px rgba(38, 36, 34, 0.16);
}

/* ── Category color utilities ────────────────────────────── */
.category--pacific     { --cat-color: var(--news-category-pacific); }
.category--technology  { --cat-color: var(--news-category-technology); }
.category--business    { --cat-color: var(--news-category-business); }
.category--environment { --cat-color: var(--news-category-environment); }
.category--fisheries   { --cat-color: var(--news-category-fisheries); }
.category--regional    { --cat-color: var(--news-category-regional); }

/* ============================================================
   Newsroom view wrapper
   ============================================================ */

.newsroom-view {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--section-px) 4rem;
}

/* ── Filter bar ──────────────────────────────────────────── */
.newsroom__filter-bar {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--sandstorm);
}

.newsroom__filter-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsroom__filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
}

.newsroom__filter-bar .form-item {
  margin: 0;
}

.newsroom__filter-bar select {
  appearance: none;
  background: var(--warm-white);
  border: 1px solid var(--sandstorm);
  border-radius: 2px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8178' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.newsroom__filter-bar .form-submit {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  background: var(--charcoal);
  color: var(--warm-white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsroom__filter-bar .form-submit:hover {
  background: var(--deep-bronze);
}

/* ── Breaking news banner ────────────────────────────────── */
.newsroom__breaking-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(196, 30, 58, 0.06);
  border-left: 4px solid var(--news-accent);
  border-radius: 0 2px 2px 0;
}

.newsroom__breaking-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--news-accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
  will-change: transform, opacity;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

.newsroom__breaking-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--news-accent);
}

/* ── Section divider ─────────────────────────────────────── */
.newsroom__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
}

.newsroom__divider::before,
.newsroom__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sandstorm);
}

.newsroom__divider-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
}

/* ── Pager ───────────────────────────────────────────────── */
.newsroom__pager {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.newsroom__pager .pager__items {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.newsroom__pager .pager__item a,
.newsroom__pager .pager__item.is-active span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  border-radius: 2px;
  text-decoration: none;
  color: var(--charcoal);
  border: 1px solid var(--sandstorm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.newsroom__pager .pager__item a:hover {
  background: var(--charcoal);
  color: var(--warm-white);
  border-color: var(--charcoal);
}

.newsroom__pager .pager__item.is-active span {
  background: var(--charcoal);
  color: var(--warm-white);
  border-color: var(--charcoal);
  font-weight: 600;
}

/* ============================================================
   Card base
   ============================================================ */

.news-card {
  background: var(--warm-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.3s ease;
}

.news-card--visible,
.news-card.news-card--hero {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.news-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Image ───────────────────────────────────────────────── */
.news-card__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--sandstorm);
}

.news-card__image-link {
  display: block;
  overflow: hidden;
}

.news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card__image-link:hover .news-card__image {
  transform: scale(1.04);
}

.news-card__breaking-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--news-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 2px;
}

/* ── Body ────────────────────────────────────────────────── */
.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.125rem 1.125rem;
  flex: 1;
}

/* ── Category badge ──────────────────────────────────────── */
.news-card__category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: 2px;
  color: #fff;
  background: var(--cat-color, var(--taupe));
  align-self: flex-start;
}

/* ── Headline ────────────────────────────────────────────── */
.news-card__headline {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.news-card__headline a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card__headline a:hover {
  color: var(--muted-gold);
}

/* ── Lead text ───────────────────────────────────────────── */
.news-card__lead {
  font-family: var(--font-editorial);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--deep-bronze);
  margin: 0;
  flex: 1;
}

/* ── Meta ────────────────────────────────────────────────── */
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sandstorm);
}

.news-card__author,
.news-card__time {
  font-size: 0.75rem;
  color: var(--taupe);
}

.news-card__author {
  font-weight: 500;
}

.news-card__meta-sep {
  color: var(--sandstorm);
  font-size: 0.75rem;
}

/* ============================================================
   Hero card — first item, full width
   ============================================================ */

.newsroom__hero-wrap {
  margin-bottom: 1.5rem;
}

.newsroom__hero-wrap .news-card {
  opacity: 1;
  transform: none;
}

.news-card--hero .news-card__inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-card--hero .news-card__inner {
    grid-template-columns: 3fr 2fr;
  }
}

.news-card--hero .news-card__image-wrap {
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

@media (min-width: 768px) {
  .news-card--hero .news-card__image-wrap {
    aspect-ratio: auto;
    min-height: 420px;
  }
}

.news-card--hero .news-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  justify-content: center;
  gap: 0.75rem;
}

.news-card--hero .news-card__headline {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
}

.news-card--hero .news-card__lead {
  font-size: 1rem;
  -webkit-line-clamp: unset;
  display: block;
}

/* ============================================================
   Featured pair — items 2–3, half width each
   ============================================================ */

.newsroom__featured-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .newsroom__featured-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.news-card--medium .news-card__image-wrap {
  aspect-ratio: 16 / 9;
}

.news-card--medium .news-card__headline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* ============================================================
   Small grid — items 4+
   ============================================================ */

.newsroom__grid-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .newsroom__grid-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .newsroom__grid-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card--small .news-card__image-wrap {
  aspect-ratio: 3 / 2;
}

.news-card--small .news-card__headline {
  font-size: 1rem;
}

.news-card--small .news-card__lead {
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Full article page
   ============================================================ */

.news-article {
  --article-max: 680px;
}

/* ── Hero image ──────────────────────────────────────────── */
.news-article__hero {
  margin: 0;
  width: 100%;
  aspect-ratio: 24 / 10;
  max-height: 70vh;
  overflow: hidden;
  background: var(--sandstorm);
  position: relative;
}

.news-article__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-article__hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(transparent, rgba(38, 36, 34, 0.65));
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

/* ── Container ───────────────────────────────────────────── */
.news-article__container {
  max-width: calc(var(--article-max) + 200px);
  margin: 0 auto;
  padding: 2.5rem var(--section-px) 4rem;
}

/* ── Meta bar ────────────────────────────────────────────── */
.news-article__meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.news-article__category-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 2px;
  color: #fff;
  background: var(--cat-color, var(--taupe));
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-article__category-badge:hover {
  opacity: 0.85;
}

.news-article__read-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--taupe);
}

.news-article__breaking-badge {
  display: inline-block;
  background: var(--news-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  will-change: transform, opacity;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* ── Headline ────────────────────────────────────────────── */
.news-article__headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

/* ── Standfirst ──────────────────────────────────────────── */
.news-article__lead {
  font-family: var(--font-editorial);
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--deep-bronze);
  margin: 0 0 1.5rem;
  border-left: 3px solid var(--cat-color, var(--muted-gold));
  padding-left: 1.25rem;
}

/* ── Byline ──────────────────────────────────────────────── */
.news-article__byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--sandstorm);
  border-bottom: 1px solid var(--sandstorm);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--taupe);
}

.news-article__author {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ── Content grid: body + share sidebar ─────────────────── */
.news-article__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .news-article__content-grid {
    grid-template-columns: minmax(0, var(--article-max)) 140px;
    align-items: start;
  }
}

/* ── Body text ───────────────────────────────────────────── */
.news-article__body {
  font-family: var(--font-editorial);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.news-article__body p {
  margin: 0 0 1.4em;
}

/* Drop cap on first paragraph */
.news-article__body > .field > .field__item > p:first-child::first-letter,
.news-article__body p:first-child::first-letter {
  font-family: var(--font-headline);
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.75;
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: var(--cat-color, var(--muted-gold));
}

.news-article__body h2,
.news-article__body h3 {
  font-family: var(--font-headline);
  color: var(--charcoal);
  margin: 1.75em 0 0.6em;
  line-height: 1.2;
}

.news-article__body h2 { font-size: 1.5rem; }
.news-article__body h3 { font-size: 1.25rem; }

.news-article__body a {
  color: var(--cat-color, var(--muted-gold));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-article__body blockquote {
  margin: 2em 0;
  padding: 0.75em 1.5em;
  border-left: 4px solid var(--cat-color, var(--muted-gold));
  background: var(--warm-sand);
  border-radius: 0 3px 3px 0;
  font-style: italic;
  font-size: 1.125rem;
}

.news-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1.5em 0;
}

/* ── Tags ────────────────────────────────────────────────── */
.news-article__tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sandstorm);
  font-size: 0.8125rem;
}

.news-article__tags-label {
  font-weight: 600;
  color: var(--taupe);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.news-article__tags a {
  display: inline-block;
  padding: 0.25em 0.75em;
  background: var(--sandstorm);
  color: var(--charcoal);
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: background 0.2s ease;
}

.news-article__tags a:hover {
  background: var(--charcoal);
  color: var(--warm-white);
}

/* ── Share sidebar ───────────────────────────────────────── */
.news-article__share {
  position: sticky;
  top: 6rem;
  align-self: start;
}

@media (max-width: 899px) {
  .news-article__share {
    position: static;
    order: -1;
  }
}

.share-buttons__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 0.75rem;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 899px) {
  .share-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.875rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--sandstorm);
  background: var(--warm-white);
  color: var(--charcoal);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.share-btn:hover {
  background: var(--charcoal);
  color: var(--warm-white);
  border-color: var(--charcoal);
}

.share-btn--facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-btn--twitter:hover  { background: #000; border-color: #000; color: #fff; }

/* ── Related articles ────────────────────────────────────── */
.news-article__related {
  background: var(--warm-sand);
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 2px solid var(--sandstorm);
}

.news-article__related-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.related-articles__title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 1.75rem;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .related-articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-articles__grid .news-card {
  opacity: 1;
  transform: none;
}

/* ── Newsroom empty state ────────────────────────────────── */
.newsroom__empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--taupe);
  font-size: 1rem;
}

/* ============================================================
   Hero banner
   ============================================================ */

.newsroom-hero {
  position: relative;
  background-color: var(--charcoal);
  overflow: hidden;
  padding: clamp(3rem, 8vh, 5rem) var(--section-px);
}

/* Grain noise overlay — SVG feTurbulence rendered as a data URI tile */
.newsroom-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  background-repeat: repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

/* Subtle warm gradient from left */
.newsroom-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(196, 168, 130, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.newsroom-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
}

.newsroom-hero__date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-gold);
  margin-bottom: 1rem;
}

.newsroom-hero__heading {
  font-family: var(--font-headline);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--warm-sand);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.newsroom-hero__tagline {
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(245, 241, 236, 0.65);
  margin: 0;
}

/* ============================================================
   Filter bar — pills + search
   ============================================================ */

.newsroom-filter-bar {
  background: var(--warm-white);
  border-bottom: 1px solid var(--sandstorm);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(38, 36, 34, 0.06);
}

.newsroom-filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.875rem var(--section-px);
}

/* ── Search input ────────────────────────────────────────── */
.newsroom-search {
  flex-shrink: 0;
}

.newsroom-search__input {
  appearance: none;
  display: block;
  width: clamp(160px, 18vw, 240px);
  height: 2.25rem;
  padding: 0 0.75rem 0 2.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal);
  background-color: var(--warm-sand);
  border: 1px solid var(--sandstorm);
  border-radius: 20px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;

  /* Magnifier icon — URL-encoded SVG as background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238A8178' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.65rem center;
  background-size: 15px 15px;
}

.newsroom-search__input::placeholder {
  color: var(--taupe);
  opacity: 1;
}

.newsroom-search__input:focus {
  border-color: var(--muted-gold);
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.18);
  background-color: var(--warm-white);
}

/* Hide the browser's native search cancel button — we handle clearing */
.newsroom-search__input::-webkit-search-cancel-button { display: none; }

/* ── Category pills ──────────────────────────────────────── */
.newsroom-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
}

.newsroom-pill {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.875rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--warm-sand);
  border: 1.5px solid var(--sandstorm);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  line-height: 1;
}

.newsroom-pill:hover:not(.is-active) {
  border-color: var(--taupe);
  background: var(--sandstorm);
}

/* Category-coloured border on hover for term pills */
.newsroom-pill[data-category]:not([data-category='']):not(.is-active):hover {
  border-color: var(--cat-color, var(--taupe));
  color: var(--cat-color, var(--charcoal));
}

/* Active state — always news-accent (BBC red) */
.newsroom-pill.is-active {
  background: var(--news-accent);
  border-color: var(--news-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.newsroom-pill.is-active:hover {
  background: color-mix(in srgb, var(--news-accent) 88%, #000);
  border-color: color-mix(in srgb, var(--news-accent) 88%, #000);
}

/* ── Hidden exposed form ─────────────────────────────────── */
.newsroom-exposed-form {
  /* Visually hidden but present in the DOM so JS can submit it */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Results wrapper ─────────────────────────────────────── */
.newsroom-results {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--section-px) 4rem;
}

/* ============================================================
   Reduced motion — disable all animations and transforms for
   users who have opted into prefers-reduced-motion in their OS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  /* Cards: show immediately, no entrance animation, no lift on hover */
  .news-card {
    opacity: 1;
    transform: none;
    will-change: auto;
    transition: box-shadow 0.2s ease;
  }

  .news-card:hover {
    transform: none;
  }

  /* Image zoom on hover */
  .news-card__image-link:hover .news-card__image {
    transform: none;
  }

  /* Pulse animations on breaking badges */
  .newsroom__breaking-pulse,
  .news-article__breaking-badge {
    animation: none;
    will-change: auto;
  }

  /* Pill and search transitions are already limited — leave them as-is */
}
