/* AspectWeld news page — dedicated page-specific implementation */

.aw-news-page {
  --aw-news-border: rgba(255, 255, 255, 0.08);
  --aw-news-border-strong: rgba(255, 255, 255, 0.12);
  --aw-news-accent-border: rgba(227, 113, 17, 0.22);
  --aw-news-surface: linear-gradient(180deg, rgba(32, 35, 39, 0.94) 0%, rgba(24, 27, 31, 0.94) 100%);
  --aw-news-surface-hover: linear-gradient(180deg, rgba(39, 43, 48, 0.98) 0%, rgba(29, 32, 36, 0.98) 100%);
  --aw-news-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  --aw-news-radius-lg: 30px;
  --aw-news-radius-md: 22px;
  --aw-news-radius-sm: 16px;
  --aw-news-gap: 24px;
  margin: 0;
  color: var(--aw-text-primary, #f2f3f5);
}

.aw-news-page * {
  box-sizing: border-box;
}

.aw-news-page__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aw-news-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--aw-news-border);
  border-radius: var(--aw-news-radius-lg);
  background: var(--aw-news-surface);
  box-shadow: var(--aw-news-shadow);
}

.aw-news-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(227, 113, 17, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  pointer-events: none;
}

.aw-news-page__hero,
.aw-news-page__layout {
  display: grid;
  gap: var(--aw-news-gap);
}

.aw-news-page__hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
  margin: 0 0 24px;
}

.aw-news-page__hero-main,
.aw-news-page__hero-side,
.aw-news-page__controls,
.aw-news-featured,
.aw-news-card,
.aw-news-page__seo,
.aw-news-page__empty,
.aw-news-page__pagination {
  isolation: isolate;
}

.aw-news-page__hero-main,
.aw-news-page__hero-side,
.aw-news-page__controls,
.aw-news-page__seo,
.aw-news-page__empty,
.aw-news-page__pagination {
  padding: 32px;
}

.aw-news-page__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(227, 113, 17, 0.16);
  border-radius: 999px;
  background: rgba(227, 113, 17, 0.1);
  color: var(--aw-accent-hover, #f17912);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aw-news-page__hero-title,
.aw-news-page__controls-title,
.aw-news-page__seo-title,
.aw-news-card__title,
.aw-news-featured__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--aw-text-primary, #f2f3f5);
  font-family: var(--aw-brand-font, "Inter Tight", sans-serif);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.aw-news-page__hero-title {
  max-width: none;
  margin-top: 18px;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 0.98;
}

.aw-news-page__hero-lead,
.aw-news-card__excerpt,
.aw-news-featured__excerpt,
.aw-news-page__seo-content,
.aw-news-page__resulttext,
.aw-news-page__metric-label {
  position: relative;
  z-index: 1;
  color: var(--aw-text-secondary, #c8ccd2);
}

.aw-news-page__hero-lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.8;
}

.aw-news-page__hero-side-controls {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.aw-news-page__search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.aw-news-page__search-wrap--hero {
  grid-template-columns: minmax(0, 1fr) 110px;
}

.aw-news-page__search-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--aw-news-border);
  border-radius: var(--aw-news-radius-sm);
  background: var(--aw-input, #1d2024);
  color: var(--aw-text-primary, #f2f3f5);
  box-shadow: none;
}

.aw-news-page__search-input::placeholder {
  color: var(--aw-text-muted, #979da6);
}

.aw-news-page__search-input:focus,
.aw-news-page__chip:focus-visible,
.aw-news-page__search-button:focus-visible,
.aw-news-featured__cta:focus-visible,
.aw-news-card__cta:focus-visible {
  outline: 2px solid rgba(227, 113, 17, 0.45);
  outline-offset: 2px;
}

.aw-news-page__search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--aw-news-radius-sm);
  background: var(--aw-accent, #e37111);
  color: #17181a;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.aw-news-page__search-button:hover,
.aw-news-page__search-button:focus-visible {
  background: var(--aw-accent-hover, #f17912);
  transform: translateY(-1px);
}

.aw-news-page__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.aw-news-page__chips--hero {
  margin-top: 0;
}

.aw-news-page__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--aw-news-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--aw-text-secondary, #c8ccd2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.aw-news-page__chip:hover,
.aw-news-page__chip:focus-visible {
  border-color: var(--aw-news-accent-border);
  color: var(--aw-text-primary, #f2f3f5);
  transform: translateY(-1px);
}

.aw-news-page__chip.is-active {
  border-color: var(--aw-news-accent-border);
  background: rgba(227, 113, 17, 0.12);
  color: var(--aw-accent-hover, #f17912);
}

.aw-news-page__layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.aw-news-page__main {
  min-width: 0;
}

.aw-news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 0;
  margin: 0 0 20px;
}

.aw-news-featured__media,
.aw-news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #14171a;
}

.aw-news-featured__media {
  min-height: 420px;
}

.aw-news-featured__media img,
.aw-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.aw-news-featured:hover .aw-news-featured__media img,
.aw-news-card:hover .aw-news-card__media img {
  transform: scale(1.03);
}

.aw-news-featured__media::after,
.aw-news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.45));
  pointer-events: none;
}

.aw-news-featured__placeholder,
.aw-news-card__placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(227, 113, 17, 0.22), transparent 34%),
    linear-gradient(135deg, #1e232a 0%, #13171b 55%, #0f1215 100%);
}

.aw-news-featured__placeholder-badge,
.aw-news-card__placeholder-badge {
  position: absolute;
  left: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--aw-text-secondary, #c8ccd2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aw-news-featured__placeholder-initials,
.aw-news-card__placeholder-initials {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.92);
  font-family: var(--aw-brand-font, "Inter Tight", sans-serif);
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.aw-news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 36px;
}

.aw-news-featured__title {
  margin-top: 0;
  color: var(--aw-text-primary, #f2f3f5);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
}

.aw-news-featured__title,
.aw-news-featured__title a,
.aw-news-featured__body .aw-news-featured__title a {
  color: var(--aw-text-primary, #f2f3f5);
  text-decoration: none;
}

.aw-news-featured .aw-news-featured__body h2.aw-news-featured__title > a,
.aw-news-featured .aw-news-featured__body h2.aw-news-featured__title > a:link,
.aw-news-featured .aw-news-featured__body h2.aw-news-featured__title > a:visited,
.aw-news-featured .aw-news-featured__body h2.aw-news-featured__title > a:hover,
.aw-news-featured .aw-news-featured__body h2.aw-news-featured__title > a:focus {
  color: var(--aw-text-primary, #f2f3f5);
}

.aw-news-card__title a,
.aw-news-card__cta,
.aw-news-featured__cta {
  color: inherit;
  text-decoration: none;
}

.aw-news-featured__excerpt {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.8;
}

.aw-news-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--aw-text-muted, #979da6);
  font-size: 11px;
}

.aw-news-card__topic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--aw-news-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--aw-text-primary, #f2f3f5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aw-news-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.aw-news-featured__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--aw-news-border);
  border-radius: var(--aw-news-radius-sm);
  background: rgba(255,255,255,0.03);
  color: var(--aw-text-primary, #f2f3f5);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aw-news-featured__cta--primary {
  border-color: transparent;
  background: var(--aw-accent, #e37111);
  color: #17181a;
}

.aw-news-featured__cta:hover,
.aw-news-featured__cta:focus-visible {
  transform: translateY(-1px);
}

.aw-news-featured__cta--primary:hover,
.aw-news-featured__cta--primary:focus-visible {
  background: var(--aw-accent-hover, #f17912);
  color: #17181a;
}

.aw-news-page__resultbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.aw-news-page__resulttext,
.aw-news-page__resultcount {
  color: var(--aw-text-muted, #979da6);
  font-size: 14px;
}

.aw-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.aw-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.aw-news-card:hover {
  border-color: var(--aw-news-accent-border);
  background: var(--aw-news-surface-hover);
  transform: translateY(-2px);
}

.aw-news-card__media {
  position: relative;
  flex: 0 0 168px;
  height: 168px;
  min-height: 168px;
  max-height: 168px;
  aspect-ratio: auto;
}

.aw-news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 168px;
  padding: 14px 18px 16px;
}

.aw-news-card__title {
  margin-top: 10px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.16;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1em * 1.16 * 2);
}

.aw-news-card__excerpt {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1em * 1.55 * 2);
}

.aw-news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.aw-news-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aw-accent-hover, #f17912);
  font-size: 12px;
  font-weight: 700;
}

.aw-news-page__seo-title {
  margin-top: 16px;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.08;
}

.aw-news-page__seo-content,
.aw-news-page__seo-content p,
.aw-news-page__seo-content li {
  font-size: 15px;
  line-height: 1.8;
}

.aw-news-page__seo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.aw-news-page__seo-content > :first-child {
  margin-top: 0;
}

.aw-news-page__seo-content > :last-child {
  margin-bottom: 0;
}

.aw-news-page__empty {
  margin-top: 20px;
  color: var(--aw-text-secondary, #c8ccd2);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.aw-news-page__pagination {
  margin-top: 22px;
}

.aw-news-page__pagination-counter {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--aw-text-muted, #979da6);
  font-size: 13px;
}

.aw-news-page__pagination-links {
  position: relative;
  z-index: 1;
}

.aw-news-page__pagination-links .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-news-page__pagination-links .page-item {
  margin: 0;
}

.aw-news-page__pagination-links .page-link,
.aw-news-page__pagination-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--aw-news-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--aw-text-primary, #f2f3f5);
  text-decoration: none;
}

.aw-news-page__pagination-links .active .page-link,
.aw-news-page__pagination-links .page-link:hover,
.aw-news-page__pagination-links .page-link:focus {
  border-color: transparent;
  background: var(--aw-accent, #e37111);
  color: #17181a;
}

.aw-news-page [hidden] {
  display: none !important;
}

@media (max-width: 1439px) {
  .aw-news-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .aw-news-featured__media {
    min-height: 320px;
  }
}

@media (max-width: 1199px) {
  .aw-news-page__hero,
  .aw-news-page__layout,
  .aw-news-page__seo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .aw-news-page__hero-main,
  .aw-news-page__hero-side,
  .aw-news-page__controls,
  .aw-news-page__seo,
  .aw-news-page__empty,
  .aw-news-page__pagination,
  .aw-news-featured__body {
    padding: 24px;
  }

  .aw-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-news-card__media {
    flex-basis: 190px;
    height: 190px;
    min-height: 190px;
    max-height: 190px;
  }

  .aw-news-featured__media {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  .aw-news-page__hero,
  .aw-news-page__controls,
  .aw-news-featured,
  .aw-news-page__layout {
    gap: 16px;
  }

  .aw-news-page__hero-main,
  .aw-news-page__hero-side,
  .aw-news-page__controls,
  .aw-news-page__seo,
  .aw-news-page__empty,
  .aw-news-page__pagination,
  .aw-news-featured__body,
  .aw-news-card__body {
    padding: 20px;
  }

  .aw-news-page__search-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .aw-news-page__hero-title {
    font-size: 36px;
  }

  .aw-news-page__controls-title,
  .aw-news-page__seo-title,
  .aw-news-featured__title {
    font-size: 26px;
  }

  .aw-news-card__media {
    flex-basis: 170px;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
  }

  .aw-news-card__body {
    min-height: 0;
    padding: 16px 18px 18px;
  }

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

  .aw-news-card__title {
    font-size: 20px;
  }
}