body.latest-page .subpage-hero.latest-hero {
  padding-top: 18px;
}

body.latest-page .latest-hero__inner,
body.latest-page .latest-feed__shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(242, 163, 93, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(98, 191, 211, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 27, 38, 0.94), rgba(10, 16, 24, 0.98));
}

body.latest-page .latest-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 28px;
}

body.latest-page .latest-hero__copy {
  display: grid;
  gap: 12px;
}

body.latest-page .latest-hero__copy h1 {
  margin: 0;
}

body.latest-page .latest-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

body.latest-page .latest-hero__stat {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

body.latest-page .latest-hero__stat span {
  color: rgba(247, 241, 233, 0.62);
  font-size: 0.78rem;
}

body.latest-page .latest-hero__stat strong {
  color: #fff7ec;
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1.2;
}

body.latest-page .latest-feed {
  padding-top: 18px;
}

body.latest-page .latest-feed__shell {
  display: grid;
  gap: 22px;
  padding: 28px;
}

body.latest-page .latest-feed__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

body.latest-page .latest-feed__heading {
  display: grid;
  gap: 10px;
}

body.latest-page .latest-feed__heading h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

body.latest-page .latest-feed__heading p,
body.latest-page .latest-feed__meta {
  margin: 0;
  color: rgba(247, 241, 233, 0.66);
}

body.latest-page .latest-drive-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.latest-page .latest-drive-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  cursor: pointer;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(247, 241, 233, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

body.latest-page .latest-drive-tab:hover {
  transform: translateY(-1px);
  color: #fff7ec;
}

body.latest-page .latest-drive-tab.is-active {
  border-color: rgba(242, 163, 93, 0.34);
  background: linear-gradient(180deg, rgba(242, 163, 93, 0.18), rgba(242, 163, 93, 0.08));
  color: #fff6ea;
}

body.latest-page .latest-drive-tab__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex: none;
}

body.latest-page .latest-resource-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

body.latest-page .latest-resource-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(12, 18, 27, 0.92);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.latest-page .latest-resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 163, 93, 0.18);
}

body.latest-page .latest-resource-card__media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

body.latest-page .latest-resource-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.74;
  border-radius: 16px;
  padding: 4px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 13, 20, 0.5)),
    linear-gradient(145deg, var(--resource-start, #22384a), var(--resource-end, #dea468));
}

body.latest-page .latest-resource-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  background: rgba(7, 12, 19, 0.9);
}

body.latest-page .latest-resource-card__thumb-fallback {
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  color: rgba(255, 247, 236, 0.82);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  border-radius: 12px;
}

body.latest-page .latest-resource-card__thumb-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(11, 18, 29, 0.8);
  color: #fff7ec;
  font-size: 0.68rem;
  font-weight: 800;
}

body.latest-page .latest-resource-card__thumb-badge img {
  position: static;
  width: 12px;
  height: 12px;
}

body.latest-page .latest-resource-card__thumb-time {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 18, 27, 0.78);
  color: rgba(255, 247, 236, 0.88);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  z-index: 2;
}

body.latest-page .latest-resource-card__copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.latest-page .latest-resource-card__title {
  margin: 0;
  color: #fff7ec;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.latest-page .latest-resource-card__actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

body.latest-page .latest-resource-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(242, 163, 93, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 163, 93, 0.18), rgba(242, 163, 93, 0.08));
  color: #ffd7b0;
  font-size: 0.72rem;
  font-weight: 800;
  flex: 1 1 0;
}

body.latest-page .latest-resource-card__cta--ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 241, 233, 0.78);
}

body.latest-page .latest-resource-card__cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.latest-page .latest-resource-grid .empty-state {
  grid-column: 1 / -1;
  min-height: 280px;
  border-radius: 24px;
}

body.latest-page .latest-pagination {
  justify-content: center;
}

@media (max-width: 1500px) {
  body.latest-page .latest-resource-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  body.latest-page .latest-hero__inner {
    grid-template-columns: 1fr;
  }

  body.latest-page .latest-resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.latest-page .latest-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.latest-page .latest-hero__inner,
  body.latest-page .latest-feed__shell {
    padding: 20px;
    border-radius: 24px;
  }

  body.latest-page .latest-hero__stats {
    grid-template-columns: 1fr;
  }

  body.latest-page .latest-drive-tab {
    min-height: 48px;
    padding-inline: 14px;
  }

  body.latest-page .latest-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.latest-page .latest-resource-card__title {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  body.latest-page .latest-resource-grid {
    grid-template-columns: 1fr;
  }
}
