.news-index,
.news-detail,
.news-not-found {
  padding-top: clamp(8.5rem, 13vw, 12rem);
}

.news-index-header,
.news-detail-header {
  max-width: 840px;
}

.news-index-header h1,
.news-detail-header h1,
.news-not-found h1 {
  margin: 0.4rem 0 1.5rem;
  font-family: inherit;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.news-index-header > p:last-child,
.news-detail-header > p,
.news-not-found > p {
  max-width: 720px;
  color: var(--muted);
  line-height: 2;
}

.news-index-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
}

.news-categories a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.news-categories a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.news-categories a:hover::after,
.news-categories a:focus-visible::after,
.news-categories a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.news-categories a[aria-current="page"] {
  color: var(--ink);
}

.news-count {
  flex: 0 0 auto;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.news-index-list {
  border-bottom: 1px solid var(--line);
}

.news-index-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.4rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.news-index-card:first-child {
  border-top: 0;
}

.news-index-image {
  display: block;
  align-self: start;
  background: #fff;
}

.news-index-image img {
  width: 100%;
  max-height: 300px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.news-index-copy {
  align-self: center;
}

.news-index-meta,
.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-index-copy h2 {
  margin: 1rem 0;
  font-family: inherit;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.news-index-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.news-index-copy > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.9;
}

.news-empty {
  margin: 0;
  padding: 5rem 0;
  color: var(--muted);
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 3rem;
}

.news-pagination a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.news-pagination a:hover,
.news-pagination a:focus-visible,
.news-pagination a[aria-current="page"] {
  border-color: var(--ink);
  color: var(--ink);
}

.news-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.news-detail-header {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.news-detail-hero,
.news-detail-gallery figure,
.news-body-image {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: #fff;
}

.news-detail-hero {
  max-width: 960px;
}

.news-detail-hero img,
.news-detail-gallery img,
.news-body-image img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
}

.news-detail-body {
  max-width: 760px;
  margin-top: clamp(3rem, 7vw, 6rem);
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 2;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
  margin: 2.6em 0 0.9em;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.news-detail-body blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 1px solid var(--ink);
  color: var(--muted);
}

.news-detail-body a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.news-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1100px;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.news-detail-gallery figcaption,
.news-body-image figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.news-external {
  margin-top: 3rem;
}

.news-not-found {
  min-height: 70vh;
}

@media (max-width: 760px) {
  .news-index,
  .news-detail,
  .news-not-found {
    padding-top: 7.5rem;
  }

  .news-index-tools {
    display: block;
  }

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

  .news-categories a {
    min-height: 48px;
  }

  .news-count {
    margin-top: 1rem;
  }

  .news-index-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-index-image img {
    max-height: 360px;
  }

  .news-detail-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-categories a::after {
    transition: none;
  }
}
