.home-news {
  padding: 50px 40px 0;
  background-color: var(--bg-dark);
}

.home-news[hidden] {
  display: none;
}

.home-news-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.home-news-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: none;
}

.home-news-all {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
}

.home-news-all:hover {
  color: var(--text-light);
}

.news-card--tile .news-card-body {
  gap: 4px;
  padding: 10px 12px 12px;
}

.news-card--tile .news-tag {
  padding: 1px 7px;
  font-size: 10px;
}

.news-card--tile .news-date {
  font-size: 11px;
}

.news-card--tile .news-card-title {
  font-size: 14px;
}

.news-card--tile .news-card-media--empty {
  display: none;
}

.news-card--tile .news-pin {
  top: 6px;
  left: 6px;
  padding: 1px 7px;
  font-size: 10px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-light);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.news-card--list {
  border-radius: var(--radius);
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-3px);
}

.news-card:focus-visible {
  outline: none;
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--border-color);
  overflow: hidden;
}

.news-card-media--empty {
  aspect-ratio: auto;
  height: 6px;
}

.news-card-media--empty .news-pin {
  display: none;
}

.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.news-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--rr-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.news-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.news-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.news-pin {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: #1d1d1d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-page-main {
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  padding: 84px 24px 90px;
}

.news-page-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.news-page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.news-page-header p {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 800;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
  gap: 20px;
}

.news-empty {
  color: var(--text-muted);
}

body.news-modal-open {
  overflow: hidden;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-modal[hidden] {
  display: none;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.news-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-light);
  text-align: left;
  box-shadow: none;
}

.news-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.news-modal-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.news-modal-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.news-modal-inner {
  padding: 20px 24px 26px;
}

.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news-modal-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
}

.news-modal-body p {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.news-modal-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--rr-blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.news-modal-cta:hover {
  background: var(--rr-blue-hover);
}

@media (max-width: 800px) {
  .home-news {
    padding: 30px 16px 0;
  }

  .news-page-main {
    padding: 70px 18px 40px;
  }
}

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

.photo-modal-card {
  width: min(900px, 100%);
}

.photo-modal-card .news-modal-img {
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.photo-modal-card .news-modal-inner {
  padding: 16px 24px 20px;
}

.photo-modal-card .news-modal-title {
  margin: 0;
  font-size: 18px;
}

.news-page-header p:has(.photos-original) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.news-page-header .photos-original {
  margin-left: auto;
  color: var(--text-muted);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body:has(.photos-original) .news-page-container {
  max-width: none;
}

body:has(.photos-original) .news-page-container .news-list {
  max-width: 1000px;
}

.news-page-header .photos-original:hover {
  color: var(--text-light);
}

.news-page-title-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.news-page-title-logo img {
  height: 1em;
  width: auto;
}

.home-photos-carousel {
  position: relative;
}

.home-photos-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-photos-track::-webkit-scrollbar {
  display: none;
}

.home-photos-track .news-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.home-photos-arrow {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transform: translateY(-50%);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    opacity 0.2s ease,
    transform 0.12s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-photos-arrow {
    opacity: 0;
  }

  .home-photos-carousel:hover .home-photos-arrow:not(:disabled),
  .home-photos-carousel:focus-within .home-photos-arrow:not(:disabled) {
    opacity: 0.85;
  }
}

.home-photos-arrow:hover:not(:disabled) {
  opacity: 1 !important;
  background: rgba(20, 20, 24, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.home-photos-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.92);
}

.home-photos-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-photos-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

.home-photos-arrow--prev {
  left: 8px;
}

.home-photos-arrow--next {
  right: 8px;
}

@media (max-width: 800px) {
  .home-photos-track {
    gap: 12px;
  }

  .home-photos-track .news-card {
    flex-basis: 70%;
  }

  .home-photos-arrow {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .home-photos-arrow--prev {
    left: 4px;
  }

  .home-photos-arrow--next {
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-photos-track {
    scroll-behavior: auto;
  }
}

.news-page-main {
  background: var(--bg-dark);
}

.news-page-container {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
}

.news-page-header {
  padding: 30px 0 24px;
  border-bottom: 0;
}

.news-page-header h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
}

.news-page-header p {
  margin-bottom: 0;
}

.news-list {
  padding-top: 28px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.news-card--list {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.news-card--list:hover,
.news-card--list:focus-visible {
  box-shadow: none;
}

.news-card-body {
  background: var(--bg-surface);
}

.news-empty {
  padding: 70px 20px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  text-align: center;
}

.photos-original {
  color: var(--rr-blue-text);
  font-weight: 800;
  text-decoration: none;
}

.photos-original:hover {
  color: var(--text-light);
}

@media (max-width: 800px) {
  .news-page-main {
    padding: 70px 16px 50px;
  }

  .news-page-header {
    padding-top: 20px;
  }
}
