/* Alumni news hub — list + story pages */

@import url('vanguard-brand.css');

.anw-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.anw-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;
}

.anw-hero-actions,
.anw-hero-actions.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* List hero */
.anw-list-hero {
  position: relative;
  min-height: 380px;
  color: #fff;
  overflow: hidden;
}

.anw-list-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anw-list-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(63, 14, 15, 0.92) 0%, rgba(86, 20, 21, 0.78) 42%, rgba(12, 35, 64, 0.55) 100%);
}

.anw-list-hero__content {
  position: relative;
  z-index: 1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 0 2.5rem;
}

.anw-list-hero__content small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  opacity: 0.88;
  margin-bottom: 0.45rem;
}

.anw-list-hero__content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.06;
  margin: 0 0 0.75rem;
  max-width: 12ch;
}

.anw-list-hero__content p {
  margin: 0 0 1.1rem;
  max-width: 40rem;
  line-height: 1.65;
  opacity: 0.94;
}

.anw-list-hero .btn-outline {
  background: #fff;
  border-color: #fff;
  color: #551516;
}

.anw-list-hero .btn-outline:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
  color: #3f0e0f;
}

.anw-list-hero .btn-primary {
  background: #CB892C;
  border-color: #CB892C;
  color: #fff;
}

.anw-list-hero .btn-primary:hover {
  background: #b87414;
  border-color: #b87414;
  color: #fff;
}

/* Section */
.anw-section {
  padding: 2.5rem 0 3rem;
}

.anw-section--muted {
  background: #faf8f5;
  max-width: none;
  padding-inline: 0;
}

.anw-section--muted > .anw-container,
.anw-section--muted > .anw-section-head {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.anw-section-head {
  margin-bottom: 1.25rem;
}

.anw-section-head h2,
.anw-section-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  color: #111;
}

.anw-section-head span {
  font-size: 0.82rem;
  color: #666;
}

.anw-section-head--inline h2 {
  font-size: 1.2rem;
}

.anw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.anw-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.anw-search-form input[type="search"] {
  min-width: min(280px, 100%);
  min-height: 2.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  font-size: 0.88rem;
}

.anw-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.anw-type-chip {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e2d8ca;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.anw-type-chip:focus-visible {
  outline: 2px solid #551516;
  outline-offset: 2px;
}

.anw-type-chip:hover,
.anw-type-chip.is-active {
  border-color: #551516;
  background: #551516;
  color: #fff;
}

.anw-type-chip--action {
  margin-left: auto;
  border-color: #551516;
  color: #551516;
  text-decoration: none;
}

.anw-type-chip--action:hover {
  background: #551516;
  color: #fff;
}

.anw-card.anw-is-filtered-out,
.anw-card[hidden],
.anw-featured.anw-is-filtered-out,
.anw-featured[hidden],
.anw-grid[hidden] {
  display: none !important;
}

.alumni-news-stories.anw-has-filters .anw-type-chip.is-active {
  box-shadow: 0 0 0 2px rgba(85, 21, 22, 0.2);
}

/* Featured */
.anw-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #eadfcd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(60, 22, 14, 0.1);
}

.anw-featured__media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.anw-featured__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s;
}

.anw-featured:hover .anw-featured__media img {
  transform: scale(1.02);
}

.anw-featured__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}

.anw-featured__body small {
  color: #551516;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.anw-featured__body h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.2;
}

.anw-featured__body h2 a {
  color: inherit;
  text-decoration: none;
}

.anw-featured__body h2 a:hover {
  color: #551516;
}

.anw-featured__body p {
  margin: 0;
  color: #555;
  line-height: 1.65;
  font-size: 0.92rem;
}

.anw-featured__meta {
  font-size: 0.8rem;
  color: #777;
}

/* Cards grid */
.anw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
}

.anw-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.anw-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eadfcd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(60, 22, 14, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}

.anw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(60, 22, 14, 0.12);
}

.anw-card__media {
  display: block;
  position: relative;
  overflow: hidden;
}

.anw-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1f2937;
  transition: transform 0.25s;
}

.anw-card:hover .anw-card__media img {
  transform: scale(1.03);
}

.anw-card__type {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #551516;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.anw-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.anw-card__body small {
  color: #551516;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.anw-card__body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.anw-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.anw-card__body h3 a:hover {
  color: #551516;
}

.anw-card__body p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #555;
  flex: 1;
}

.anw-card__byline {
  font-size: 0.76rem;
  color: #888;
}

.anw-card__link {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #551516;
  text-decoration: none;
}

.anw-card__link:hover {
  text-decoration: underline;
}

/* Story page — editorial split: portrait panel + branded headline panel */
.anw-story-hero {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(0, 3fr);
  align-items: stretch;
  min-height: clamp(380px, 52vh, 540px);
  color: #fff;
  overflow: hidden;
  background: #551516;
}

.anw-story-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, #f8f6f2 0%, #efeae3 100%);
  border-right: 1px solid rgba(85, 21, 22, 0.08);
}

.anw-story-hero__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(520px, 68vh);
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
}

.anw-story-hero__overlay {
  display: none;
}

.anw-story-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(145deg, #551516 0%, #3d0f10 55%, #231012 100%);
}

.anw-breadcrumb {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.anw-breadcrumb:hover {
  color: #fff;
}

.anw-story-kicker {
  display: inline-block;
  width: fit-content;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 138, 25, 0.95);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.anw-story-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.anw-story-deck {
  margin: 0;
  max-width: 38rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.anw-story-deck strong {
  color: #fff;
  font-weight: 700;
}

.anw-article {
  padding: 2.5rem 0;
  background: #fff;
}

.anw-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.anw-article__main {
  max-width: 42rem;
}

.anw-article__main p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
  margin: 0 0 1.15rem;
}

.anw-article__aside {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.anw-aside-card {
  padding: 0.85rem;
  border: 1px solid #eadfcd;
  border-radius: 10px;
  background: #faf8f5;
}

.anw-aside-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  background: #f0ebe6;
}

.anw-aside-card p {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.anw-aside-meta {
  color: #666 !important;
  font-size: 0.8rem !important;
}

.anw-aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Not found */
.anw-missing-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
  text-align: center;
}

.anw-missing-hero__inner {
  max-width: 38rem;
}

.anw-missing-hero small {
  display: block;
  color: #551516;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.anw-missing-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.anw-missing-hero p {
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.anw-missing-hero .anw-hero-actions {
  justify-content: center;
}

.anw-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed #e2d8ca;
  border-radius: 10px;
  background: #fffdf9;
}

.anw-empty h3 {
  margin: 0 0 0.5rem;
}

.anw-empty p {
  margin: 0 0 1rem;
  color: #666;
}

.anw-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid #eadfcd;
  color: #666;
  font-size: 0.88rem;
}

.anw-footer p {
  margin: 0.35rem 0;
}

@media (max-width: 900px) {
  .anw-featured,
  .anw-article__layout {
    grid-template-columns: 1fr;
  }

  .anw-article__aside {
    position: static;
  }

  .anw-list-hero,
  .anw-list-hero__content {
    min-height: 360px;
  }

  .anw-story-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .anw-story-hero__media {
    min-height: 280px;
    max-height: 380px;
    padding: 1.25rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(85, 21, 22, 0.08);
  }

  .anw-story-hero__img {
    max-height: 320px;
  }

  .anw-story-hero__content {
    padding: 1.75rem 1rem 2rem;
  }

  .anw-story-hero h1 {
    max-width: none;
  }

  .anw-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .anw-search-form input[type="search"] {
    min-width: 0;
    width: 100%;
  }
}
