/* OpeningMatrix study home — slim landing for product_pack=study. */

.home-openingmatrix .om-home {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 3.5rem;
}

.home-openingmatrix .om-home-hero {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.home-openingmatrix .om-home-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text, #f4f4f0);
}

.home-openingmatrix .om-home-hero .lede {
  margin: 0;
  max-width: 36rem;
  color: var(--muted, #a7a79c);
  font-size: 1.05rem;
  line-height: 1.55;
}

.home-openingmatrix .om-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.home-openingmatrix .om-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-openingmatrix .om-home-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold, #39ff14) 18%, transparent);
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--gold, #39ff14) 8%, transparent),
      transparent 42%
    ),
    var(--panel, #141414);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.home-openingmatrix .om-home-card:hover {
  border-color: color-mix(in srgb, var(--gold, #39ff14) 45%, transparent);
  transform: translateY(-2px);
}

.home-openingmatrix .om-home-card-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.home-openingmatrix .om-home-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.home-openingmatrix .om-home-card p {
  margin: 0;
  color: var(--muted, #a7a79c);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-openingmatrix .om-home-community {
  margin-top: clamp(2.25rem, 5.5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 22rem;
}

.home-openingmatrix .om-home-community-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.15rem;
}

.home-openingmatrix .om-home-community-copy {
  max-width: 36rem;
}

.home-openingmatrix .om-home-community-copy h2 {
  margin: 0.2rem 0 0.45rem;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.home-openingmatrix .om-home-community-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted, #a7a79c);
  line-height: 1.5;
}

.home-openingmatrix .om-home-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-openingmatrix .om-home-community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-openingmatrix .om-home-course {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold, #39ff14) 16%, transparent);
  background: var(--panel, #141414);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.home-openingmatrix .om-home-course:hover,
.home-openingmatrix .om-home-course:focus-visible {
  border-color: color-mix(in srgb, var(--gold, #39ff14) 42%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}

.home-openingmatrix .om-home-course-cover,
.home-openingmatrix .om-home-course-mark {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #769656;
}

.home-openingmatrix .om-home-course-mark {
  display: grid;
  place-items: center;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--gold, #39ff14) 28%, #2a3d24),
      #1a1a18 70%
    );
}

.home-openingmatrix .om-home-course-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem 1rem;
}

.home-openingmatrix .om-home-course-body strong {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-openingmatrix .om-home-course-meta {
  color: var(--muted, #a7a79c);
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-openingmatrix .om-home-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.home-openingmatrix .om-home-course-tag {
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--gold, #39ff14) 22%, transparent);
  color: color-mix(in srgb, var(--gold, #39ff14) 75%, #fff);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.home-openingmatrix .om-home-community-empty {
  margin: 0;
  min-height: 10rem;
  display: grid;
  place-items: center;
  padding: 1.75rem 1.25rem;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--gold, #39ff14) 28%, transparent);
  color: var(--muted, #a7a79c);
  line-height: 1.5;
  text-align: center;
}

.home-openingmatrix .om-home-community-empty a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-openingmatrix .om-home.home-guest {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-openingmatrix .home-guest-rail {
  align-self: flex-start;
}

.home-openingmatrix #home-guest-panel-leaderboard {
  padding-top: 0.25rem;
}

.home-openingmatrix #home-guest-panel-leaderboard .members-page.leaderboard-page {
  width: 100%;
}

@media (max-width: 980px) {
  .home-openingmatrix .om-home-community-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-openingmatrix .om-home-grid {
    grid-template-columns: 1fr;
  }

  .home-openingmatrix .om-home-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-openingmatrix .om-home-community-grid {
    grid-template-columns: 1fr;
  }
}
