/* News index pages: shared Company / Industry / Technical presentation. */

.news-hero,
.news-page,
.mos-cms-list {
  --news-bg: #ffffff;
  --news-bg-soft: #ffffff;
  --news-surface: #ffffff;
  --news-text: var(--color-ink, #171717);
  --news-text-soft: var(--color-ink-2, #3d3d3d);
  --news-muted: var(--color-muted, #6c6c6c);
  --news-line: var(--color-rule, #d9d9d4);
  --news-line-soft: var(--color-rule-2, #e9e9e5);
  --news-dark: var(--color-dark, #141414);
  --news-dark-2: var(--color-dark-2, #242424);
  --news-on-dark: var(--color-on-dark, #f7f7f4);
  --news-on-dark-muted: var(--color-on-dark-muted, #c8c8c2);
  --news-accent: var(--color-accent, #f0a500);
  --news-accent-strong: var(--color-accent-strong, #a66d00);
  --news-accent-ink: var(--color-accent-ink, #171717);
  --news-focus: var(--color-focus, #9c6900);
  color: var(--news-text);
  font-family: inherit;
}

.news-page .sr-only,
.mos-cms-list .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Existing page banner, refined rather than replaced. */
.news-hero {
  position: relative;
  min-height: 22rem;
  margin-top: var(--site-header-height, 4.375rem);
  overflow: hidden;
  background: var(--news-dark) var(--news-hero-image) center / cover no-repeat;
  color: var(--news-on-dark);
}

.news-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 10, 12, 0.9) 0%,
    rgba(9, 10, 12, 0.72) 48%,
    rgba(9, 10, 12, 0.3) 100%
  );
  content: "";
}

.news-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 10, 12, 0.32));
}

.news-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 4rem 4.5rem;
}

.news-hero h1,
.news-hero .mos-cms-shell-heading {
  max-width: 18ch;
  min-width: 0;
  margin: 0;
  color: var(--news-on-dark);
  font-family: inherit;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.news-hero p {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--news-on-dark-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.news-breadcrumb {
  order: -1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  overflow-x: auto;
  color: var(--news-on-dark-muted);
  font-size: 0.84rem;
  line-height: 1;
  scrollbar-width: none;
}

.news-breadcrumb::-webkit-scrollbar {
  display: none;
}

.news-breadcrumb a,
.news-breadcrumb span {
  flex: 0 0 auto;
}

.news-breadcrumb a {
  color: inherit;
}

.news-breadcrumb a:hover {
  color: var(--news-accent);
}

/* Content shell and category navigation. */
.news-page,
.mos-cms-list {
  padding-block: 4.75rem 5.5rem;
  background: var(--news-bg);
}

.mos-cms-list > .mos-cms-container {
  width: 100%;
  max-width: var(--site-container-max, 1680px);
  margin-inline: auto;
  padding-inline: var(--site-container-padding, 1rem);
}

.news-page .news-layout,
.mos-cms-list .news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

.news-sidebar,
.news-main {
  min-width: 0;
}

.news-panel {
  background: var(--news-surface);
}

.news-category-panel {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
  padding-inline: 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--news-line);
  background: var(--news-bg-soft);
  box-shadow: inset 0 3px 0 var(--news-dark);
}

.news-category-panel h2 {
  flex: 0 0 auto;
  margin: 0 0.5rem 0 0;
  color: var(--news-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-category {
  position: relative;
  display: inline-flex;
  min-height: 4.25rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  color: var(--news-text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.news-category::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.news-category svg {
  width: 0.95rem;
  height: 0.95rem;
}

.news-category:hover,
.news-category.active {
  color: var(--news-text);
}

.news-category.active::after {
  background: var(--news-accent);
}

.mos-cms-list-head,
.news-index-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.mos-cms-list-head .mos-cms-eyebrow,
.news-index-head__eyebrow {
  color: var(--news-accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.mos-cms-list-head .mos-cms-title,
.news-index-head h2 {
  max-width: 20ch;
  min-width: 0;
  margin: 0;
  color: var(--news-text);
  font-family: inherit;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

/* Search and sorting. */
.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--news-line);
}

.news-sort-wrap,
.news-search-wrap {
  position: relative;
  min-width: 0;
}

.news-sort-wrap {
  width: 11.5rem;
}

.news-search-wrap {
  width: min(100%, 23rem);
}

.news-sort,
.news-search-input {
  width: 100%;
  height: 3rem;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: 2px solid transparent;
  outline-offset: 1px;
  background: var(--news-bg-soft);
  color: var(--news-text);
  font-family: inherit;
  font-size: 0.88rem;
}

.news-sort {
  appearance: none;
  padding-inline: 0.95rem 2.6rem;
  cursor: pointer;
}

.news-search-input {
  padding-inline: 0.95rem 2.6rem;
}

.news-search-input::placeholder {
  color: var(--news-muted);
  opacity: 1;
}

.news-search-wrap svg,
.news-sort-wrap svg {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--news-muted);
  pointer-events: none;
}

.news-sort:hover,
.news-search-input:hover {
  border-color: var(--news-line);
  background: var(--news-surface);
}

.news-sort:focus-visible,
.news-search-input:focus-visible {
  border-color: var(--news-focus);
  outline-color: var(--news-focus);
}

.news-sort:disabled,
.news-search-input:disabled,
.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Uniform article grid. */
.news-list,
.mos-cms-list .mos-cms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.news-item,
.mos-cms-list .mos-cms-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 4px;
  background: var(--news-surface);
  box-shadow: 0 6px 22px rgba(14, 18, 22, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.news-item:hover,
.mos-cms-list .mos-cms-card:hover {
  border-bottom-color: var(--news-accent);
  box-shadow: 0 12px 30px rgba(14, 18, 22, 0.11);
  transform: translateY(-2px);
}

.news-item.is-hidden,
.mos-cms-card.is-hidden {
  display: none;
}

.news-thumb,
.mos-cms-card > a:first-child {
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--news-bg-soft);
}

.news-thumb img,
.mos-cms-card > a:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__body,
.mos-cms-card-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.news-tag,
.mos-cms-card-date {
  margin-bottom: 0.7rem;
  color: var(--news-accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.news-item h2,
.mos-cms-card h2,
.mos-cms-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--news-text);
  font-family: inherit;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.news-item h2 a,
.mos-cms-card h2 a,
.mos-cms-card h3 a {
  color: inherit;
}

.news-item p,
.mos-cms-card p {
  display: -webkit-box;
  margin: 0.8rem 0 0;
  overflow: hidden;
  color: var(--news-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.news-meta-row time {
  color: var(--news-muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.news-more,
.mos-cms-card .mos-cms-button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.9rem 0 0;
  border-bottom: 1px solid var(--news-text);
  color: var(--news-text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.news-more::after,
.mos-cms-card .mos-cms-button::after {
  content: "→";
}

.mos-cms-card .mos-cms-button {
  margin-top: 1.2rem;
}

.news-more:hover,
.mos-cms-card .mos-cms-button:hover {
  border-color: var(--news-accent-strong);
  color: var(--news-accent-strong);
}

/* Empty state and pagination. */
.news-empty {
  margin: 0;
  padding: 3rem 1.5rem;
  border: 1px solid var(--news-line-soft);
  background: var(--news-bg-soft);
  color: var(--news-muted);
  text-align: center;
}

.news-pagination,
.mos-cms-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn,
.page-ellipsis,
.mos-cms-pagination a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding-inline: 0.75rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--news-bg-soft);
  color: var(--news-text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active,
.mos-cms-pagination a:hover,
.mos-cms-pagination a[aria-current="page"] {
  border-color: var(--news-accent);
  background: var(--news-surface);
  color: var(--news-text);
}

.page-btn.active,
.mos-cms-pagination a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--news-accent);
}

.page-ellipsis {
  min-width: auto;
  border-color: transparent;
}

.news-category:focus-visible,
.news-item a:focus-visible,
.mos-cms-card a:focus-visible,
.page-btn:focus-visible,
.mos-cms-pagination a:focus-visible {
  outline: 2px solid var(--news-focus);
  outline-offset: 2px;
}

@media (max-width: 63.999rem) {
  .news-list,
  .mos-cms-list .mos-cms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.999rem) {
  .news-hero,
  .news-hero__content {
    min-height: 19rem;
  }

  .news-hero__content {
    padding-block: 3rem;
  }

  .news-page,
  .mos-cms-list {
    padding-block: 3.25rem 4rem;
  }

  .news-page .news-layout,
  .mos-cms-list .news-layout {
    gap: 2.25rem;
  }

  .news-category-panel {
    gap: 1.4rem;
    padding-inline: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .news-category-panel h2 {
    display: none;
  }

  .news-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .news-sort-wrap,
  .news-search-wrap {
    width: 100%;
  }

  .news-list,
  .mos-cms-list .mos-cms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 31.25rem) {
  .news-hero h1,
  .news-hero .mos-cms-shell-heading {
    font-size: clamp(2.1rem, 11vw, 2.75rem);
  }

  .news-category {
    min-height: 3.75rem;
  }

  .news-item__body,
  .mos-cms-card-content {
    padding: 1.2rem;
  }
}

@media (pointer: coarse) {
  .news-category,
  .news-sort,
  .news-search-input,
  .news-more,
  .mos-cms-button,
  .page-btn,
  .mos-cms-pagination a {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-item,
  .mos-cms-card {
    transition: none;
  }
}
