.home-main {
  max-width: none;
  padding: 0;
}

.home-shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 26px 58px;
}

.home-stack {
  display: grid;
  gap: 26px;
}

.home-panel,
.news-card,
.map-strip,
.home-note-card,
.home-analysis-card,
.home-interview-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(24, 24, 39, 0.08);
  overflow: hidden;
}

.home-front-deck {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(292px, 324px);
  gap: 16px;
  align-items: stretch;
}

.home-front-deck.has-no-side-rail {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.home-front-deck.has-no-front-rail {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 324px);
}

.home-front-deck.has-no-front-rail.has-no-side-rail {
  grid-template-columns: minmax(0, 1fr);
}

.home-front-deck.has-no-spotlight {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-front-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
}

.home-panel-head h2,
.home-section-title {
  margin: 0;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 800;
}

.home-panel-head a,
.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.home-panel-head a:hover,
.home-section-link:hover {
  text-decoration: underline;
}

.home-latest-list,
.home-ranked-list,
.home-events-list,
.home-figure-list {
  display: grid;
  padding: 0 16px 16px;
}

.home-latest-row,
.home-ranked-row,
.home-event-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 44%);
  padding: 13px 0;
  color: inherit;
  text-decoration: none;
}

.home-latest-row:first-child,
.home-ranked-row:first-child,
.home-event-row:first-child,
.home-figure-row:first-child {
  border-top: 0;
}

.home-news-time {
  display: grid;
  width: 42px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--primary-contrast);
  font-size: 0.7rem;
  font-weight: 800;
}

.home-rank {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
}

.home-row-copy {
  min-width: 0;
}

.home-row-title {
  display: -webkit-box;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.home-row-meta {
  display: -webkit-box;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-latest-row:hover .home-row-title,
.home-ranked-row:hover .home-row-title,
.home-event-row:hover .home-row-title,
.home-figure-row:hover .home-row-title,
.home-spotlight-trend:hover h3,
.home-note-card:hover h3,
.home-analysis-card:hover h3,
.home-interview-card:hover h3,
.news-card:hover .news-title {
  color: var(--primary);
}

.home-spotlight-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(384px, 1fr);
  min-height: 512px;
}

.home-spotlight-card.has-trends {
  grid-template-rows: minmax(384px, 1fr) auto;
}

.home-spotlight-main {
  position: relative;
  display: block;
  min-height: 384px;
  color: inherit;
  text-decoration: none;
}

.home-spotlight-card.has-trends .home-spotlight-main {
  bottom: auto;
}

.home-spotlight-media {
  position: absolute;
  inset: 0;
  background: #173d36;
}

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

.home-spotlight-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(13, 19, 32, 0.08) 0%, rgba(13, 19, 32, 0.24) 40%, rgba(13, 19, 32, 0.86) 100%),
    linear-gradient(90deg, rgba(13, 19, 32, 0.78) 0%, rgba(13, 19, 32, 0.48) 48%, rgba(13, 19, 32, 0.14) 100%);
}

.home-image-badge {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 14px;
  max-width: calc(100% - 28px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0a765f;
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-spotlight-copy {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 26px;
  max-width: 620px;
  color: #ffffff;
}

.home-spotlight-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.04;
  font-weight: 900;
}

.home-spotlight-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.4;
}

.home-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.home-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(106, 63, 224, 0.24);
}

.home-spotlight-main:hover .home-primary-link {
  background: var(--primary-hover);
}

.home-spotlight-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
}

.home-spotlight-trends {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface), transparent 4%);
}

.home-spotlight-trend {
  min-height: 112px;
  border-left: 1px solid color-mix(in srgb, var(--border), transparent 44%);
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.home-spotlight-trend:first-child {
  border-left: 0;
}

.home-spotlight-trend span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-spotlight-trend h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.15;
}

.home-side-tabs {
  position: relative;
  display: flex;
  min-height: 512px;
  flex-direction: column;
}

.home-side-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.home-side-tab-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 16px 10px;
}

.home-side-tab-controls label {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.home-side-pane-head {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 4px;
}

.home-side-pane-head a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.home-side-pane-head a:hover {
  text-decoration: underline;
}

#home-side-events:checked ~ .home-side-tab-controls label[for="home-side-events"],
#home-side-figures:checked ~ .home-side-tab-controls label[for="home-side-figures"] {
  border-color: color-mix(in srgb, var(--primary), transparent 72%);
  background: var(--primary-soft);
  color: var(--primary);
}

.home-tab-pane {
  display: none;
}

#home-side-events:checked ~ .home-side-tab-body .home-events-pane,
#home-side-figures:checked ~ .home-side-tab-body .home-figures-pane {
  display: block;
}

.home-event-date {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  text-align: center;
}

.home-event-date span {
  align-self: end;
  font-size: 0.66rem;
  line-height: 1;
  text-transform: uppercase;
}

.home-event-date strong {
  align-self: start;
  font-size: 1.05rem;
  line-height: 1;
}

.home-figure-feature {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-figure-media {
  position: relative;
  height: 196px;
  background: #173d36;
}

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

.home-figure-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(13, 19, 32, 0.08), rgba(13, 19, 32, 0.56));
}

.home-figure-media span {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-figure-copy {
  padding: 15px 16px 12px;
}

.home-figure-copy h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 900;
}

.home-figure-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.4;
}

.home-figure-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 44%);
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

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

.home-lane-head p {
  max-width: 600px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.42;
}

.latest-grid,
.home-notes-grid,
.home-analysis-grid,
.home-interview-grid {
  display: grid;
  gap: 12px;
}

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

.news-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover,
.home-note-card:hover,
.home-analysis-card:hover,
.home-interview-card:hover {
  transform: translateY(-2px);
}

.news-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--step-bg);
}

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

.news-body {
  padding: 15px;
}

.news-kicker {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.news-title {
  display: -webkit-box;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-desc {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.home-notes-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-note-card {
  min-height: 138px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.home-note-card span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(241, 182, 67, 0.20);
  color: #8a5a00;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-note-card h3,
.home-analysis-card h3,
.home-interview-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.18;
}

.home-note-card p,
.home-analysis-card p,
.home-interview-card p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.36;
}

.home-analysis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-analysis-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  min-height: 132px;
  padding: 13px;
  color: inherit;
  text-decoration: none;
}

.home-analysis-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.35rem;
}

.home-analysis-card:nth-child(2) .home-analysis-mark {
  background: rgba(10, 118, 95, 0.12);
  color: #0a765f;
}

.home-analysis-card:nth-child(3) .home-analysis-mark {
  background: rgba(55, 111, 200, 0.13);
  color: #376fc8;
}

.home-analysis-card:nth-child(4) .home-analysis-mark {
  background: rgba(214, 80, 114, 0.14);
  color: #d65072;
}

.home-interview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-interview-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-interview-media {
  aspect-ratio: 16 / 10;
  background: #173d36;
}

.home-interview-copy {
  padding: 12px;
}

.map-strip {
  margin-top: 0;
}

.map-strip-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 190px;
  align-items: stretch;
}

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

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

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

.map-strip-kicker {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-strip-title {
  margin: 0;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 900;
}

.map-strip-desc {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

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

.map-strip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 10px 15px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.map-strip-button:hover {
  background: var(--primary-hover);
}

@media (max-width: 1240px) {
  .home-front-deck {
    grid-template-columns: minmax(0, 1fr) minmax(292px, 360px);
  }

  .home-front-deck.has-no-side-rail,
  .home-front-deck.has-no-front-rail,
  .home-front-deck.has-no-front-rail.has-no-side-rail {
    grid-template-columns: 1fr;
  }

  .home-spotlight-card {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .home-side-tabs {
    min-height: 0;
  }

  .home-notes-grid,
  .home-interview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .latest-grid,
  .home-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-shell {
    padding: 14px 16px 44px;
  }

  .home-stack {
    gap: 22px;
  }

  .home-front-deck,
  .latest-grid,
  .home-notes-grid,
  .home-analysis-grid,
  .home-interview-grid,
  .map-strip-grid {
    grid-template-columns: 1fr;
  }

  .home-spotlight-card {
    min-height: 0;
  }

  .home-spotlight-main,
  .home-spotlight-card.has-trends .home-spotlight-main {
    position: relative;
    inset: auto;
    min-height: 0;
  }

  .home-spotlight-media {
    position: relative;
    min-height: 270px;
  }

  .home-spotlight-copy {
    position: static;
    max-width: none;
    padding: 22px 18px;
    color: var(--text);
  }

  .home-spotlight-copy h2 {
    font-size: 1.9rem;
  }

  .home-spotlight-copy p,
  .home-spotlight-meta {
    color: var(--text-muted);
  }

  .home-spotlight-trends {
    position: static;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
  }

  .home-spotlight-trend {
    min-height: 0;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 44%);
    border-left: 0;
  }

  .home-spotlight-trend:first-child {
    border-top: 0;
  }

  .home-section-head {
    display: block;
  }

  .home-lane-head p {
    margin-top: 8px;
  }

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

@media (max-width: 520px) {
  .home-panel-head h2,
  .home-section-title,
  .map-strip-title {
    font-size: 1.42rem;
  }

  .home-spotlight-copy h2 {
    font-size: 1.62rem;
  }

  .home-analysis-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .home-analysis-mark {
    width: 54px;
    height: 54px;
    font-size: 1rem;
  }
}
