.mj-wiki-hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 25%, rgba(198, 255, 49, .18), transparent 24rem),
    #0c3529;
}

.mj-wiki-hero h1 {
  max-width: 15ch;
  color: #fff;
}

.mj-wiki-hero .mj-eyebrow {
  color: #c6ff31;
}

.mj-wiki-hero .mj-lead {
  color: rgba(255, 255, 255, .78);
}

.mj-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .66);
  font-size: .85rem;
}

.mj-breadcrumbs a {
  color: inherit;
}

.mj-breadcrumbs a:hover {
  color: #c6ff31;
}

.mj-legal-note {
  max-width: 55rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .06);
  color: inherit;
  font-size: .9rem;
}

.mj-filter-panel {
  display: grid;
  grid-template-columns: minmax(14rem, 1.5fr) repeat(2, minmax(10rem, 1fr));
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid #dce4de;
  border-radius: 1.5rem;
  background: #f4f6f2;
}

.mj-filter-panel label {
  display: grid;
  gap: .45rem;
  min-width: 0;
  color: #405149;
  font-size: .8rem;
  font-weight: 700;
}

.mj-filter-panel input,
.mj-filter-panel select {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1px solid #cbd5ce;
  border-radius: .9rem;
  background: #fff;
  color: #102a21;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.mj-filter-panel__search {
  grid-column: span 2;
}

.mj-filter-panel__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: .75rem;
  align-items: center;
}

.mj-alphabet {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  margin: 1.5rem 0 3rem;
  padding: .2rem 0 .7rem;
  scrollbar-width: thin;
}

.mj-alphabet a {
  display: grid;
  min-width: 2.55rem;
  min-height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d5ddd7;
  border-radius: 50%;
  background: #fff;
  color: #17382d;
  font-size: .84rem;
  font-weight: 700;
}

.mj-alphabet a:first-child {
  min-width: 3.5rem;
  border-radius: 999px;
}

.mj-alphabet a:hover,
.mj-alphabet a:focus-visible,
.mj-alphabet .is-active {
  border-color: #123f30;
  background: #123f30;
  color: #fff;
}

.mj-results-heading {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mj-results-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.mj-results-heading p {
  max-width: 32rem;
  margin: 0;
  color: #647169;
}

.mj-wiki-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.mj-wiki-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce3dd;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(16, 55, 43, .04);
}

.mj-wiki-card__media {
  display: grid;
  height: 13rem;
  place-items: center;
  overflow: hidden;
  background: #dfe9df;
  color: #1d4738;
  font-size: 1.1rem;
  font-weight: 800;
}

.mj-wiki-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.mj-wiki-card:hover .mj-wiki-card__media img {
  transform: scale(1.035);
}

.mj-wiki-card__body {
  padding: 1.35rem;
}

.mj-wiki-card h2,
.mj-wiki-card h3 {
  margin: .35rem 0 .7rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.mj-wiki-card__body > p:not(.mj-eyebrow) {
  color: #5b6861;
  font-size: .92rem;
}

.mj-wiki-card--compact {
  min-height: 13rem;
}

.mj-wiki-single .mj-button--outline {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}

.mj-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  border: 1px solid #d8e0da;
  border-radius: 1.5rem;
  background: #f5f6f2;
}

.mj-fact-strip > div {
  display: grid;
  gap: .35rem;
  padding: 1.25rem;
  border-right: 1px solid #d8e0da;
}

.mj-fact-strip > div:last-child {
  border-right: 0;
}

.mj-fact-strip span {
  color: #647169;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mj-fact-strip strong {
  overflow-wrap: anywhere;
}

.mj-strain-gallery {
  margin-bottom: clamp(3rem, 7vw, 7rem);
}

.mj-strain-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mj-strain-gallery figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #f0f2ee;
}

.mj-strain-gallery figure > a:first-child {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mj-strain-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-strain-gallery figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  padding: .85rem 1rem;
  color: #59675f;
  font-size: .75rem;
}

.mj-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.mj-record-sidebar {
  position: sticky;
  top: var(--mj-sticky-offset, 8rem);
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #eef2ec;
}

.mj-record-sidebar > h2 {
  margin-top: 0;
}

.mj-record-sidebar section {
  padding: 1rem 0;
  border-top: 1px solid #d3ddd5;
}

.mj-record-sidebar h3 {
  margin-top: 0;
  font-size: .85rem;
  text-transform: uppercase;
}

.mj-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mj-tag-list li {
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #fff;
  color: #28483d;
  font-size: .78rem;
}

@media (max-width: 1100px) {
  .mj-wiki-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mj-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mj-wiki-grid,
  .mj-strain-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-record-layout {
    grid-template-columns: 1fr;
  }

  .mj-record-sidebar {
    position: static;
  }

  .mj-fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-fact-strip > div:nth-child(2) {
    border-right: 0;
  }

  .mj-fact-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid #d8e0da;
  }
}

@media (max-width: 580px) {
  .mj-filter-panel,
  .mj-wiki-grid,
  .mj-strain-gallery__grid,
  .mj-fact-strip {
    grid-template-columns: 1fr;
  }

  .mj-filter-panel__search {
    grid-column: auto;
  }

  .mj-fact-strip > div {
    border-right: 0;
    border-bottom: 1px solid #d8e0da;
  }

  .mj-fact-strip > div:last-child {
    border-bottom: 0;
  }

  .mj-results-heading {
    display: grid;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mj-wiki-card__media img {
    transition: none;
  }
}
