/* Study-area previews and linked article images; load after premium.css. */
body.mo-premium .mo-clusters {
  color: var(--mo-ink);
}

body.mo-premium .mo-clusters > .mo-section-head {
  margin-bottom: 12px;
}

body.mo-premium .mo-clusters > p {
  max-width: 78ch;
  margin: 0 0 24px;
  color: var(--mo-muted);
  font-size: 16px;
  line-height: 1.65;
}

body.mo-premium .mo-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

body.mo-premium .mo-cluster-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mo-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mo-ink);
  box-shadow: none;
}

body.mo-premium a.mo-cluster-cover {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}

body.mo-premium a.mo-cluster-cover > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

body.mo-premium .mo-cluster-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

body.mo-premium .mo-cluster-topic {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

body.mo-premium .mo-cluster-topic > a {
  color: var(--mo-blue);
  text-decoration: none;
  overflow-wrap: break-word;
}

body.mo-premium .mo-cluster-title {
  margin: 0 0 18px;
  color: var(--mo-ink);
  font-size: clamp(20px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}

body.mo-premium .mo-cluster-title > a {
  color: var(--mo-ink);
  text-decoration: none;
  overflow-wrap: break-word;
}

body.mo-premium .mo-cluster-reading {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.mo-premium .mo-cluster-reading > li {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mo-line);
  list-style: none;
}

body.mo-premium .mo-cluster-reading > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 0;
  color: var(--mo-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: break-word;
}

body.mo-premium a.mo-cluster-all {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  margin-top: auto;
  padding-top: 14px;
  color: var(--mo-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.mo-premium .mo-cluster-topic > a:hover,
body.mo-premium .mo-cluster-title > a:hover,
body.mo-premium .mo-cluster-reading > li > a:hover,
body.mo-premium a.mo-cluster-all:hover {
  color: var(--mo-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Native details keeps the additional areas available without a script. */
body.mo-premium details.mo-clusters-more {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

body.mo-premium .mo-clusters-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--mo-line);
  border-radius: 8px;
  background: var(--mo-soft);
  color: var(--mo-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

body.mo-premium .mo-clusters-more > summary::-webkit-details-marker {
  display: none;
}

body.mo-premium .mo-clusters-more > summary::marker {
  content: "";
}

body.mo-premium .mo-clusters-more > summary:hover,
body.mo-premium .mo-clusters-more[open] > summary {
  background: var(--mo-premium-pale);
  color: var(--mo-dark);
}

body.mo-premium .mo-clusters-more > summary .mo-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-left: auto;
  transform: rotate(0deg);
  transition: transform .15s ease;
}

body.mo-premium .mo-clusters-more[open] > summary .mo-icon {
  transform: rotate(90deg);
}

body.mo-premium .mo-clusters-more > .mo-cluster-grid {
  margin-top: 24px;
}

body.mo-premium .mo-clusters-more:not([open]) > .mo-cluster-grid {
  display: none;
}

body.mo-premium .mo-clusters :is(a, summary):focus-visible {
  outline: 3px solid var(--mo-blue) !important;
  outline-offset: 3px;
}

/* One shared wrapper for hub, directory and College Basics article images. */
body.mo-premium a.mo-card-image-link {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  line-height: 0;
  text-decoration: none;
}

body.mo-premium a.mo-card-image-link > img.mo-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

/* Inset focus remains visible inside the existing rounded image containers. */
body.mo-premium a.mo-card-image-link:focus-visible,
body.mo-premium a.mo-cluster-cover:focus-visible {
  outline: 3px solid var(--mo-blue) !important;
  outline-offset: -3px;
}

@media (max-width: 1100px) {
  body.mo-premium .mo-cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.mo-premium .mo-cluster-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.mo-premium .mo-cluster-content {
    padding: 18px;
  }

  body.mo-premium a.mo-cluster-all {
    font-size: 13px;
  }

  body.mo-premium .mo-clusters-more > summary {
    padding-right: 16px;
    padding-left: 16px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mo-premium .mo-clusters-more > summary .mo-icon {
    transition: none;
  }
}
