@layer components {
  /* ── News Detail (existing) ── */
  .news-detail {
    background-color: var(--color-canvas);
    min-height: 100dvh;
  }

  .news-detail__banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .news-detail__content {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: -2rem;
    position: relative;
    padding: var(--space-xl) var(--space-md);
    box-shadow: var(--shadow-lg);
    min-height: 50vh;
  }

  .news-detail__content--no-banner {
    margin-top: 0;
    border-radius: 0;
  }

  .news-detail__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-ink);
    line-height: var(--leading-tight);
  }

  .news-detail__meta {
    color: var(--color-ink-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
  }

  .news-detail__body {
    margin-top: var(--space-xl);
    line-height: var(--leading-relaxed);
  }

  .news-detail__body p {
    margin-bottom: var(--space-md);
  }

  .news-detail__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-block: var(--space-md);
  }

  /* ── News Detail: Attachments ── */
  .news-detail__attachments {
    margin-top: var(--space-xl);
  }

  .news-detail__attachments-title {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-md);
  }

  .news-attachments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .news-attachment {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-primary-container);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-ink);
    transition: filter var(--transition-fast);

    &:hover { filter: brightness(0.96); }
  }

  .news-attachment__icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-on-primary);

    & svg { width: 1.125rem; height: 1.125rem; }
  }

  .news-attachment__body {
    flex: 1;
    min-width: 0;
  }

  .news-attachment__name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .news-attachment__meta {
    font-size: var(--text-xs);
    color: var(--color-ink-muted);
    margin-top: 0.125rem;
  }

  .news-attachment__download {
    color: var(--color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;

    & svg { width: 1.125rem; height: 1.125rem; }
  }
}
