.home-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.home-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-section-title {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
}

.home-section-link:hover {
  text-decoration: underline;
}

.spotlight-card {
  position: relative;
  min-height: 420px;
}

.spotlight-media {
  position: absolute;
  inset: 0;
}

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

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 7, 18, 0.88) 0%,
      rgba(8, 7, 18, 0.60) 38%,
      rgba(8, 7, 18, 0.18) 72%,
      rgba(8, 7, 18, 0.02) 100%
    ),
    linear-gradient(
      to right,
      rgba(8, 7, 18, 0.42) 0%,
      rgba(8, 7, 18, 0.18) 32%,
      rgba(8, 7, 18, 0.00) 58%
    );
}

.spotlight-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 18, 0.78);
  border-radius: 22px;
  z-index: -1;
}

.spotlight-content {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(720px, calc(100% - 44px));
  padding: 18px 22px;
  color: white;
  z-index: 2;
  isolation: isolate;
}

.spotlight-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 10px;
}

.spotlight-title {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1.2;
  font-weight: 750;
  margin: 0;
  max-width: 760px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.spotlight-desc {
  max-width: 680px;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.96;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.spotlight-cta:hover {
  background: var(--accent-hover);
}

.trending-rail {
  padding: 20px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trending-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.trending-item:hover {
  background: var(--step-bg);
}

.trending-thumb {
  width: 96px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: var(--step-bg);
}

.trending-title {
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-date {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .home-shell {
    padding-inline: 24px;
  }

  .home-top-grid {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 380px);
    align-items: stretch;
  }
}

.spotlight-card:hover .spotlight-title {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .spotlight-card,
  .trending-rail {
    min-height: auto;
  }

  .spotlight-card {
    min-height: 360px;
  }

  .spotlight-content {
    left: 18px;
    bottom: 18px;
    width: min(680px, calc(100% - 36px));
    padding: 16px 18px;
  }
}

@media (max-width: 640px) {
  .home-shell {
    padding: 18px 14px 28px;
  }

  .home-stack {
    gap: 24px;
  }

  .home-section-title {
    font-size: 1.45rem;
  }

  .spotlight-card {
    min-height: 260px;
  }

  .spotlight-content {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 14px 16px;
  }

  .spotlight-content::before {
    inset: 0;
    border-radius: 18px;
    background: rgba(8, 7, 18, 0.78);
  }

  .spotlight-kicker {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .spotlight-title {
    font-size: 1rem;
    line-height: 1.18;
    max-width: none;
    font-weight: 750;
    text-wrap: unset;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .spotlight-desc {
    margin-top: 8px;
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .trending-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
  }

  .trending-thumb {
    width: 88px;
    height: 72px;
  }

  .map-strip-title {
    font-size: 1.35rem;
  }

  .map-strip-desc {
    font-size: 0.9rem;
  }
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.news-media {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: var(--step-bg);
}

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

.news-body {
  padding: 16px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .latest-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.event-media-wrap {
  position: relative;
}

.event-media {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--step-bg);
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 10px 8px 8px;
  text-align: center;
}

.event-date-day {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}

.event-date-month {
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.event-body {
  padding: 16px;
}

.event-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-desc {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.figures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.figure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.figure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.figure-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.figure-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--step-bg);
}

.figure-copy {
  min-width: 0;
}

.figure-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.figure-role {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.figure-desc {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .figures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .figures-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.map-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.map-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.map-strip-media {
  min-height: 160px;
  background: var(--step-bg);
}

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

.map-strip-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-strip-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.map-strip-title {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.map-strip-desc {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
}

.map-strip-actions {
  margin-top: 16px;
}

.map-strip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.map-strip-button:hover {
  opacity: 0.92;
}

@media (min-width: 900px) {
  .map-strip-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 180px;
  }

  .map-strip-media {
    min-height: 180px;
  }

  .map-strip-body {
    padding: 26px 28px;
  }
}

@media (max-width: 640px) {
  .map-strip-title {
    font-size: 1.35rem;
  }

  .map-strip-desc {
    font-size: 0.9rem;
  }
}
