/* =========================================================================
 * NEWS page — magazine-style card grid (chronological, newest first)
 * ========================================================================= */

.section-news {
  max-width: 1480px;
  padding-top: 50px;
  padding-bottom: 200px;
}

/* ----- Filter UI (category + artist pills, JS-driven) ----- */

.news-filters {
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-filter-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
}

.news-filter-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-mute);
  padding-top: 9px;
}

.news-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-filter-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.news-filter-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
}

.news-filter-pill.is-active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.news-filter-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  color: var(--text);
}

.news-filter-status {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
}

.news-filter-status [data-news-count] {
  color: var(--text);
  font-weight: 700;
}

.news-filter-clear {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.news-filter-clear:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Featured/grid visibility based on filter state.
 *   - No filter: show .news-featured, hide its duplicate in the grid
 *   - Filter active: hide .news-featured, show duplicate (so featured is
 *     reachable when it matches the filter)
 *   - Cards toggled individually by JS via .is-hidden
 */
.section-news:not(.is-filtered) .news-card.news-card-is-featured {
  display: none;
}
.section-news.is-filtered .news-featured {
  display: none;
}
.news-card.is-hidden {
  display: none;
}

.news-empty-result {
  padding: 80px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-mute);
}

@media (max-width: 768px) { /* --bp-sp */
  .news-filters {
    margin-bottom: 56px;
    padding-bottom: 28px;
    gap: 14px;
  }
  .news-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .news-filter-label {
    padding-top: 0;
  }
  /* Horizontal scrollable pills — pills no longer wrap; user swipes
   * left/right. Scroll-snap gives a gentle snap to each pill, and the
   * scrollbar is hidden for a cleaner look. */
  .news-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* Trailing padding-right so the last pill doesn't sit flush with the
     * scroll-area edge — gives a small "more available" hint. */
    padding-right: 24px;
  }
  .news-filter-pills::-webkit-scrollbar {
    display: none;
  }
  .news-filter-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    /* Touch-friendly tap target (WCAG 2.5.5 min 44×44). Visual height stays
     * 30px via the inner content; the rest is transparent padding. */
    min-height: 44px;
    padding: 0 18px;
  }
  .news-filter-status {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ----- Shared meta atoms (category badge + date) ----- */

.news-cat {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.news-date {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.news-date-day {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ----- FEATURED hero (full-width, image left + text right on PC) ----- */

.news-featured {
  margin-bottom: 96px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 96px;
}

.news-featured-link {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.news-featured-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card-bg);
}

.news-featured-image-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.15) brightness(0.92);
  transition: transform 1.2s var(--ease-out), filter 0.6s ease;
}

.news-featured-link:hover .news-featured-image-inner {
  transform: scale(1.04);
  filter: grayscale(0) brightness(1);
}

.news-featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
}

/* Category label overlay at bottom-right of the featured image. The SVG
 * thumbnail itself may include a category caption, but the 16:10 featured
 * frame slices it off — this overlay guarantees visibility and doubles as
 * the placeholder label when no thumbnail is provided. */
.news-featured-image-cat {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-family: var(--font-en);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
}

.news-featured-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.news-featured-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.news-featured-link:hover .news-featured-title {
  color: var(--accent);
}

.news-featured-excerpt {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.news-featured-artist {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-bottom: 24px;
}

.news-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.news-featured-link:hover .news-featured-cta {
  color: var(--accent);
  border-color: var(--accent);
  gap: 16px;
}

/* ----- GRID — 3 columns, magazine rhythm via :nth-child variations ----- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-card {
  /* slight stagger for the reveal animation */
  transition-delay: calc(var(--i, 0) * 60ms);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.news-card-image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card-bg);
}

.news-card-image-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.15) brightness(0.9);
  transition: transform 1.2s var(--ease-out), filter 0.6s ease;
}

.news-card-link:hover .news-card-image-inner {
  transform: scale(1.05);
  filter: grayscale(0) brightness(1);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.news-card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.3s ease;
}

.news-card-link:hover .news-card-title {
  color: var(--accent);
}

.news-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-mute);
}

.news-card-artist {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Magazine rhythm: every 7th card spans two columns to break the grid */
.news-card:nth-child(7n) {
  grid-column: span 2;
}

.news-card:nth-child(7n) .news-card-image {
  aspect-ratio: 16 / 9;
}

.news-card:nth-child(7n) .news-card-title {
  font-size: clamp(22px, 2vw, 30px);
}

/* The SVG thumbnail draws a CATEGORY caption at the bottom-right of its
 * 4:3 viewBox, which is naturally visible on the 4:3 grid cards but gets
 * sliced off on the 16:9 wide variant (every 7th card). The HTML overlay
 * below is hidden by default and only shown on the 7n wide cards so the
 * tag remains visible. */
.news-card-image-cat {
  display: none;
}

.news-card:nth-child(7n) .news-card-image-cat {
  display: block;
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
}

/* ----- Responsive ----- */

@media (max-width: 1100px) {
  .news-featured-link {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }
  .news-card:nth-child(7n) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) { /* --bp-sp */
  .section-news {
    padding-top: 30px;
    padding-bottom: 100px;
  }
  .news-featured {
    margin-bottom: 64px;
    padding-bottom: 64px;
  }
  .news-featured-link {
    gap: 24px;
  }
  .news-featured-image {
    aspect-ratio: 4 / 3;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .news-card:nth-child(7n) {
    grid-column: span 1;
  }
  .news-card:nth-child(7n) .news-card-image {
    aspect-ratio: 4 / 3;
  }
  .news-card:nth-child(7n) .news-card-title {
    font-size: 18px;
  }
}

/* =========================================================================
 * NEWS detail page
 * ========================================================================= */

.news-article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--pad-x-pc) 80px;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.4)  0%,
      rgba(0,0,0,0)    40%,
      rgba(0,0,0,0)    60%,
      rgba(0,0,0,0.95) 100%),
    linear-gradient(135deg, var(--card-bg) 0%, #0d0d0d 60%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}

.news-article-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.news-article-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.news-article-date {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text);
}

.news-article-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(23px, 3.56vw, 52px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 1000px;
}

.news-article-artist {
  margin-bottom: 32px;
}

.news-article-artist a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.news-article-artist a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.news-article-breadcrumb {
  margin-top: 8px;
}

/* Body */

.news-article-body {
  padding: 120px var(--pad-x-pc);
}

.news-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 80px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.news-article-side {
  position: sticky;
  top: calc(var(--header-h, 80px) + 24px);
}

.news-article-spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 0;
  font-size: 13px;
}

.news-article-spec dt {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.news-article-spec dd {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.news-article-spec dd a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.news-article-spec dd a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.news-article-main {
  max-width: 760px;
}

.news-article-text p {
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin-bottom: 28px;
}

.news-article-text p:last-child {
  margin-bottom: 0;
}

/* PREV / NEXT nav */

.news-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 120px var(--pad-x-pc);
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.news-nav-prev,
.news-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-en);
  color: var(--text);
  text-decoration: none;
  transition: color 0.4s ease;
  max-width: 360px;
}

.news-nav-next {
  justify-self: end;
  text-align: right;
}

.news-nav-arrow {
  font-size: 14px;
  color: var(--text-mute);
  transition: color 0.4s ease, transform 0.4s ease;
}

.news-nav-prev:hover .news-nav-arrow {
  color: var(--accent);
  transform: translateX(-4px);
}

.news-nav-next:hover .news-nav-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.news-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.news-nav-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  transition: color 0.4s ease;
}

.news-nav-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.4s ease;
}

.news-nav-prev:hover .news-nav-label,
.news-nav-next:hover .news-nav-label,
.news-nav-prev:hover .news-nav-title,
.news-nav-next:hover .news-nav-title {
  color: var(--accent);
}

.news-nav-all {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  border: 1px solid var(--line);
  padding: 14px 24px;
  border-radius: 999px;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.news-nav-all:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.news-nav .is-disabled {
  pointer-events: none;
}

@media (max-width: 960px) {
  .news-article-hero {
    padding: 100px var(--pad-x-pc) 56px;
  }
  .news-article-body {
    padding: 80px var(--pad-x-pc);
  }
  .news-article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .news-article-side {
    position: static;
  }
}

@media (max-width: 768px) { /* --bp-sp */
  .news-article-hero {
    padding: 88px var(--pad-x-sp) 48px;
    min-height: 380px;
  }
  .news-article-body {
    padding: 64px var(--pad-x-sp);
  }
  .news-nav {
    /* Single row: arrow | ALL NEWS | arrow. Equal 1fr columns keep the
     * middle (ALL NEWS) at the geometric horizontal center regardless of
     * the prev/next arrow widths. */
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 16px;
    padding: 80px var(--pad-x-sp);
  }
  .news-nav-all {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    padding: 12px 18px;
    font-size: 9px;
  }
  .news-nav-all-suffix {
    display: none;
  }
  .news-nav-prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .news-nav-next {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }
  .news-nav-stack {
    display: none;
  }
}
