/**
 * ConceptRecall Home v2.2 — premium homepage experience.
 * Clean rail system: every card row scrolls inside its section without
 * forcing page width, while keeping cards readable and premium.
 */

.cr-home {
  --cr-home-rail-gap: 1rem;
  display: grid;
  gap: clamp(2.1rem, 3.8vw, 4.25rem);
  min-width: 0;
  max-width: 100%;
}

.cr-home > *,
.cr-rail,
.cr-band,
.cr-steps,
.cr-trust,
.cr-community,
.cr-home-search {
  min-width: 0;
  max-width: 100%;
}

/* The main theme shell handles normal page padding. On the homepage we keep
   the first section tight to avoid a large empty area above the hero. */
.cr-main--front .cr-home {
  margin-top: 0;
}

.cr-main--front .cr-home__hero {
  padding-top: clamp(1rem, 2.4vw, 2.35rem);
}

.cr-eyebrow {
  display: inline-block;
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr-warm, #c8633f);
}

.cr-eyebrow--light {
  color: rgba(255, 255, 255, 0.74);
}

/* ============ HERO ============ */
.cr-home__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.25rem);
  padding: clamp(1.05rem, 2.7vw, 2.5rem) 0 clamp(0.9rem, 2.4vw, 1.7rem);
}

.cr-home__hero-copy {
  min-width: 0;
}


.cr-home__hero-copy,
.cr-home__daily {
  align-self: center;
}


.cr-home__hero-title {
  max-width: 11.5ch;
  margin: 0.7rem 0 1rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.97;
  letter-spacing: -0.058em;
  color: var(--cr-text, #211f1b);
}

.cr-home__hero-lead {
  max-width: 58ch;
  margin: 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.08rem, 1.75vw, 1.38rem);
  line-height: 1.48;
  color: var(--cr-text-muted, #5d5953);
}

.cr-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.cr-home__hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 1rem;
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.88rem;
  color: var(--cr-text-faint, #908a80);
}

.cr-home__hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cr-home__hero-proof span::before {
  content: '';
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: rgba(45, 125, 110, 0.5);
}

.cr-home__daily {
  position: relative;
  display: grid;
  min-height: 255px;
  padding: clamp(1.55rem, 3vw, 2.35rem);
  align-content: start;
  color: var(--cr-text, #211f1b);
  text-decoration: none;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.94));
  border: 1px solid rgba(217, 229, 226, 0.92);
  border-radius: var(--cr-radius-lg, 20px);
  box-shadow: 0 18px 50px rgba(0, 63, 52, 0.08);
  transform: rotate(-1.1deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cr-home__daily::before,
.cr-home__daily::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: -1;
  background: #fff;
  border: 1px solid rgba(230, 225, 214, 0.85);
  border-radius: inherit;
  box-shadow: 0 12px 32px rgba(33, 31, 27, 0.08);
}

.cr-home__daily::before { transform: rotate(4deg) translate(18px, -8px); opacity: 0.72; }
.cr-home__daily::after { transform: rotate(-5deg) translate(-15px, 12px); opacity: 0.46; }

.cr-home__daily:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 24px 62px rgba(24, 47, 43, 0.16);
}

.cr-home__daily-flag,
.cr-home__daily-cat,
.cr-minicard__cat {
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cr-warm, #c8633f);
}

.cr-home__daily-cat {
  margin-top: 1rem;
  color: var(--cr-text-faint, #908a80);
}

.cr-home__daily-title {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
}

.cr-home__daily-teaser {
  display: block;
  margin-top: 0.6rem;
  color: var(--cr-text-muted, #5d5953);
}

.cr-home__daily-cta {
  display: block;
  margin-top: 1.3rem;
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cr-accent, #2d7d6e);
}

/* ============ SEARCH ============ */
.cr-home-search {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.25fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 5% 0%, rgba(45, 125, 110, 0.12), transparent 48%),
    linear-gradient(135deg, var(--cr-accent-soft, #e4f3f0), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(45, 125, 110, 0.16);
  border-radius: var(--cr-radius-xl, 28px);
  box-shadow: 0 12px 42px rgba(0, 63, 52, 0.045);
}

.cr-home-search--page {
  margin-top: 2rem;
}

.cr-home-search__title {
  margin: 0.35rem 0 0.35rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.45rem, 3vw, 2.12rem);
  line-height: 1.08;
}

.cr-home-search__text {
  margin: 0;
  color: var(--cr-text-muted, #5d5953);
}

.cr-home-search__form {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--cr-border, #d9e5e2);
  border-radius: var(--cr-radius-full, 999px);
  box-shadow: 0 10px 34px rgba(0, 63, 52, 0.08);
}

.cr-home-search__form input {
  min-width: 0;
  flex: 1;
  padding: 0.95rem 1.1rem;
  font: inherit;
  color: var(--cr-text, #211f1b);
  border: 0;
  outline: none;
  background: transparent;
}

.cr-home-search__form button {
  flex-shrink: 0;
  padding: 0.85rem 1.35rem;
  font-family: var(--cr-font-sans, sans-serif);
  font-weight: 800;
  color: #fff;
  background: var(--cr-accent, #2d7d6e);
  border: 0;
  border-radius: var(--cr-radius-full, 999px);
  cursor: pointer;
}

/* ============ RAILS ============ */
.cr-rail {
  overflow: hidden;
}

.cr-rail__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.cr-rail__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.08;
  color: var(--cr-text, #211f1b);
}

.cr-rail__head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.cr-rail__hint,
.cr-rail__link {
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.88rem;
}

.cr-rail__hint {
  max-width: 34ch;
  color: var(--cr-text-faint, #908a80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-rail__link {
  color: var(--cr-accent, #2d7d6e);
  font-weight: 800;
  text-decoration: none;
}

.cr-rail__link:hover { text-decoration: underline; }

.cr-rail__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cr-rail__control {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cr-accent, #2d7d6e);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--cr-border, #d9e5e2);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(33, 31, 27, 0.06), 0 8px 20px rgba(33, 31, 27, 0.06);
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.cr-rail__control:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--cr-accent, #2d7d6e);
  background: var(--cr-accent-soft, #e4f3f0);
}

.cr-rail__control:disabled {
  cursor: default;
  opacity: 0.38;
}

.cr-rail__control[hidden] { display: none !important; }

.cr-rail__control:focus-visible {
  outline: 3px solid rgba(45, 125, 110, 0.25);
  outline-offset: 2px;
}

.cr-rail__track {
  display: flex;
  gap: var(--cr-home-rail-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0 0.65rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cr-rail__track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.cr-rail__track {
  --cr-rail-visible: 4;
  --cr-rail-item-size: calc((100% - ((var(--cr-rail-visible) - 1) * var(--cr-home-rail-gap))) / var(--cr-rail-visible));
}

.cr-rail__track > * {
  flex: 0 0 var(--cr-rail-item-size);
  min-width: 0;
  scroll-snap-align: start;
}

.cr-category-rail > * { flex-basis: var(--cr-rail-item-size); }

/* ============ CATEGORY CARDS ============ */
.cr-category-card {
  display: grid;
  align-content: start;
  min-height: 178px;
  padding: 1.18rem;
  color: var(--cr-text, #211f1b);
  text-decoration: none;
  background: var(--cr-bg-card, #fff);
  border: 1px solid var(--cr-border, #d9e5e2);
  border-radius: var(--cr-radius-md, 14px);
  box-shadow: 0 1px 0 rgba(0, 63, 52, 0.025);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cr-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--cr-accent, #2d7d6e);
  box-shadow: var(--cr-shadow-md, 0 10px 26px rgba(0, 0, 0, 0.08));
}

.cr-category-card__count {
  width: max-content;
  padding: 0.26rem 0.62rem;
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cr-accent, #2d7d6e);
  background: var(--cr-accent-soft, #e4f3f0);
  border-radius: var(--cr-radius-full, 999px);
}

.cr-category-card__title {
  margin-top: 0.95rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
}

.cr-category-card__desc {
  display: -webkit-box;
  margin-top: 0.45rem;
  color: var(--cr-text-muted, #5d5953);
  font-size: 0.88rem;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cr-category-card__cta {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--cr-accent, #2d7d6e);
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.84rem;
  font-weight: 800;
}

/* ============ MINI CARDS ============ */
.cr-minicard {
  display: flex;
  gap: 0.82rem;
  min-height: 150px;
  padding: 1.08rem;
  color: var(--cr-text, #211f1b);
  text-decoration: none;
  background: var(--cr-bg-card, #fff);
  border: 1px solid var(--cr-border, #d9e5e2);
  border-radius: var(--cr-radius-md, 14px);
  box-shadow: 0 1px 0 rgba(0, 63, 52, 0.025);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cr-minicard:hover {
  transform: translateY(-3px);
  border-color: var(--cr-accent, #2d7d6e);
  box-shadow: var(--cr-shadow-md, 0 10px 26px rgba(0, 0, 0, 0.08));
}

.cr-minicard:focus-visible,
.cr-category-card:focus-visible {
  outline: 3px solid rgba(45, 125, 110, 0.24);
  outline-offset: 3px;
}

.cr-minicard__rank {
  flex: 0 0 auto;
  align-self: center;
  min-width: 2.15rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cr-accent-soft, #e4f3f0);
  -webkit-text-stroke: 1px var(--cr-accent, #2d7d6e);
}

.cr-minicard__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cr-minicard__title {
  display: -webkit-box;
  margin-top: 0.28rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.23;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: normal;
  word-break: normal;
}

.cr-minicard__teaser {
  display: -webkit-box;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--cr-text-muted, #5d5953);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cr-minicard__stat {
  margin-top: auto;
  padding-top: 0.65rem;
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cr-text-faint, #908a80);
}

.cr-minicard__stat--save { color: var(--cr-accent, #2d7d6e); }
.cr-minicard--featured { border-color: rgba(0, 63, 52, 0.18); background: var(--cr-warm-soft, #edf5f3); }

.cr-rail__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cr-warm, #c8633f);
  box-shadow: 0 0 0 0 rgba(0, 63, 52, 0.42);
  animation: cr-pulse 2s infinite;
}

@keyframes cr-pulse {
  70% { box-shadow: 0 0 0 10px rgba(0, 63, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 63, 52, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cr-rail__pulse { animation: none; }
}

/* ============ LEVELS / CTA BANDS ============ */
.cr-band {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  padding: clamp(1.65rem, 3vw, 2.7rem);
  text-align: center;
  background: var(--cr-bg-sunken, #eef5f4);
  border: 1px solid rgba(0, 63, 52, 0.04);
  border-radius: var(--cr-radius-xl, 28px);
  box-shadow: 0 1px 0 rgba(0, 63, 52, 0.025);
}

.cr-band--levels {
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: start;
  text-align: left;
  align-items: center;
}

.cr-band--cta {
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 125, 110, 0.12), transparent 36%),
    linear-gradient(135deg, var(--cr-accent-soft, #e4f3f0), rgba(255, 255, 255, 0.76));
}

.cr-band__title {
  margin: 0.2rem 0 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.cr-band__text {
  max-width: 58ch;
  margin: 0;
  color: var(--cr-text-muted, #5d5953);
}

.cr-difficulty {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.cr-difficulty__item {
  display: grid;
  min-width: 128px;
  padding: 0.95rem 1.1rem;
  color: var(--cr-text, #211f1b);
  text-decoration: none;
  background: var(--cr-bg-card, #fff);
  border: 1px solid var(--cr-border, #d9e5e2);
  border-radius: var(--cr-radius-md, 14px);
  box-shadow: 0 1px 0 rgba(0, 63, 52, 0.025);
}

.cr-difficulty__label {
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.84rem;
  font-weight: 850;
}

.cr-difficulty__count {
  color: var(--cr-text-faint, #908a80);
  font-size: 0.82rem;
}

/* ============ HOW IT WORKS / TRUST ============ */
.cr-steps,
.cr-trust {
  padding: clamp(1.75rem, 3.3vw, 2.75rem);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--cr-border, #d9e5e2);
  border-radius: var(--cr-radius-xl, 28px);
  box-shadow: 0 12px 36px rgba(0, 63, 52, 0.045);
}

.cr-steps__head,
.cr-trust__copy {
  max-width: 720px;
}

.cr-steps__title,
.cr-trust__copy h2 {
  margin: 0.35rem 0 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.cr-steps__lead,
.cr-trust__copy p {
  margin: 0.55rem 0 0;
  color: var(--cr-text-muted, #5d5953);
}

.cr-steps__grid,
.cr-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.cr-step,
.cr-trust__grid > div {
  min-width: 0;
  padding: 1.05rem;
  background: var(--cr-bg-sunken, #eef5f4);
  border-radius: var(--cr-radius-md, 14px);
}

.cr-step span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
  background: var(--cr-accent, #2d7d6e);
  border-radius: 50%;
  font-family: var(--cr-font-sans, sans-serif);
  font-weight: 850;
}

.cr-step h3,
.cr-trust__grid strong {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: 1.03rem;
  line-height: 1.2;
}

.cr-step p,
.cr-trust__grid span {
  display: block;
  margin: 0;
  color: var(--cr-text-muted, #5d5953);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ============ COMMUNITY CTA ============ */
.cr-community {
  padding: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.13), transparent 35%),
    linear-gradient(135deg, var(--cr-accent, #2d7d6e), #1f6b5f);
  border-radius: var(--cr-radius-xl, 28px);
  box-shadow: 0 20px 58px rgba(45, 125, 110, 0.18);
}

.cr-community__inner {
  max-width: 760px;
  margin-inline: auto;
}

.cr-community__title {
  margin: 0.4rem 0 0.65rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.cr-community__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cr-community__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.cr-community__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  color: var(--cr-text, #211f1b);
  text-decoration: none;
  background: #fff;
  border: 0;
  border-radius: var(--cr-radius-full, 999px);
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.cr-community__btn-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
  border-radius: 50%;
  background: var(--cr-accent, #2d7d6e);
}

.cr-community__btn--whatsapp .cr-community__btn-icon { background: #25d366; }
.cr-community__btn--facebook .cr-community__btn-icon { background: #1877f2; }
.cr-community__btn--copy .cr-community__btn-icon { background: var(--cr-warm, #c8633f); }
.cr-community__btn.is-copied { box-shadow: 0 0 0 3px rgba(255,255,255,0.28); }

/* ============ SEARCH RESULTS ============ */
.cr-search-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cr-empty-state {
  padding: 2rem;
  text-align: center;
  background: var(--cr-bg-sunken, #eef5f4);
  border-radius: var(--cr-radius-lg, 18px);
}

.cr-empty-state h3 {
  margin-top: 0;
  font-family: var(--cr-font-serif, Georgia, serif);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 1180px) {
  .cr-rail__track { --cr-rail-visible: 4; }
}


@media (max-width: 1180px) and (min-width: 981px) {
  .cr-rail__track { --cr-rail-visible: 3; }
}

@media (max-width: 980px) {
  .cr-home__hero,
  .cr-home-search,
  .cr-band--levels {
    grid-template-columns: 1fr;
  }
  .cr-steps__grid,
  .cr-trust__grid,
  .cr-search-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cr-rail__track {
    --cr-rail-visible: 2;
  }
}

@media (max-width: 640px) {
  .cr-home {
    gap: 2.25rem;
  }
  .cr-home__hero {
    grid-template-columns: 1fr;
    padding-top: 1.4rem;
  }
  .cr-home__hero-title {
    max-width: 12ch;
  }
  .cr-home__daily {
    min-height: 220px;
  }
  .cr-home-search {
    padding: 1.2rem;
  }
  .cr-home-search__form {
    flex-direction: column;
    border-radius: var(--cr-radius-md, 14px);
  }
  .cr-home-search__form button {
    width: 100%;
  }
  .cr-rail__head {
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
  }
  .cr-rail__head-right {
    width: 100%;
    justify-content: space-between;
  }
  .cr-rail__hint {
    white-space: normal;
  }
  .cr-rail__track > *,
  .cr-category-rail > * {
    flex-basis: min(320px, 86vw);
  }
  .cr-steps__grid,
  .cr-trust__grid,
  .cr-search-results__grid {
    grid-template-columns: 1fr;
  }
  .cr-community__actions {
    flex-direction: column;
  }
  .cr-community__btn {
    justify-content: center;
  }
}


/* =====================================================================
   v30 hero headline color polish
   ---------------------------------------------------------------------
   Three-line headline with academic ink + teal + warm accent, inspired by
   premium learning products but still restrained for a professional site.
   ===================================================================== */
.cr-home__hero-title--split {
  display: grid;
  gap: 0.02em;
  max-width: 10.8ch;
}

.cr-home__hero-line {
  display: block;
}

.cr-home__hero-line--ink {
  color: var(--cr-text, #211f1b);
}

.cr-home__hero-line--accent {
  color: var(--cr-accent, #2d7d6e);
  font-style: italic;
}

.cr-home__hero-line--warm {
  color: var(--cr-warm, #c8633f);
}

@media (max-width: 640px) {
  .cr-home__hero-title--split {
    max-width: 9.8ch;
  }
}


/* v43 color-accurate Academic Prestige palette.
   Layout, title font, title size, and 3-line hero style are preserved. */
.cr-home-search {
  background:
    radial-gradient(circle at 6% 8%, rgba(228, 243, 240, 0.92), transparent 50%),
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.86), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,250,249,0.92));
  border-color: rgba(0, 63, 52, 0.10);
  box-shadow: 0 18px 54px rgba(0, 63, 52, 0.055);
}

.cr-band {
  background: rgba(238, 245, 244, 0.76);
  border-color: rgba(0, 63, 52, 0.06);
  box-shadow: 0 1px 0 rgba(0, 63, 52, 0.02);
}

.cr-band--cta {
  background:
    radial-gradient(circle at 12% 0%, rgba(228, 243, 240, 0.78), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(244,250,249,0.9));
}

.cr-steps,
.cr-trust {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 63, 52, 0.10);
  box-shadow: 0 14px 42px rgba(0, 63, 52, 0.045);
}

.cr-step,
.cr-trust__grid > div {
  background: rgba(238, 245, 244, 0.78);
}

.cr-category-card,
.cr-minicard {
  border-color: rgba(0, 63, 52, 0.10);
  box-shadow: 0 1px 0 rgba(0, 63, 52, 0.025);
}

.cr-minicard--featured {
  background: rgba(238, 245, 244, 0.9);
  border-color: rgba(0, 63, 52, 0.14);
}

.cr-home__daily {
  border-color: rgba(217, 229, 226, 0.95);
  box-shadow: 0 18px 54px rgba(0, 63, 52, 0.085);
}

.cr-home__daily::before,
.cr-home__daily::after {
  border-color: rgba(217, 229, 226, 0.76);
}

.cr-home__daily:hover {
  box-shadow: 0 24px 64px rgba(0, 63, 52, 0.11);
}

.cr-community {
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.12), transparent 35%),
    linear-gradient(135deg, #003f34, #1a6d5d);
  box-shadow: 0 22px 64px rgba(0, 63, 52, 0.22);
}


/* =====================================================================
   v44 Search section reference adaptation
   ---------------------------------------------------------------------
   Only the search section is redesigned to match the premium reference:
   centered headline, large pill search field, search icon, and trending
   chips. Homepage hero/layout stays unchanged.
   ===================================================================== */
.cr-home-search--feature {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: clamp(1.55rem, 3vw, 2.2rem);
  padding: clamp(3.1rem, 5.7vw, 5.15rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 3%, rgba(255, 250, 228, 0.72), transparent 34%),
    radial-gradient(circle at 0% 95%, rgba(228, 243, 240, 0.86), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.985) 0%, rgba(255,255,255,0.94) 54%, rgba(245,250,249,0.95) 100%);
  border: 1px solid rgba(0, 63, 52, 0.09);
  border-radius: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow:
    0 28px 80px rgba(0, 63, 52, 0.075),
    0 1px 0 rgba(255,255,255,0.72) inset;
}

.cr-home-search--feature .cr-home-search__copy {
  max-width: 860px;
  margin-inline: auto;
}

.cr-home-search--feature .cr-home-search__title {
  margin: 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.034em;
  color: var(--cr-accent, #003f34);
}

.cr-home-search--feature .cr-home-search__form {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 820px);
  min-height: clamp(4.25rem, 6vw, 5.35rem);
  gap: 0.65rem;
  padding: 0.5rem;
  padding-left: clamp(1.35rem, 2.2vw, 2rem);
  background: rgba(246, 250, 250, 0.94);
  border: 1px solid rgba(0, 63, 52, 0.14);
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(0, 63, 52, 0.07),
    inset 0 1px 1px rgba(0, 63, 52, 0.035);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.cr-home-search--feature .cr-home-search__form:focus-within {
  transform: translateY(-1px);
  border-color: rgba(0, 63, 52, 0.26);
  box-shadow:
    0 18px 44px rgba(0, 63, 52, 0.105),
    0 0 0 5px rgba(228, 243, 240, 0.68);
}

.cr-home-search__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  color: rgba(24, 28, 29, 0.58);
  font-size: 2.05rem;
  line-height: 1;
  transform: rotate(-18deg);
}

.cr-home-search--feature .cr-home-search__form input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 clamp(0.75rem, 1.6vw, 1rem);
  font-family: var(--cr-font-sans, system-ui, sans-serif);
  font-size: clamp(1.05rem, 1.65vw, 1.42rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--cr-text, #181c1d);
}

.cr-home-search--feature .cr-home-search__form input::placeholder {
  color: rgba(64, 73, 69, 0.68);
}

.cr-home-search--feature .cr-home-search__form button {
  align-self: stretch;
  min-width: clamp(7.2rem, 11vw, 10rem);
  padding-inline: clamp(1.25rem, 2vw, 2.25rem);
  border-radius: 999px;
  background: var(--cr-accent, #003f34);
  color: #fff;
  font-size: clamp(0.95rem, 1.35vw, 1.18rem);
  box-shadow: 0 10px 24px rgba(0, 63, 52, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cr-home-search--feature .cr-home-search__form button:hover,
.cr-home-search--feature .cr-home-search__form button:focus-visible {
  transform: translateY(-1px);
  background: var(--cr-accent-hover, #005244);
  box-shadow: 0 14px 30px rgba(0, 63, 52, 0.24);
}

.cr-home-search__trending {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.78rem;
  margin-top: 0.2rem;
  font-family: var(--cr-font-sans, system-ui, sans-serif);
}

.cr-home-search__trending > span {
  color: color-mix(in srgb, var(--cr-text, #181c1d) 72%, transparent);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cr-home-search__trending a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 1.35rem;
  border-radius: 999px;
  background: rgba(238, 245, 244, 0.86);
  border: 1px solid rgba(0, 63, 52, 0.11);
  color: var(--cr-text, #181c1d);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.cr-home-search__trending a:hover,
.cr-home-search__trending a:focus-visible {
  transform: translateY(-1px);
  color: var(--cr-accent, #003f34);
  border-color: rgba(0, 63, 52, 0.24);
  background: rgba(255,255,255,0.92);
}

@media (max-width: 760px) {
  .cr-home-search--feature {
    padding: 2.25rem 1rem;
    border-radius: 1.65rem;
    gap: 1.25rem;
  }

  .cr-home-search--feature .cr-home-search__title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .cr-home-search--feature .cr-home-search__form {
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: auto;
    border-radius: 1.55rem;
    padding: 0.9rem;
  }

  .cr-home-search--feature .cr-home-search__form button {
    grid-column: 1 / -1;
    min-height: 3.2rem;
    width: 100%;
    margin-top: 0.45rem;
  }

  .cr-home-search__trending {
    gap: 0.5rem;
  }

  .cr-home-search__trending > span {
    width: 100%;
  }

  .cr-home-search__trending a {
    min-height: 2rem;
    padding-inline: 0.95rem;
    font-size: 0.78rem;
  }
}


/* v46 premium homepage upgrade: study-area cards and learning paths.
   This keeps the approved hero/search/layout, but upgrades two sections. */
.cr-rail__subtitle {
  margin: 0.5rem 0 0;
  max-width: 46ch;
  color: var(--cr-text-muted, #404945);
  font-size: clamp(0.96rem, 1.4vw, 1.12rem);
  line-height: 1.55;
}

.cr-rail__link--caps {
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.cr-study-area .cr-rail__head {
  align-items: flex-start;
  margin-bottom: clamp(1.25rem, 2.4vw, 1.9rem);
}

.cr-study-area__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
}

.cr-study-area__track {
  --cr-rail-visible: 4;
}

.cr-category-card--premium {
  position: relative;
  min-height: clamp(220px, 19vw, 270px);
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 239, 216, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
  border-color: rgba(191, 201, 195, 0.58);
  border-radius: 1.1rem;
  box-shadow: 0 16px 38px rgba(0, 43, 32, 0.055);
}

.cr-category-card--premium::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cr-card-accent, var(--cr-accent, #002b20));
  opacity: 0.92;
}

.cr-card-accent--0 { --cr-card-accent: #4aa391; }
.cr-card-accent--1 { --cr-card-accent: #d57b5c; }
.cr-card-accent--2 { --cr-card-accent: #c7a04a; }
.cr-card-accent--3 { --cr-card-accent: #7f9fd1; }

.cr-category-card--premium:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 43, 32, 0.18);
  box-shadow: 0 24px 58px rgba(0, 43, 32, 0.10);
}

.cr-category-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.cr-category-card__icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--cr-primary, var(--cr-accent, #002b20));
  background: rgba(226, 227, 224, 0.52);
  border: 1px solid rgba(191, 201, 195, 0.52);
  border-radius: 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.cr-category-card--premium .cr-category-card__count {
  margin-left: auto;
  padding: 0.33rem 0.85rem;
  color: var(--cr-card-accent, var(--cr-accent, #002b20));
  background: rgba(180, 239, 216, 0.32);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cr-category-card--premium .cr-category-card__title {
  margin-top: auto;
  padding-top: clamp(1.8rem, 3vw, 2.7rem);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  color: var(--cr-primary, #002b20);
}

.cr-category-card--premium .cr-category-card__desc {
  margin-top: 0.7rem;
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  line-height: 1.5;
  color: var(--cr-text-muted, #404945);
}

.cr-category-card--premium .cr-category-card__cta {
  padding-top: 1.15rem;
  color: var(--cr-primary, #002b20);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Premium learning-path cards */
.cr-learning-paths {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 2.4vw, 2rem);
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.9), transparent 34%),
    linear-gradient(180deg, rgba(249,249,247,0.55), rgba(244,249,248,0.82));
  border-radius: var(--cr-radius-xl, 28px);
  overflow: hidden;
}

.cr-learning-paths__head {
  max-width: 760px;
  margin-bottom: clamp(1.35rem, 3vw, 2.4rem);
}

.cr-learning-paths__title {
  margin: 0.35rem 0 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--cr-primary, #002b20);
}

.cr-learning-paths__lead {
  margin: 0.65rem 0 0;
  max-width: 66ch;
  color: var(--cr-text-muted, #404945);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.cr-learning-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.cr-level-card {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 260px;
  padding: clamp(1.45rem, 2.6vw, 2rem);
  color: var(--cr-text, #1a1c1b);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(191, 201, 195, 0.64);
  border-radius: 1.35rem;
  box-shadow: 0 18px 45px rgba(0, 43, 32, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cr-level-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 43, 32, 0.2);
  box-shadow: 0 28px 70px rgba(0, 43, 32, 0.11);
}

.cr-level-card.is-recommended {
  z-index: 1;
  transform: translateY(-12px);
  background:
    linear-gradient(180deg, rgba(244,249,248,0.96), rgba(226,227,224,0.66));
  border-color: rgba(0, 43, 32, 0.28);
  box-shadow: 0 34px 80px rgba(0, 43, 32, 0.14);
}

.cr-level-card.is-recommended:hover {
  transform: translateY(-18px);
}

.cr-level-card__badge {
  width: max-content;
  max-width: 100%;
  padding: 0.4rem 0.72rem;
  color: var(--cr-primary, #002b20);
  background: rgba(180, 239, 216, 0.24);
  border-radius: 0.45rem;
  font-family: var(--cr-font-sans, sans-serif);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cr-level-card.is-recommended .cr-level-card__badge {
  color: #fff;
  background: var(--cr-primary, #002b20);
}

.cr-level-card__title {
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--cr-primary, #002b20);
}

.cr-level-card__text {
  color: var(--cr-text-muted, #404945);
  font-size: 1rem;
  line-height: 1.55;
}

.cr-level-card__meta {
  align-self: end;
  display: grid;
  gap: 0.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(191, 201, 195, 0.5);
}

.cr-level-card__meta strong {
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--cr-primary, #002b20);
}

.cr-level-card__meta small {
  color: var(--cr-text-muted, #404945);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .cr-study-area__track { --cr-rail-visible: 2.15; }
  .cr-learning-paths__grid { grid-template-columns: 1fr; }
  .cr-level-card,
  .cr-level-card.is-recommended,
  .cr-level-card.is-recommended:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .cr-study-area .cr-rail__head {
    align-items: flex-start;
  }
  .cr-study-area__track { --cr-rail-visible: 1.08; }
  .cr-category-card--premium {
    min-height: 230px;
  }
  .cr-category-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
  }
  .cr-learning-paths {
    padding: 1.35rem 0;
    background: transparent;
  }
  .cr-level-card {
    min-height: auto;
  }
}


/* v47 polish: cleaner Study Area header + richer Learning Paths panel. */
.cr-study-area__head {
  align-items: center !important;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.cr-study-area__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cr-study-area__titleline {
  display: flex;
  align-items: baseline;
  gap: clamp(0.8rem, 1.8vw, 1.35rem);
  min-width: 0;
  flex-wrap: wrap;
}

.cr-study-area__title {
  flex: 0 0 auto;
  margin: 0;
}

.cr-study-area__titleline .cr-rail__subtitle {
  position: relative;
  margin: 0;
  padding-left: clamp(0.8rem, 1.5vw, 1.1rem);
  color: rgba(64, 73, 69, 0.92);
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.45;
}

.cr-study-area__titleline .cr-rail__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 1px;
  background: rgba(191, 201, 195, 0.85);
}

.cr-study-area__head .cr-rail__head-right {
  align-self: center;
  margin-left: auto;
}

.cr-study-area .cr-rail__link--caps {
  color: var(--cr-primary, #002b20);
  opacity: 0.9;
}

/* Make learning paths visibly intentional, not a pale empty band. */
.cr-learning-paths {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(2.1rem, 4.4vw, 3.6rem) clamp(1.25rem, 2.8vw, 2.6rem);
  background:
    radial-gradient(circle at 18% 12%, rgba(180, 239, 216, 0.28), transparent 36%),
    radial-gradient(circle at 86% 20%, rgba(255, 219, 206, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.74), rgba(232,244,241,0.92));
  border: 1px solid rgba(0, 43, 32, 0.10);
  border-radius: 1.7rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 24px 70px rgba(0, 43, 32, 0.075);
}

.cr-learning-paths::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 43, 32, 0.045), transparent 26%, transparent 72%, rgba(0, 43, 32, 0.035));
  opacity: 0.55;
}

.cr-learning-paths > * {
  position: relative;
  z-index: 1;
}

.cr-learning-paths__head {
  display: grid;
  gap: 0.45rem;
  max-width: 880px;
}

.cr-learning-paths__title {
  margin-top: 0.15rem;
}

.cr-learning-paths__lead {
  max-width: 58ch;
}

.cr-learning-paths__grid {
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.cr-level-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.85), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,250,248,0.90));
  border-color: rgba(0, 43, 32, 0.12);
}

.cr-level-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(0, 43, 32, 0.12);
}

.cr-level-card--beginner::after { background: #4aa391; }
.cr-level-card--intermediate::after { background: #002b20; }
.cr-level-card--advanced::after { background: #d57b5c; }

.cr-level-card.is-recommended {
  background:
    radial-gradient(circle at 18% 0%, rgba(180, 239, 216, 0.24), transparent 35%),
    linear-gradient(180deg, rgba(244,249,248,0.98), rgba(226,227,224,0.82));
}

.cr-level-card__badge {
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset;
}

.cr-level-card__meta strong {
  letter-spacing: -0.03em;
}

/* Category card extra polish: make icons feel calmer and more premium. */
.cr-category-card__icon {
  background:
    linear-gradient(180deg, rgba(249,249,247,0.95), rgba(226,227,224,0.52));
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset;
}

.cr-category-card--premium .cr-category-card__count {
  background: rgba(180, 239, 216, 0.28);
  border: 1px solid rgba(0, 43, 32, 0.06);
}

@media (max-width: 760px) {
  .cr-study-area__head {
    align-items: flex-start !important;
  }
  .cr-study-area__titleline {
    display: grid;
    gap: 0.35rem;
  }
  .cr-study-area__titleline .cr-rail__subtitle {
    padding-left: 0;
  }
  .cr-study-area__titleline .cr-rail__subtitle::before {
    content: none;
  }
  .cr-study-area__head .cr-rail__head-right {
    align-self: flex-start;
    margin-left: 0;
  }
  .cr-learning-paths {
    padding: 1.35rem;
    border-radius: 1.25rem;
  }
}


/* v48: requested homepage polish.
   - Trending displays two real-data chips.
   - Study-area title/subtitle/view-all stay in one balanced desktop row.
   - Level cards filter homepage cards without navigating away. */
.cr-home-search__trending a:nth-of-type(n+3) {
  display: none;
}

.cr-study-area__head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  flex-wrap: nowrap;
}

.cr-study-area__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cr-study-area__titleline {
  display: flex !important;
  align-items: baseline !important;
  gap: clamp(0.75rem, 1.4vw, 1rem);
  flex-wrap: nowrap !important;
  min-width: 0;
}

.cr-study-area__title {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(1.7rem, 2.65vw, 2.35rem);
}

.cr-study-area__titleline .cr-rail__subtitle {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-left: clamp(0.75rem, 1.25vw, 1rem);
  border-left: 1px solid rgba(0, 43, 32, 0.16);
  color: rgba(64, 73, 69, 0.88);
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-study-area__head .cr-rail__head-right {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
}

/* More visible but still calm academic learning-path panel. */
.cr-learning-paths {
  background:
    radial-gradient(circle at 12% 8%, rgba(180, 239, 216, 0.34), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(255, 244, 213, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(246, 252, 250, 0.96), rgba(224, 242, 238, 0.90));
  border-color: rgba(0, 63, 52, 0.13);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 24px 68px rgba(0, 63, 52, 0.09);
}

.cr-level-card {
  cursor: pointer;
  text-align: left;
  font: inherit;
  appearance: none;
}

.cr-level-card.is-active {
  border-color: rgba(0, 63, 52, 0.34);
  box-shadow:
    0 0 0 3px rgba(180, 239, 216, 0.28),
    0 26px 58px rgba(0, 63, 52, 0.12);
}

.cr-level-results {
  margin-top: clamp(1.15rem, 2.5vw, 1.8rem);
  padding-top: clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(0, 63, 52, 0.10);
}

.cr-level-results__panel {
  display: none;
}

.cr-level-results__panel.is-active {
  display: block;
}

.cr-level-results__head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.cr-level-results__eyebrow {
  color: var(--cr-copper, #c46b4b);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cr-level-results__head h3 {
  margin: 0;
  color: var(--cr-primary, #002b20);
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.1;
}

.cr-level-results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1rem);
}

.cr-level-result-card {
  position: relative;
  display: grid;
  gap: 0.4rem;
  min-height: 136px;
  padding: 1.05rem 1.15rem 1.1rem;
  color: var(--cr-text, #1a1c1b);
  text-decoration: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 239, 216, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 201, 195, 0.62);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0, 43, 32, 0.055);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cr-level-result-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cr-card-accent, var(--cr-primary, #002b20));
}

.cr-level-result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 43, 32, 0.18);
  box-shadow: 0 20px 44px rgba(0, 43, 32, 0.10);
}

.cr-level-result-card__cat {
  color: var(--cr-copper, #c46b4b);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cr-level-result-card__title {
  color: var(--cr-primary, #002b20);
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.12;
}

.cr-level-result-card__teaser {
  color: var(--cr-text-muted, #404945);
  font-size: 0.86rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .cr-study-area__head,
  .cr-study-area__titleline {
    flex-wrap: wrap !important;
  }

  .cr-study-area__titleline .cr-rail__subtitle {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .cr-level-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cr-study-area__head {
    align-items: flex-start !important;
  }

  .cr-study-area__titleline {
    display: grid !important;
    gap: 0.35rem;
  }

  .cr-study-area__titleline .cr-rail__subtitle {
    padding-left: 0;
    border-left: 0;
  }

  .cr-level-results__head {
    display: grid;
    gap: 0.25rem;
  }

  .cr-level-results__grid {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    scroll-snap-type: x proximity;
    padding-bottom: 0.45rem;
    scrollbar-width: none;
  }

  .cr-level-results__grid::-webkit-scrollbar {
    display: none;
  }

  .cr-level-result-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }
}


/* v49 final polish: calmer world-class EdTech finish.
   No layout reset: this strengthens hierarchy, contrast, CTA readability,
   card affordance, section rhythm, and mobile safety. */

/* Overall page rhythm */
.cr-home {
  --cr-section-gap: clamp(3rem, 6.2vw, 5.8rem);
}

.cr-home > section + section {
  margin-top: clamp(2.15rem, 4.8vw, 4.4rem);
}

/* Hero: more premium depth without changing approved layout. */
.cr-home__hero {
  position: relative;
}

.cr-home__hero::before {
  content: "";
  position: absolute;
  inset: -8% -10% auto auto;
  width: clamp(260px, 38vw, 520px);
  height: clamp(220px, 32vw, 430px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(180, 239, 216, 0.28), transparent 64%);
  filter: blur(2px);
  z-index: -1;
}

.cr-home__title span:nth-child(2) {
  text-shadow: 0 12px 34px rgba(0, 63, 52, 0.10);
}

.cr-home__cta .button,
.cr-home__actions a:first-child,
.cr-home__primary-action {
  box-shadow: 0 12px 26px rgba(0, 75, 58, 0.18);
}

/* Feature search: premium search-product feel. */
.cr-home-search--feature {
  border: 1px solid rgba(0, 63, 52, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 34px 90px rgba(0, 63, 52, 0.095);
}

.cr-home-search__form {
  border-color: rgba(0, 63, 52, 0.13);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 12px 30px rgba(0, 43, 32, 0.09);
}

.cr-home-search__form:focus-within {
  border-color: rgba(0, 75, 58, 0.38);
  box-shadow:
    0 0 0 4px rgba(180, 239, 216, 0.32),
    0 14px 34px rgba(0, 43, 32, 0.10);
}

.cr-home-search__trending a {
  border-color: rgba(0, 63, 52, 0.10);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cr-home-search__trending a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 75, 58, 0.24);
  background: rgba(255, 255, 255, 0.95);
}

/* Study area row: maintain same-row desktop alignment, stronger polish. */
.cr-study-area__head {
  padding-bottom: 0.2rem;
}

.cr-study-area__titleline .cr-rail__subtitle {
  opacity: 0.86;
}

.cr-category-card--premium {
  min-height: clamp(230px, 20vw, 282px);
  border-color: rgba(0, 43, 32, 0.10);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 18px 48px rgba(0, 43, 32, 0.075);
}

.cr-category-card--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46), transparent 44%),
    radial-gradient(circle at 95% 8%, rgba(255,255,255,0.58), transparent 24%);
}

.cr-category-card--premium > * {
  position: relative;
  z-index: 1;
}

.cr-category-card__icon {
  color: var(--cr-card-accent, var(--cr-primary, #002b20));
}

.cr-category-card--premium .cr-category-card__title {
  letter-spacing: -0.025em;
}

.cr-category-card--premium .cr-category-card__cta {
  margin-top: auto;
  width: max-content;
}

.cr-category-card--premium:hover .cr-category-card__cta {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

/* Learning paths: make the active level feel deliberate and useful. */
.cr-learning-paths {
  border-color: rgba(0, 63, 52, 0.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(180, 239, 216, 0.42), transparent 35%),
    radial-gradient(circle at 92% 0%, rgba(255, 244, 213, 0.34), transparent 31%),
    linear-gradient(135deg, rgba(250, 255, 253, 0.98), rgba(224, 243, 239, 0.94));
}

.cr-level-card {
  min-height: 246px;
  border-color: rgba(0, 43, 32, 0.11);
}

.cr-level-card.is-recommended {
  transform: translateY(-8px);
}

.cr-level-card.is-recommended:hover {
  transform: translateY(-12px);
}

.cr-level-card__text {
  max-width: 32ch;
}

.cr-level-results {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 1.05rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(0, 63, 52, 0.07);
}

.cr-level-results__head {
  margin-bottom: 0.9rem;
}

.cr-level-result-card {
  min-height: 128px;
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 239, 216, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.90));
}

.cr-level-result-card__title {
  font-size: clamp(1rem, 1.25vw, 1.13rem);
}

/* Rails and mini cards: stronger click target and clearer text at small scale. */
.cr-rail__head {
  margin-bottom: clamp(0.85rem, 1.5vw, 1.1rem);
}

.cr-rail__title {
  letter-spacing: -0.02em;
}

.cr-minicard {
  min-height: 120px;
  border-color: rgba(0, 43, 32, 0.095);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 14px 32px rgba(0, 43, 32, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cr-minicard:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 75, 58, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 22px 48px rgba(0, 43, 32, 0.085);
}

.cr-minicard__title {
  letter-spacing: -0.01em;
}

.cr-minicard__teaser,
.cr-minicard__stat {
  color: rgba(64, 73, 69, 0.86);
}

/* White information panels lower down. */
.cr-panel,
.cr-info-panel,
.cr-trust,
.cr-how-it-works {
  border-color: rgba(0, 43, 32, 0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 22px 58px rgba(0, 43, 32, 0.06);
}

/* Community CTA: fix readability on dark green and make it premium. */
.cr-community,
.cr-share,
.cr-home-share,
.cr-community-card {
  color: rgba(255, 255, 255, 0.92);
}

.cr-community h2,
.cr-share h2,
.cr-home-share h2,
.cr-community-card h2,
.cr-community .cr-rail__title,
.cr-share .cr-rail__title,
.cr-home-share .cr-rail__title,
.cr-community-card .cr-rail__title {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.cr-community p,
.cr-share p,
.cr-home-share p,
.cr-community-card p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.cr-community .cr-eyebrow,
.cr-share .cr-eyebrow,
.cr-home-share .cr-eyebrow,
.cr-community-card .cr-eyebrow {
  color: rgba(255, 214, 172, 0.96) !important;
}

.cr-community a,
.cr-community button,
.cr-share a,
.cr-share button,
.cr-home-share a,
.cr-home-share button,
.cr-community-card a,
.cr-community-card button {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

/* CTA save section: slightly cleaner glass feel. */
.cr-save-cta,
.cr-dashboard-cta,
.cr-account-cta {
  border-color: rgba(0, 43, 32, 0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 18px 52px rgba(0, 43, 32, 0.05);
}

/* Motion polish, only for users who allow motion. */
@media (prefers-reduced-motion: no-preference) {
  .cr-home__daily-card,
  .cr-home-search--feature,
  .cr-category-card--premium,
  .cr-learning-paths,
  .cr-minicard {
    animation: cr-soft-enter 0.55s ease both;
  }

  .cr-home-search--feature { animation-delay: 0.06s; }
  .cr-category-card--premium:nth-child(2) { animation-delay: 0.04s; }
  .cr-category-card--premium:nth-child(3) { animation-delay: 0.08s; }
  .cr-category-card--premium:nth-child(4) { animation-delay: 0.12s; }
  .cr-learning-paths { animation-delay: 0.08s; }

  @keyframes cr-soft-enter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Tablet/mobile refinements. */
@media (max-width: 980px) {
  .cr-level-card.is-recommended,
  .cr-level-card.is-recommended:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .cr-home > section + section {
    margin-top: 2rem;
  }

  .cr-home-search--feature {
    padding-inline: 1rem;
  }

  .cr-home-search__trending {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .cr-home-search__trending span {
    flex-basis: 100%;
  }

  .cr-category-card--premium {
    min-height: 220px;
  }

  .cr-learning-paths {
    padding: 1rem;
  }

  .cr-level-card {
    min-height: auto;
  }

  .cr-level-results {
    margin-inline: -0.15rem;
    padding: 0.85rem;
  }
}


/* v50 lower homepage redesign: premium world-class EdTech sections.
   These styles redesign the lower homepage while preserving the approved
   hero, search, study-area and learning-path language. */

.cr-section {
  position: relative;
}

.cr-premium-head {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(0.9rem, 1.7vw, 1.25rem);
}

.cr-premium-head__copy {
  min-width: 0;
}

.cr-premium-head__title {
  margin: 0.18rem 0 0;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--cr-primary, #002b20);
}

.cr-premium-head__title span {
  color: var(--cr-copper, #c46b4b);
}

.cr-premium-head__copy p {
  max-width: 56ch;
  margin: 0.35rem 0 0;
  color: rgba(64, 73, 69, 0.82);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.45;
}

.cr-premium-head__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.cr-premium-link {
  color: var(--cr-primary, #002b20);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.cr-premium-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.cr-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  color: rgba(0, 43, 32, 0.76);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 43, 32, 0.08);
  border-radius: var(--cr-radius-full, 999px);
  font-size: 0.74rem;
  font-weight: 760;
  white-space: nowrap;
}

.cr-live-chip::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cr-copper, #c46b4b);
  box-shadow: 0 0 0 4px rgba(196, 107, 75, 0.12);
}

.cr-live-chip--save::before {
  content: none;
}

/* Student momentum: more visual hierarchy than normal cards. */
.cr-momentum {
  padding-top: clamp(0.25rem, 1vw, 0.7rem);
}

.cr-momentum__track {
  --cr-rail-visible: 4;
  align-items: stretch;
}

.cr-momentum-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  min-height: 150px;
  padding: clamp(1rem, 1.9vw, 1.35rem);
  color: var(--cr-text, #1a1c1b);
  text-decoration: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 239, 216, 0.20), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
  border: 1px solid rgba(0, 43, 32, 0.10);
  border-radius: 1rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 18px 42px rgba(0, 43, 32, 0.06);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cr-momentum-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cr-card-accent, var(--cr-primary, #002b20));
}

.cr-momentum-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 75, 58, 0.20);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.94) inset,
    0 26px 58px rgba(0, 43, 32, 0.10);
}

.cr-momentum-card__rank {
  align-self: center;
  min-width: 2.25rem;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.9;
  color: rgba(0, 75, 58, 0.10);
  -webkit-text-stroke: 1px rgba(0, 75, 58, 0.50);
}

.cr-momentum-card__content {
  display: grid;
  align-content: center;
  gap: 0.38rem;
  min-width: 0;
}

.cr-momentum-card__cat,
.cr-library-card__cat,
.cr-saved-card__cat {
  color: var(--cr-copper, #c46b4b);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cr-momentum-card__title {
  display: -webkit-box;
  color: var(--cr-primary, #002b20);
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 760;
  line-height: 1.12;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cr-momentum-card__meta {
  color: rgba(64, 73, 69, 0.76);
  font-size: 0.78rem;
}

.cr-momentum-card__arrow {
  align-self: end;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--cr-primary, #002b20);
  background: rgba(180, 239, 216, 0.25);
  border: 1px solid rgba(0, 43, 32, 0.08);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cr-momentum-card:hover .cr-momentum-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Library stream: slightly taller cards with clear "Study card" action. */
.cr-library-stream__track {
  --cr-rail-visible: 4;
}

.cr-library-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.48rem;
  min-height: 178px;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  color: var(--cr-text, #1a1c1b);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.90));
  border: 1px solid rgba(0, 43, 32, 0.10);
  border-radius: 1rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 16px 38px rgba(0, 43, 32, 0.055);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cr-library-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cr-card-accent, var(--cr-primary, #002b20));
  opacity: 0.92;
}

.cr-library-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 75, 58, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 24px 54px rgba(0, 43, 32, 0.09);
}

.cr-library-card__title {
  display: -webkit-box;
  color: var(--cr-primary, #002b20);
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.15rem, 1.65vw, 1.42rem);
  font-weight: 760;
  line-height: 1.1;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cr-library-card__teaser {
  display: -webkit-box;
  color: rgba(64, 73, 69, 0.82);
  font-size: 0.9rem;
  line-height: 1.38;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cr-library-card__cta {
  align-self: end;
  margin-top: auto;
  color: var(--cr-primary, #002b20);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Saved cards: lighter, quicker scanning, bookmark icon identity. */
.cr-saved-lane__track {
  --cr-rail-visible: 4;
}

.cr-saved-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 118px;
  padding: 1rem;
  color: var(--cr-text, #1a1c1b);
  text-decoration: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 239, 216, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 43, 32, 0.10);
  border-radius: 0.95rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 14px 34px rgba(0, 43, 32, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cr-saved-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 75, 58, 0.18);
  box-shadow: 0 22px 46px rgba(0, 43, 32, 0.085);
}

.cr-saved-card__bookmark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--cr-primary, #002b20);
  background: rgba(180, 239, 216, 0.26);
  border: 1px solid rgba(0, 43, 32, 0.08);
  border-radius: 50%;
  font-size: 1.1rem;
}

.cr-saved-card__body {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.cr-saved-card__title {
  display: -webkit-box;
  color: var(--cr-primary, #002b20);
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 760;
  line-height: 1.14;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cr-saved-card__stat {
  color: rgba(64, 73, 69, 0.72);
  font-size: 0.78rem;
}

/* Study system: merge How it works + Trust into one premium learning system. */
.cr-study-system {
  display: grid;
  gap: clamp(1.2rem, 2.6vw, 2rem);
  padding: clamp(1.45rem, 3.3vw, 2.5rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 239, 216, 0.26), transparent 36%),
    radial-gradient(circle at 100% 8%, rgba(255, 244, 213, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84));
  border: 1px solid rgba(0, 43, 32, 0.10);
  border-radius: 1.5rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 28px 74px rgba(0, 43, 32, 0.085);
}

.cr-study-system__intro h2,
.cr-trust-panel h2 {
  max-width: 760px;
  margin: 0.25rem 0 0;
  color: var(--cr-primary, #002b20);
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.cr-study-system__intro p,
.cr-trust-panel p {
  max-width: 66ch;
  margin: 0.55rem 0 0;
  color: rgba(64, 73, 69, 0.82);
  font-size: clamp(0.92rem, 1.18vw, 1rem);
  line-height: 1.5;
}

.cr-study-system__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: clamp(1rem, 2vw, 1.3rem);
}

.cr-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cr-process-card {
  display: grid;
  align-content: start;
  gap: 0.38rem;
  min-height: 150px;
  padding: 1rem;
  background: rgba(244, 249, 248, 0.86);
  border: 1px solid rgba(0, 43, 32, 0.08);
  border-radius: 0.9rem;
}

.cr-process-card span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: var(--cr-primary, #002b20);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 900;
}

.cr-process-card h3 {
  margin: 0.25rem 0 0;
  color: var(--cr-primary, #002b20);
  font-size: 0.98rem;
}

.cr-process-card p {
  margin: 0;
  color: rgba(64, 73, 69, 0.78);
  font-size: 0.84rem;
  line-height: 1.42;
}

.cr-trust-panel {
  padding: clamp(1.1rem, 2.1vw, 1.5rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,252,250,0.88));
  border: 1px solid rgba(0, 43, 32, 0.10);
  border-radius: 1.1rem;
}

.cr-trust-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.cr-trust-panel__grid div {
  display: grid;
  gap: 0.22rem;
  padding: 0.85rem;
  background: rgba(232, 244, 241, 0.62);
  border: 1px solid rgba(0, 43, 32, 0.06);
  border-radius: 0.75rem;
}

.cr-trust-panel__grid strong {
  color: var(--cr-primary, #002b20);
  font-size: 0.88rem;
}

.cr-trust-panel__grid span {
  color: rgba(64, 73, 69, 0.78);
  font-size: 0.78rem;
  line-height: 1.36;
}

/* Final actions: premium ending rhythm. */
.cr-final-actions {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.cr-community--world {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 34px 85px rgba(0, 63, 52, 0.20);
}

.cr-community--world::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(180,239,216,0.22), transparent 64%);
  pointer-events: none;
}

.cr-community--world::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -55%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,244,213,0.12), transparent 64%);
  pointer-events: none;
}

.cr-community--world .cr-community__inner {
  position: relative;
  z-index: 1;
}

.cr-band--cta-world {
  background:
    radial-gradient(circle at 8% 0%, rgba(180, 239, 216, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,252,250,0.82));
  border: 1px solid rgba(0, 43, 32, 0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 24px 68px rgba(0, 43, 32, 0.065);
}

/* Stronger accessibility/focus for new cards. */
.cr-momentum-card:focus-visible,
.cr-library-card:focus-visible,
.cr-saved-card:focus-visible,
.cr-process-card:focus-visible,
.cr-community__btn:focus-visible {
  outline: 3px solid rgba(180, 239, 216, 0.72);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .cr-study-system__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .cr-momentum__track,
  .cr-library-stream__track,
  .cr-saved-lane__track {
    --cr-rail-visible: 2.15;
  }

  .cr-premium-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cr-premium-head__tools {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .cr-momentum__track,
  .cr-library-stream__track,
  .cr-saved-lane__track {
    --cr-rail-visible: 1.12;
  }

  .cr-premium-head__tools {
    width: 100%;
    justify-content: space-between;
  }

  .cr-live-chip {
    white-space: normal;
  }

  .cr-study-system {
    padding: 1rem;
    border-radius: 1.1rem;
  }

  .cr-process-grid,
  .cr-trust-panel__grid {
    grid-template-columns: 1fr;
  }

  .cr-community--world {
    padding-inline: 1rem;
  }

  .cr-band--cta-world {
    padding-inline: 1rem;
  }
}


/* v51 spacing + typography polish.
   The v50 structure was strong, but vertical gaps were too large and the
   learning-system block looked small. This pass tightens rhythm and improves
   readability while keeping the approved design language. */

/* Tighter world-class page rhythm: premium but not empty. */
.cr-home {
  --cr-section-gap: clamp(2.05rem, 4.2vw, 3.65rem);
}

.cr-home > section + section {
  margin-top: clamp(1.85rem, 3.6vw, 3.25rem) !important;
}

/* Reduce excessive band breathing space after the level selector. */
.cr-learning-paths {
  margin-bottom: clamp(0.4rem, 1vw, 0.9rem);
}

/* Lower homepage rails should feel like a continuous learning journey. */
.cr-momentum,
.cr-library-stream,
.cr-saved-lane {
  padding-block: clamp(0.25rem, 1.2vw, 0.85rem);
}

.cr-momentum + .cr-library-stream,
.cr-library-stream + .cr-saved-lane {
  margin-top: clamp(1.45rem, 2.7vw, 2.45rem) !important;
}

/* Header hierarchy: bigger enough to scan, still compact. */
.cr-premium-head {
  margin-bottom: clamp(0.7rem, 1.25vw, 1rem);
}

.cr-premium-head__title {
  font-size: clamp(1.85rem, 3.45vw, 2.85rem);
}

.cr-premium-head__copy p {
  font-size: clamp(0.92rem, 1.2vw, 1.06rem);
}

/* Popular/recent/saved cards: slightly bigger text, less wasted vertical space. */
.cr-momentum-card {
  min-height: 132px;
  padding: clamp(0.9rem, 1.65vw, 1.18rem);
}

.cr-momentum-card__rank {
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
}

.cr-momentum-card__title {
  font-size: clamp(1.08rem, 1.65vw, 1.34rem);
}

.cr-library-card {
  min-height: 158px;
  padding: clamp(0.95rem, 1.65vw, 1.22rem);
}

.cr-library-card__title {
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
}

.cr-library-card__teaser {
  font-size: clamp(0.9rem, 1.05vw, 0.98rem);
}

.cr-saved-card {
  min-height: 104px;
  padding: 0.88rem 0.95rem;
}

.cr-saved-card__title {
  font-size: clamp(1.04rem, 1.55vw, 1.24rem);
}

/* How it works + Trust: make this a hero-quality learning system section. */
.cr-study-system {
  margin-top: clamp(1.7rem, 3.2vw, 2.7rem) !important;
  padding: clamp(1.7rem, 3.8vw, 2.9rem);
  gap: clamp(1.35rem, 2.5vw, 2rem);
}

.cr-study-system__intro h2,
.cr-trust-panel h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.03;
  max-width: 880px;
}

.cr-study-system__intro p,
.cr-trust-panel p {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.55;
  max-width: 72ch;
}

.cr-study-system__grid {
  gap: clamp(1.05rem, 2vw, 1.45rem);
}

.cr-process-grid {
  gap: clamp(0.85rem, 1.5vw, 1.05rem);
}

.cr-process-card {
  min-height: 164px;
  padding: clamp(1rem, 1.8vw, 1.25rem);
  border-radius: 1rem;
}

.cr-process-card span {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.78rem;
}

.cr-process-card h3 {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.cr-process-card p {
  font-size: clamp(0.88rem, 1.05vw, 0.96rem);
  line-height: 1.48;
}

.cr-trust-panel {
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
}

.cr-trust-panel__grid {
  gap: 0.82rem;
}

.cr-trust-panel__grid div {
  padding: 0.95rem;
}

.cr-trust-panel__grid strong {
  font-size: clamp(0.94rem, 1.15vw, 1.02rem);
}

.cr-trust-panel__grid span {
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  line-height: 1.44;
}

/* Make final CTA sections closer to the learning system and each other. */
.cr-final-actions {
  margin-top: clamp(1.8rem, 3.2vw, 2.8rem) !important;
  gap: clamp(1.1rem, 2.2vw, 1.55rem);
}

.cr-community--world {
  padding-block: clamp(2.2rem, 4.6vw, 3.6rem);
}

.cr-band--cta-world {
  padding-block: clamp(2rem, 4.2vw, 3.15rem);
}

/* Improve footer relationship with final CTA; no excessive dead area above it. */
.cr-final-actions + * {
  margin-top: clamp(1.4rem, 2.6vw, 2.1rem);
}

/* Responsive: tighter and readable on tablet/mobile. */
@media (max-width: 980px) {
  .cr-home > section + section {
    margin-top: clamp(1.55rem, 3vw, 2.55rem) !important;
  }

  .cr-study-system__intro h2,
  .cr-trust-panel h2 {
    font-size: clamp(1.75rem, 5vw, 2.45rem);
  }

  .cr-study-system__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cr-home > section + section {
    margin-top: 1.45rem !important;
  }

  .cr-momentum,
  .cr-library-stream,
  .cr-saved-lane {
    padding-block: 0.15rem;
  }

  .cr-premium-head {
    gap: 0.65rem;
  }

  .cr-premium-head__title {
    font-size: clamp(1.45rem, 7vw, 2.05rem);
  }

  .cr-study-system {
    padding: 1.1rem;
  }

  .cr-study-system__intro h2,
  .cr-trust-panel h2 {
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
  }

  .cr-study-system__intro p,
  .cr-trust-panel p {
    font-size: 0.94rem;
  }

  .cr-process-card {
    min-height: auto;
  }

  .cr-community--world,
  .cr-band--cta-world {
    padding-block: 2rem;
  }
}


/* v52 compact rhythm + premium hero colour correction.
   Main issue found from screenshot: .cr-home is a CSS grid with a large global gap,
   so margins were reduced earlier but the grid gap still kept sections far apart.
   This pass reduces that real spacing source and tightens only vertical rhythm. */

/* 1) The real gap controller */
.cr-home {
  gap: clamp(1.05rem, 2.15vw, 2rem) !important;
  --cr-section-gap: clamp(1.05rem, 2.15vw, 2rem) !important;
}

/* 2) Premium three-colour hero headline using current theme palette */
.cr-home__hero-title {
  text-wrap: balance;
}

.cr-home__hero-line--ink {
  color: #073f35 !important;
  text-shadow: 0 12px 34px rgba(0, 63, 52, 0.08);
}

.cr-home__hero-line--accent {
  color: #15846f !important;
  font-style: italic;
  text-shadow: 0 14px 36px rgba(21, 132, 111, 0.16);
}

.cr-home__hero-line--warm {
  color: #cf6a42 !important;
  text-shadow: 0 14px 34px rgba(207, 106, 66, 0.16);
}

/* 3) Tighten top-to-bottom homepage rhythm */
.cr-home__hero {
  padding-top: clamp(0.8rem, 2vw, 1.9rem) !important;
  padding-bottom: clamp(0.35rem, 1.1vw, 0.8rem) !important;
  gap: clamp(1.75rem, 4.2vw, 4rem) !important;
}

.cr-home-search--feature {
  margin-block: clamp(0.45rem, 1vw, 0.85rem) !important;
  padding-block: clamp(1.35rem, 2.8vw, 2.25rem) !important;
}

.cr-study-area,
.cr-momentum,
.cr-library-stream,
.cr-saved-lane,
.cr-study-system,
.cr-final-actions {
  margin-top: clamp(0.75rem, 1.7vw, 1.45rem) !important;
}

.cr-home > section + section {
  margin-top: clamp(0.75rem, 1.7vw, 1.45rem) !important;
}

/* Category and level blocks should sit closer to the search result journey */
.cr-study-area .cr-rail__head {
  margin-bottom: clamp(0.65rem, 1.2vw, 0.95rem) !important;
}

.cr-category-card--premium {
  min-height: clamp(204px, 16vw, 238px) !important;
}

.cr-learning-paths {
  margin-top: clamp(0.75rem, 1.8vw, 1.45rem) !important;
  margin-bottom: clamp(0.25rem, 0.8vw, 0.65rem) !important;
  padding: clamp(1.25rem, 3vw, 2.35rem) clamp(1rem, 2.4vw, 2rem) !important;
}

/* Lower rails: compact but still premium */
.cr-premium-head {
  margin-bottom: clamp(0.55rem, 1vw, 0.8rem) !important;
}

.cr-momentum,
.cr-library-stream,
.cr-saved-lane {
  padding-block: 0 !important;
}

.cr-momentum + .cr-library-stream,
.cr-library-stream + .cr-saved-lane {
  margin-top: clamp(1rem, 2vw, 1.7rem) !important;
}

.cr-momentum-card {
  min-height: 118px !important;
}

.cr-library-card {
  min-height: 142px !important;
}

.cr-saved-card {
  min-height: 94px !important;
}

/* How it works / Trust: larger typography, tighter outer space */
.cr-study-system {
  margin-top: clamp(1.1rem, 2.2vw, 1.9rem) !important;
  padding: clamp(1.45rem, 3.2vw, 2.55rem) !important;
}

.cr-study-system__intro h2,
.cr-trust-panel h2 {
  font-size: clamp(2.15rem, 4.25vw, 3.35rem) !important;
  line-height: 1.02 !important;
}

.cr-study-system__intro p,
.cr-trust-panel p {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem) !important;
}

/* Final CTA area: remove excess breathing room before footer */
.cr-final-actions {
  margin-top: clamp(1.05rem, 2.2vw, 1.9rem) !important;
  gap: clamp(0.9rem, 1.8vw, 1.35rem) !important;
}

.cr-community--world {
  padding-block: clamp(1.8rem, 3.6vw, 2.85rem) !important;
}

.cr-band--cta-world {
  padding-block: clamp(1.65rem, 3.2vw, 2.5rem) !important;
}

/* Extra polish: smaller card shadows in dense middle sections */
.cr-momentum-card,
.cr-library-card,
.cr-saved-card {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 12px 30px rgba(0, 43, 32, 0.052) !important;
}

/* Mobile: prevent giant blank areas and keep hero headline punchy */
@media (max-width: 700px) {
  .cr-home {
    gap: 1rem !important;
  }

  .cr-home > section + section,
  .cr-study-area,
  .cr-momentum,
  .cr-library-stream,
  .cr-saved-lane,
  .cr-study-system,
  .cr-final-actions {
    margin-top: 1rem !important;
  }

  .cr-home__hero {
    padding-top: 0.75rem !important;
    padding-bottom: 0.25rem !important;
  }

  .cr-home-search--feature {
    margin-block: 0.4rem !important;
    padding-block: 1.15rem !important;
  }

  .cr-category-card--premium {
    min-height: 190px !important;
  }

  .cr-learning-paths {
    margin-top: 0.65rem !important;
    padding: 1rem !important;
  }

  .cr-study-system {
    margin-top: 1rem !important;
    padding: 1rem !important;
  }

  .cr-study-system__intro h2,
  .cr-trust-panel h2 {
    font-size: clamp(1.75rem, 7vw, 2.35rem) !important;
  }

  .cr-community--world,
  .cr-band--cta-world {
    padding-block: 1.6rem !important;
  }
}


/* v53 mobile hero action/proof polish.
   Keeps Start learning free + Surprise me in one row and turns proof text into clean chips. */

/* Desktop/subtle proof polish */
.cr-home__hero-proof {
  align-items: center;
}

.cr-home__hero-proof span {
  border-radius: 999px;
}

@media (max-width: 700px) {
  .cr-home__hero-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 0.7rem;
    align-items: stretch;
    margin-top: 1.35rem;
  }

  .cr-home__hero-actions .cr-btn {
    width: 100%;
    min-height: 54px;
    padding: 0.85rem 0.9rem;
    font-size: clamp(0.9rem, 3.8vw, 1rem);
    line-height: 1.05;
    white-space: nowrap;
    text-align: center;
  }

  .cr-home__hero-actions .cr-btn--lg {
    padding-inline: 0.75rem;
  }

  .cr-home__hero-proof {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.9rem;
    font-size: clamp(0.84rem, 3.4vw, 0.95rem);
  }

  .cr-home__hero-proof span {
    min-height: 42px;
    padding: 0.52rem 0.62rem;
    color: rgba(0, 43, 32, 0.74);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(0, 63, 52, 0.10);
    box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset;
  }

  .cr-home__hero-proof span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .cr-home__hero-proof span::before {
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    background: rgba(21, 132, 111, 0.58);
    box-shadow: 0 0 0 4px rgba(180, 239, 216, 0.28);
  }
}

@media (max-width: 380px) {
  .cr-home__hero-actions {
    gap: 0.55rem;
  }

  .cr-home__hero-actions .cr-btn {
    min-height: 50px;
    padding-inline: 0.55rem;
    font-size: 0.86rem;
  }

  .cr-home__hero-proof {
    grid-template-columns: 1fr;
  }

  .cr-home__hero-proof span:nth-child(3) {
    grid-column: auto;
  }
}


/* v54 mobile search trending polish.
   Screenshot issue: trending chips become large stacked blocks on mobile.
   This keeps the label + two real-data chips compact and inline, like a premium
   mobile search module. */

@media (max-width: 700px) {
  .cr-search-trending,
  .cr-home-search__trending,
  .cr-search__trending,
  .cr-trending {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.38rem !important;
    width: 100% !important;
    margin-top: 0.9rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0.15rem 0.15rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cr-search-trending::-webkit-scrollbar,
  .cr-home-search__trending::-webkit-scrollbar,
  .cr-search__trending::-webkit-scrollbar,
  .cr-trending::-webkit-scrollbar {
    display: none;
  }

  .cr-search-trending__label,
  .cr-home-search__trending-label,
  .cr-search__trending-label,
  .cr-trending__label {
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: rgba(64, 73, 69, 0.72) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .cr-search-trending a,
  .cr-search-trending button,
  .cr-search-trending .cr-chip,
  .cr-search-trending__item,
  .cr-home-search__trending a,
  .cr-home-search__trending button,
  .cr-home-search__trending .cr-chip,
  .cr-home-search__trending-item,
  .cr-search__trending a,
  .cr-search__trending button,
  .cr-search__trending .cr-chip,
  .cr-search__trending-item,
  .cr-trending a,
  .cr-trending button,
  .cr-trending .cr-chip,
  .cr-trending__item {
    flex: 0 0 auto !important;
    max-width: 46vw !important;
    min-height: 28px !important;
    padding: 0.42rem 0.66rem !important;
    border-radius: 999px !important;
    font-size: clamp(0.64rem, 2.75vw, 0.74rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em !important;
    line-height: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Keep the search card compact after chips become inline. */
  .cr-home-search--feature {
    padding-bottom: clamp(1.35rem, 4vw, 1.65rem) !important;
  }
}

@media (max-width: 380px) {
  .cr-search-trending,
  .cr-home-search__trending,
  .cr-search__trending,
  .cr-trending {
    justify-content: flex-start !important;
  }

  .cr-search-trending a,
  .cr-search-trending button,
  .cr-search-trending .cr-chip,
  .cr-search-trending__item,
  .cr-home-search__trending a,
  .cr-home-search__trending button,
  .cr-home-search__trending .cr-chip,
  .cr-home-search__trending-item,
  .cr-search__trending a,
  .cr-search__trending button,
  .cr-search__trending .cr-chip,
  .cr-search__trending-item,
  .cr-trending a,
  .cr-trending button,
  .cr-trending .cr-chip,
  .cr-trending__item {
    max-width: 52vw !important;
  }
}


/* v56 final mobile homepage safety polish */
@media (max-width: 700px) {
  .cr-home,
  .cr-home * {
    max-width: 100%;
  }

  .cr-study-area__head {
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .cr-study-area__titleline {
    min-width: 0 !important;
  }

  .cr-study-area__title {
    font-size: clamp(1.85rem, 8.5vw, 2.65rem) !important;
    line-height: 1.02 !important;
  }

  .cr-study-area .cr-rail__subtitle {
    font-size: 0.96rem !important;
    line-height: 1.35 !important;
  }

  .cr-rail__head-right {
    flex: 0 0 auto !important;
  }

  .cr-rail__link--caps {
    font-size: 0.72rem !important;
    letter-spacing: 0.09em !important;
  }

  /* Keep trend row compact under search, never large stacked pills. */
  .cr-home-search__trending {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.38rem !important;
    overflow-x: auto !important;
    padding-inline: 0.15rem !important;
    scrollbar-width: none !important;
  }

  .cr-home-search__trending::-webkit-scrollbar {
    display: none !important;
  }

  .cr-home-search__trending span {
    flex: 0 0 auto !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .cr-home-search__trending a {
    flex: 0 0 auto !important;
    max-width: 46vw !important;
    min-height: 28px !important;
    padding: 0.42rem 0.66rem !important;
    font-size: clamp(0.64rem, 2.75vw, 0.74rem) !important;
    line-height: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}


/* v57 learning path interaction.
   Before any level is clicked, show only the three level cards.
   After click, reveal the recommended-card shelf for the selected level. */
.cr-level-results[hidden],
.cr-level-results__panel[hidden] {
  display: none !important;
}

.cr-learning-paths:not(.has-level-open) .cr-level-results {
  display: none !important;
}

.cr-learning-paths.has-level-open .cr-level-results {
  display: block;
  animation: crLevelShelfIn 220ms ease both;
}

@keyframes crLevelShelfIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cr-level-card {
  isolation: isolate;
}

.cr-level-card::after {
  content: "";
  justify-self: start;
  align-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.45rem 0.72rem;
  color: var(--cr-primary, #002b20);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(0, 63, 52, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset;
}

.cr-level-card.is-active::after {
  content: "↑";
  color: #fff;
  background: var(--cr-primary, #002b20);
  border-color: var(--cr-primary, #002b20);
}

.cr-level-card.is-active {
  border-color: rgba(0, 63, 52, 0.44);
  box-shadow:
    0 0 0 3px rgba(180, 239, 216, 0.32),
    0 24px 62px rgba(0, 63, 52, 0.14);
}

.cr-level-results {
  margin-top: clamp(0.95rem, 2vw, 1.45rem) !important;
  padding-top: clamp(0.85rem, 1.7vw, 1.1rem) !important;
}

.cr-level-results__head {
  margin-bottom: 0.72rem !important;
}

.cr-level-results__head h3::before {
  content: "• ";
  color: var(--cr-accent, #15846f);
}

@media (max-width: 700px) {
  .cr-level-card::after {
    width: fit-content;
    min-height: 30px;
    padding: 0.42rem 0.65rem;
    font-size: 0.72rem;
  }

  .cr-learning-paths:not(.has-level-open) {
    padding-bottom: 1rem !important;
  }

  .cr-learning-paths.has-level-open .cr-level-results {
    margin-top: 0.9rem !important;
  }
}


/* v58 homepage cleanup: CTA band removed, trust panel removed, How-it-works becomes focused and animated. */
.cr-band--cta-world,
.cr-trust-panel {
  display: none !important;
}

.cr-study-system {
  margin-block: clamp(3.25rem, 6vw, 5.75rem) !important;
}

.cr-study-system__grid--single {
  display: block !important;
}

.cr-process-grid--animated,
.cr-study-system__grid--single .cr-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.8rem, 1.4vw, 1.05rem) !important;
}

.cr-process-grid--animated .cr-process-card,
.cr-study-system__grid--single .cr-process-card {
  min-height: 168px;
  transform: translateY(0);
  animation: crProcessFloatIn 620ms ease both;
}

.cr-process-grid--animated .cr-process-card:nth-child(2) { animation-delay: 70ms; }
.cr-process-grid--animated .cr-process-card:nth-child(3) { animation-delay: 140ms; }
.cr-process-grid--animated .cr-process-card:nth-child(4) { animation-delay: 210ms; }

.cr-process-grid--animated .cr-process-card:hover,
.cr-study-system__grid--single .cr-process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(0, 64, 54, 0.11);
}

@keyframes crProcessFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-process-grid--animated .cr-process-card,
  .cr-study-system__grid--single .cr-process-card {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .cr-process-grid--animated,
  .cr-study-system__grid--single .cr-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .cr-study-system {
    margin-block: 2.4rem !important;
  }

  .cr-process-grid--animated,
  .cr-study-system__grid--single .cr-process-grid {
    grid-template-columns: 1fr !important;
  }

  .cr-process-grid--animated .cr-process-card,
  .cr-study-system__grid--single .cr-process-card {
    min-height: auto;
  }
}


/* v60 universal homepage copy + tighter premium section rhythm.
   Purpose: keep the approved layout/design, but reduce excessive vertical gaps
   and make all lower sections read naturally for students, working professionals,
   tutors, and lifelong learners. */

/* Global homepage rhythm */
.cr-home {
  --cr-section-gap: clamp(1.45rem, 3vw, 2.55rem) !important;
}

.cr-home > section + section {
  margin-top: clamp(1.35rem, 2.8vw, 2.35rem) !important;
}

/* Keep only the intentionally spacious hero/search areas breathing. */
.cr-home__hero {
  padding-bottom: clamp(1rem, 2.2vw, 1.55rem) !important;
}

.cr-home-search--feature {
  margin-top: clamp(1.15rem, 2.7vw, 2rem) !important;
  padding-block: clamp(2.25rem, 4.2vw, 3.65rem) !important;
}

/* Compact the rails without making them cramped. */
.cr-study-area,
.cr-momentum,
.cr-library-stream,
.cr-saved-lane {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cr-study-area {
  margin-top: clamp(1.45rem, 3vw, 2.25rem) !important;
}

.cr-learning-paths {
  margin-top: clamp(1.45rem, 3vw, 2.35rem) !important;
  padding-block: clamp(1.55rem, 3.4vw, 2.75rem) !important;
}

.cr-learning-paths__head {
  margin-bottom: clamp(0.95rem, 2vw, 1.45rem) !important;
}

.cr-premium-head {
  margin-bottom: clamp(0.65rem, 1.4vw, 1rem) !important;
}

.cr-premium-head__title {
  font-size: clamp(1.55rem, 2.55vw, 2.3rem) !important;
}

.cr-premium-head__copy p {
  margin-top: 0.22rem !important;
  max-width: 52ch;
}

.cr-momentum-card {
  min-height: 126px !important;
  padding: clamp(0.85rem, 1.5vw, 1.12rem) !important;
}

.cr-library-card {
  min-height: 148px !important;
  padding: clamp(0.9rem, 1.55vw, 1.15rem) !important;
}

.cr-saved-card {
  min-height: 92px !important;
  padding: 0.82rem 0.9rem !important;
}

/* Make the saved lane feel intentionally compact instead of isolated. */
.cr-saved-lane .cr-rail__track {
  padding-bottom: 0.35rem !important;
}

/* How-it-works section: larger copy, shorter block, less empty area. */
.cr-study-system {
  margin-top: clamp(1.65rem, 3.3vw, 2.8rem) !important;
  padding: clamp(1.25rem, 2.8vw, 2.1rem) !important;
  gap: clamp(0.95rem, 1.8vw, 1.35rem) !important;
}

.cr-study-system__intro h2 {
  max-width: 720px;
  font-size: clamp(1.95rem, 3.4vw, 2.85rem) !important;
  line-height: 1.02 !important;
}

.cr-study-system__intro p {
  max-width: 760px;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem) !important;
  line-height: 1.48 !important;
}

.cr-process-grid--animated,
.cr-study-system__grid--single .cr-process-grid {
  gap: clamp(0.7rem, 1.25vw, 0.95rem) !important;
}

.cr-process-grid--animated .cr-process-card,
.cr-study-system__grid--single .cr-process-card {
  min-height: 132px !important;
  padding: clamp(0.95rem, 1.65vw, 1.2rem) !important;
}

.cr-process-card h3 {
  font-size: clamp(1rem, 1.35vw, 1.15rem) !important;
}

.cr-process-card p {
  font-size: clamp(0.88rem, 1.05vw, 0.96rem) !important;
}

/* Community block: keep it premium, reduce excessive top/bottom air. */
.cr-final-actions {
  margin-top: clamp(1.65rem, 3.5vw, 2.8rem) !important;
  gap: 0 !important;
}

.cr-community--world {
  padding-block: clamp(2rem, 4.2vw, 3.4rem) !important;
}

.cr-community__title {
  font-size: clamp(1.6rem, 3vw, 2.35rem) !important;
}

.cr-community__lead {
  max-width: 760px;
  margin-inline: auto;
}

/* Mobile rhythm: less vertical scrolling, no cramped cards. */
@media (max-width: 760px) {
  .cr-home {
    --cr-section-gap: 1.35rem !important;
  }

  .cr-home > section + section {
    margin-top: 1.3rem !important;
  }

  .cr-home-search--feature {
    margin-top: 1.1rem !important;
    padding-block: 1.55rem !important;
  }

  .cr-study-area,
  .cr-learning-paths,
  .cr-momentum,
  .cr-library-stream,
  .cr-saved-lane,
  .cr-study-system,
  .cr-final-actions {
    margin-top: 1.35rem !important;
  }

  .cr-premium-head {
    align-items: flex-start;
    gap: 0.75rem !important;
  }

  .cr-premium-head__title {
    font-size: clamp(1.45rem, 7vw, 2.05rem) !important;
  }

  .cr-premium-head__copy p {
    font-size: 0.92rem !important;
  }

  .cr-momentum-card,
  .cr-library-card,
  .cr-saved-card {
    min-height: auto !important;
  }

  .cr-study-system {
    padding: 1.1rem !important;
  }

  .cr-study-system__intro h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
  }

  .cr-process-grid--animated .cr-process-card,
  .cr-study-system__grid--single .cr-process-card {
    min-height: auto !important;
  }

  .cr-community--world {
    padding: 1.65rem 1rem !important;
  }
}


/* v61: tighten How-it-works → Community Learning rhythm and make the
   How-it-works message a single premium line. */
.cr-study-system {
  margin-bottom: clamp(1rem, 2vw, 1.45rem) !important;
}

.cr-study-system + .cr-final-actions,
.cr-final-actions {
  margin-top: clamp(0.85rem, 1.8vw, 1.35rem) !important;
}

.cr-study-system__intro {
  margin-bottom: clamp(0.8rem, 1.5vw, 1.05rem) !important;
}

/* The old H2 is removed from Twig, but hide any cached/alternate markup safely. */
.cr-study-system__intro h2 {
  display: none !important;
}

.cr-study-system__one-line {
  max-width: 100% !important;
  width: 100%;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.38rem, 2vw, 1.85rem) !important;
  line-height: 1.18 !important;
  color: var(--cr-ink, #0c1f1c) !important;
  white-space: nowrap;
  overflow-wrap: normal;
  text-wrap: nowrap;
  margin-top: 0.25rem !important;
  margin-bottom: 0 !important;
}

.cr-process-grid--animated,
.cr-study-system__grid--single .cr-process-grid {
  margin-top: clamp(0.7rem, 1.4vw, 1rem) !important;
}

/* Reduce the visual river between the process card and the community panel. */
.cr-community--world {
  margin-top: 0 !important;
}

@media (max-width: 1180px) {
  .cr-study-system__one-line {
    white-space: normal;
    text-wrap: balance;
    max-width: 760px !important;
  }
}

@media (max-width: 760px) {
  .cr-study-system {
    margin-bottom: 1rem !important;
  }

  .cr-study-system + .cr-final-actions,
  .cr-final-actions {
    margin-top: 0.9rem !important;
  }

  .cr-study-system__intro {
    margin-bottom: 0.8rem !important;
  }

  .cr-study-system__one-line {
    font-size: clamp(1.18rem, 5vw, 1.55rem) !important;
    line-height: 1.22 !important;
    white-space: normal;
    text-wrap: balance;
  }
}


/* v62: Learning paths should open recommended cards by clicking the whole card.
   Hide the small “/ ” action labels/buttons only. */
.cr-learning-paths .cr-level-card__action,
.cr-learning-paths .cr-level__action,
.cr-learning-paths .cr-path-card__action,
.cr-learning-paths [data-level-action],
.cr-learning-paths [data-cr-level-toggle],
.cr-learning-paths button[class*="view"],
.cr-learning-paths button[class*="toggle"],
.cr-learning-paths a[class*="view"],
.cr-learning-paths a[class*="toggle"] {
  display: none !important;
}

/* Preserve clear affordance: the cards themselves remain clickable. */
.cr-learning-paths .cr-level-card,
.cr-learning-paths [data-level],
.cr-learning-paths .cr-path-card {
  cursor: pointer;
}

.cr-learning-paths .cr-level-card:focus-visible,
.cr-learning-paths [data-level]:focus-visible,
.cr-learning-paths .cr-path-card:focus-visible {
  outline: 3px solid rgba(0, 82, 68, 0.28);
  outline-offset: 4px;
}


/* v63: final tight premium homepage rhythm.
   Removes the large visual gaps between homepage sections while keeping enough
   breathing space for a premium EdTech look. */

/* Compact the whole homepage vertical rhythm. */
.cr-home {
  --cr-section-gap: clamp(0.85rem, 1.55vw, 1.35rem) !important;
}

/* Direct siblings only: small consistent rhythm between sections. */
.cr-home > section + section {
  margin-top: clamp(0.85rem, 1.55vw, 1.35rem) !important;
}

/* Major rail/card sections: remove hidden excess padding/margins. */
.cr-study-area,
.cr-learning-paths,
.cr-momentum,
.cr-library-stream,
.cr-saved-lane,
.cr-study-system,
.cr-final-actions {
  margin-top: clamp(0.85rem, 1.55vw, 1.35rem) !important;
  margin-bottom: 0 !important;
}

/* The visual bands were creating large vertical rivers. Keep the color bands,
   but reduce their inside air. */
.cr-band,
.cr-home-band,
.cr-home__band,
.cr-section-band,
.cr-home-section {
  padding-top: clamp(0.85rem, 1.7vw, 1.4rem) !important;
  padding-bottom: clamp(0.85rem, 1.7vw, 1.4rem) !important;
}

/* Search and learning path remain featured, but not over-spaced. */
.cr-home-search--feature {
  margin-top: clamp(1rem, 2vw, 1.6rem) !important;
  margin-bottom: clamp(0.85rem, 1.55vw, 1.25rem) !important;
  padding-block: clamp(1.65rem, 3.1vw, 2.45rem) !important;
}

.cr-learning-paths {
  padding-block: clamp(1.15rem, 2.35vw, 1.85rem) !important;
}

/* Reduce header-to-cards and rail-to-rail gaps. */
.cr-premium-head,
.cr-rail__head,
.cr-learning-paths__head {
  margin-bottom: clamp(0.55rem, 1.15vw, 0.9rem) !important;
}

.cr-rail__track,
.cr-premium-track,
.cr-home-cards,
.cr-card-rail,
.cr-learning-paths__grid,
.cr-learning-paths__cards,
.cr-level-grid {
  margin-top: clamp(0.55rem, 1.1vw, 0.85rem) !important;
}

/* Learning path recommendation area should sit close to the level cards. */
.cr-level-recommendations,
.cr-level-recommendations[aria-hidden="false"],
.cr-learning-paths__recommendations,
.cr-recommended-level-cards {
  margin-top: clamp(0.7rem, 1.25vw, 0.95rem) !important;
  padding-top: clamp(0.65rem, 1.15vw, 0.85rem) !important;
}

/* How-it-works: no large gap after the one-line text. */
.cr-study-system {
  padding: clamp(1rem, 2vw, 1.55rem) !important;
  gap: clamp(0.65rem, 1.1vw, 0.9rem) !important;
}

.cr-study-system__intro {
  margin-bottom: 0 !important;
}

.cr-study-system__intro h2 {
  display: none !important;
}

.cr-study-system__one-line {
  max-width: 100% !important;
  width: 100%;
  margin: 0.15rem 0 clamp(0.55rem, 1.1vw, 0.8rem) 0 !important;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.2rem, 1.55vw, 1.55rem) !important;
  line-height: 1.2 !important;
  color: var(--cr-ink, #0c1f1c) !important;
  white-space: nowrap;
  overflow-wrap: normal;
  text-wrap: nowrap;
}

.cr-process-grid--animated,
.cr-study-system__grid--single .cr-process-grid,
.cr-study-system .cr-process-grid {
  margin-top: 0 !important;
  gap: clamp(0.55rem, 1vw, 0.75rem) !important;
}

.cr-process-grid--animated .cr-process-card,
.cr-study-system__grid--single .cr-process-card,
.cr-study-system .cr-process-card {
  min-height: 104px !important;
  padding: clamp(0.75rem, 1.25vw, 0.95rem) !important;
}

/* Critical requested fix: How-it-works to Community should feel connected. */
.cr-study-system + .cr-final-actions,
.cr-final-actions {
  margin-top: clamp(0.65rem, 1.2vw, 0.95rem) !important;
}

.cr-community--world,
.cr-community,
.cr-final-actions .cr-community {
  margin-top: 0 !important;
  padding-block: clamp(1.45rem, 2.75vw, 2.15rem) !important;
}

/* Avoid oversized dead air before footer. */
.cr-final-actions {
  margin-bottom: clamp(0.85rem, 1.6vw, 1.25rem) !important;
}

.cr-footer,
.site-footer {
  margin-top: 0 !important;
}

/* If any section has previous min-height rules, do not let them create empty space. */
.cr-momentum,
.cr-library-stream,
.cr-saved-lane,
.cr-study-system,
.cr-final-actions {
  min-height: 0 !important;
}

/* Mobile: even tighter, because vertical scroll feels larger on phone. */
@media (max-width: 760px) {
  .cr-home {
    --cr-section-gap: 0.9rem !important;
  }

  .cr-home > section + section,
  .cr-study-area,
  .cr-learning-paths,
  .cr-momentum,
  .cr-library-stream,
  .cr-saved-lane,
  .cr-study-system,
  .cr-final-actions {
    margin-top: 0.95rem !important;
  }

  .cr-home-search--feature {
    padding-block: 1.15rem !important;
    margin-top: 0.95rem !important;
    margin-bottom: 0.8rem !important;
  }

  .cr-learning-paths {
    padding-block: 1rem !important;
  }

  .cr-study-system {
    padding: 0.95rem !important;
  }

  .cr-study-system__one-line {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(1.05rem, 4.2vw, 1.35rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 0.65rem !important;
  }

  .cr-study-system + .cr-final-actions,
  .cr-final-actions {
    margin-top: 0.75rem !important;
  }

  .cr-community--world,
  .cr-community,
  .cr-final-actions .cr-community {
    padding-block: 1.25rem !important;
  }
}


/* v64: final fallback — remove the top “View cards / Hide cards” chips from
   Start at your level without disabling the card click behavior. */
.cr-learning-paths .cr-level-card > a:first-child,
.cr-learning-paths .cr-level-card > button:first-child,
.cr-learning-paths .cr-level-card > .cr-level-card__top-action,
.cr-learning-paths .cr-level-card > .cr-level-card__view,
.cr-learning-paths .cr-level-card > .cr-level-card__toggle,
.cr-learning-paths .cr-level-card > .cr-level-card__cta,
.cr-learning-paths .cr-level-card > .cr-view-cards,
.cr-learning-paths .cr-level-card > .cr-hide-cards,
.cr-learning-paths .cr-level-card > [class*="view-card"],
.cr-learning-paths .cr-level-card > [class*="hide-card"],
.cr-learning-paths .cr-level-card > [class*="toggle-card"],
.cr-learning-paths [data-cr-level-toggle],
.cr-learning-paths [data-level-toggle],
.cr-learning-paths [data-level-action] {
  display: none !important;
}

/* In case the label is printed as a small absolutely-positioned chip. */
.cr-learning-paths .cr-level-card [aria-label*="View cards"],
.cr-learning-paths .cr-level-card [aria-label*="Hide cards"],
.cr-learning-paths .cr-level-card [title*="View cards"],
.cr-learning-paths .cr-level-card [title*="Hide cards"] {
  display: none !important;
}

/* Premium final polish for the level cards after removing the extra chip. */
.cr-learning-paths .cr-level-card,
.cr-learning-paths [data-level].cr-level-card {
  position: relative;
  padding-top: clamp(1rem, 1.8vw, 1.35rem) !important;
}

.cr-learning-paths .cr-level-card .cr-level-card__badge,
.cr-learning-paths .cr-level-card .cr-level-badge,
.cr-learning-paths .cr-level-card .cr-pill:first-of-type {
  margin-top: 0 !important;
}

/* Tighten section rhythm one more step based on the latest screenshot. */
.cr-learning-paths + .cr-momentum,
.cr-momentum + .cr-library-stream,
.cr-library-stream + .cr-saved-lane,
.cr-saved-lane + .cr-study-system,
.cr-study-system + .cr-final-actions {
  margin-top: clamp(0.55rem, 1.05vw, 0.9rem) !important;
}

.cr-study-system .cr-process-grid,
.cr-process-grid--animated {
  margin-top: clamp(0.35rem, 0.75vw, 0.55rem) !important;
}

.cr-study-system__one-line {
  margin-bottom: clamp(0.35rem, 0.8vw, 0.55rem) !important;
}

.cr-final-actions {
  margin-top: clamp(0.55rem, 1.05vw, 0.9rem) !important;
}

@media (max-width: 760px) {
  .cr-learning-paths + .cr-momentum,
  .cr-momentum + .cr-library-stream,
  .cr-library-stream + .cr-saved-lane,
  .cr-saved-lane + .cr-study-system,
  .cr-study-system + .cr-final-actions {
    margin-top: 0.7rem !important;
  }

  .cr-learning-paths .cr-level-card,
  .cr-learning-paths [data-level].cr-level-card {
    padding-top: 1rem !important;
  }
}
/* v67: search page polish
   - Remove the default Home breadcrumb gap.
   - Tighten spacing between search hero, result title, and cards.
   - Replace Drupal teaser-looking cards with full-click premium concept cards. */

.cr-main--search {
  padding-top: clamp(0.75rem, 1.7vw, 1.2rem) !important;
}

.cr-main--search .cr-container {
  width: min(100% - 2rem, var(--cr-container, 1180px));
}

.cr-main--search .cr-breadcrumb,
.cr-main--search nav[aria-label="Breadcrumb"],
.cr-main--search .block-system-breadcrumb-block {
  display: none !important;
}

.cr-search-page {
  gap: clamp(1.15rem, 2vw, 1.75rem) !important;
}

.cr-home-search--page {
  margin-top: 0 !important;
  padding: clamp(1.35rem, 2.6vw, 2.15rem) clamp(1.35rem, 3vw, 2.35rem) !important;
  border-radius: clamp(1.25rem, 2.2vw, 1.75rem);
}

.cr-search-results {
  margin-top: 0 !important;
}

.cr-search-results .cr-rail__head {
  align-items: end;
  gap: 1rem;
  margin-bottom: clamp(0.62rem, 1.15vw, 0.95rem) !important;
}

.cr-search-results .cr-rail__title {
  margin: 0;
  font-size: clamp(1.65rem, 2.45vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.cr-search-results .cr-rail__link {
  transform: translateY(-0.15rem);
}

.cr-search-results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.25vw, 1.05rem);
  align-items: stretch;
}

.cr-search-result-card {
  --cr-card-accent: var(--cr-accent, #004b3f);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(116px, 10vw, 142px);
  padding: clamp(1rem, 1.55vw, 1.22rem);
  color: var(--cr-text, #211f1b);
  text-decoration: none;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--cr-card-accent) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border: 1px solid color-mix(in srgb, var(--cr-card-accent) 20%, var(--cr-border, #d9e5e2));
  border-left: 4px solid var(--cr-card-accent);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 34px rgba(24, 21, 18, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.cr-search-result-card:hover,
.cr-search-result-card:focus-visible {
  color: var(--cr-text, #211f1b);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cr-card-accent) 42%, var(--cr-border, #d9e5e2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 20px 48px rgba(24, 21, 18, 0.1);
  outline: none;
}

.cr-search-result-card__title {
  display: block;
  max-width: 18ch;
  font-family: var(--cr-font-serif, Georgia, serif);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.016em;
}

.cr-search-result-card__teaser {
  display: block;
  max-width: 32ch;
  margin-top: 0.48rem;
  color: color-mix(in srgb, var(--cr-text-muted, #5d5953) 92%, black);
  font-family: var(--cr-font-sans, system-ui, sans-serif);
  font-size: clamp(0.82rem, 0.9vw, 0.92rem);
  line-height: 1.42;
}

.cr-tint-card--0 { --cr-card-accent: #2d8a7d; }
.cr-tint-card--1 { --cr-card-accent: #d8755a; }
.cr-tint-card--2 { --cr-card-accent: #c49a3f; }
.cr-tint-card--3 { --cr-card-accent: #7c9fd6; }

@media (max-width: 1180px) {
  .cr-search-results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cr-search-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cr-home-search--page {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .cr-main--search {
    padding-top: 0.55rem !important;
  }

  .cr-main--search .cr-container {
    width: min(100% - 1rem, var(--cr-container, 1180px));
  }

  .cr-search-page {
    gap: 0.95rem !important;
  }

  .cr-home-search--page {
    padding: 1.05rem !important;
  }

  .cr-search-results .cr-rail__head {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem;
    margin-bottom: 0.62rem !important;
  }

  .cr-search-results .cr-rail__title {
    font-size: clamp(1.28rem, 7vw, 1.65rem);
  }

  .cr-search-results .cr-rail__link {
    display: none;
  }

  .cr-search-results__grid {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .cr-search-result-card {
    min-height: 108px;
    padding: 1rem;
    border-radius: 17px;
  }

  .cr-search-result-card__title {
    max-width: 100%;
    font-size: clamp(1.04rem, 5.2vw, 1.22rem);
  }

  .cr-search-result-card__teaser {
    max-width: 100%;
    font-size: 0.9rem;
  }
}



/* =====================================================================
   v77: final premium polish pass
   ---------------------------------------------------------------------
   Keeps the approved v64/v76 homepage layout. This pass only improves
   micro-rhythm, typography, hover affordance, and mobile safety.
   ===================================================================== */

.cr-home {
  gap: clamp(0.9rem, 1.45vw, 1.25rem) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.cr-home > section + section {
  margin-top: clamp(0.85rem, 1.45vw, 1.25rem) !important;
}

/* Hero: slightly more refined editorial balance without changing layout. */
.cr-home__hero-title {
  letter-spacing: -0.064em;
}

.cr-home__hero-line--ink,
.cr-home__hero-line--accent,
.cr-home__hero-line--warm {
  display: block;
  transform: translateZ(0);
}

.cr-home__hero-lead {
  max-width: 56ch;
  color: rgba(12, 31, 28, 0.78);
}

.cr-home__hero-actions .cr-btn,
.cr-nav__cta,
.cr-home-search__form button,
.cr-community__btn {
  will-change: transform;
}

.cr-home__hero-actions .cr-btn:hover,
.cr-home__hero-actions .cr-btn:focus-visible,
.cr-community__btn:hover,
.cr-community__btn:focus-visible {
  transform: translateY(-2px);
}

.cr-home__daily {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.88) inset,
    0 20px 56px rgba(0, 63, 52, 0.09);
}

.cr-home__daily-title {
  letter-spacing: -0.028em;
}

/* Search block: stronger product feel, still calm. */
.cr-home-search--feature {
  border-radius: clamp(1.6rem, 3vw, 2.45rem) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.94) inset,
    0 28px 74px rgba(0, 63, 52, 0.072) !important;
}

.cr-home-search--feature .cr-home-search__title {
  letter-spacing: -0.044em;
}

.cr-home-search--feature .cr-home-search__form {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.94) inset,
    0 12px 32px rgba(0, 43, 32, 0.085) !important;
}

.cr-home-search__trending a {
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
}

/* Section headers: premium editorial line height. */
.cr-study-area__title,
.cr-premium-head__title,
.cr-learning-paths__title {
  letter-spacing: -0.041em;
  text-wrap: balance;
}

.cr-premium-head__copy p,
.cr-learning-paths__lead,
.cr-study-area__titleline .cr-rail__subtitle {
  color: rgba(64, 73, 69, 0.78);
}

/* Cards: consistent top light, stronger focus, no accidental stretching. */
.cr-category-card--premium,
.cr-level-card,
.cr-momentum-card,
.cr-library-card,
.cr-saved-card,
.cr-process-card {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.cr-category-card--premium,
.cr-momentum-card,
.cr-library-card,
.cr-saved-card {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 14px 34px rgba(0, 43, 32, 0.052) !important;
}

.cr-category-card--premium:hover,
.cr-momentum-card:hover,
.cr-library-card:hover,
.cr-saved-card:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 24px 52px rgba(0, 43, 32, 0.095) !important;
}

.cr-category-card--premium .cr-category-card__title,
.cr-momentum-card__title,
.cr-library-card__title,
.cr-saved-card__title,
.cr-level-card__title {
  text-wrap: balance;
}

.cr-category-card--premium .cr-category-card__cta,
.cr-library-card__cta,
.cr-premium-link {
  text-underline-offset: 0.28em;
}

.cr-category-card--premium:hover .cr-category-card__cta,
.cr-library-card:hover .cr-library-card__cta,
.cr-premium-link:hover {
  text-decoration-thickness: 1px;
}

/* Learning paths: make the three cards feel centered and intentional. */
.cr-learning-paths {
  padding-top: clamp(1.25rem, 2.45vw, 1.95rem) !important;
  padding-bottom: clamp(1.25rem, 2.45vw, 1.95rem) !important;
}

.cr-learning-paths__grid {
  align-items: stretch;
}

.cr-level-card {
  min-height: 210px !important;
}

.cr-level-card__meta {
  margin-top: auto;
}

/* Lower cards: compact but readable. */
.cr-momentum-card {
  min-height: 112px !important;
}

.cr-library-card {
  min-height: 138px !important;
}

.cr-saved-card {
  min-height: 88px !important;
}

.cr-momentum-card__cat,
.cr-library-card__cat,
.cr-saved-card__cat {
  opacity: 0.92;
}

/* How it works: clear single-line pitch + compact process cards. */
.cr-study-system {
  padding: clamp(0.95rem, 1.85vw, 1.45rem) !important;
}

.cr-study-system__one-line {
  color: rgba(12, 31, 28, 0.92) !important;
  font-size: clamp(1.08rem, 1.38vw, 1.42rem) !important;
  letter-spacing: -0.015em;
}

.cr-process-card {
  background: rgba(244, 249, 248, 0.72);
  min-height: 98px !important;
}

.cr-process-card span {
  box-shadow: 0 8px 18px rgba(0, 63, 52, 0.13);
}

/* Community CTA: richer but not heavier. */
.cr-community--world {
  border-radius: clamp(1.1rem, 2.2vw, 1.65rem);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.16) inset,
    0 26px 70px rgba(0, 63, 52, 0.20) !important;
}

.cr-community__title {
  letter-spacing: -0.025em;
}

/* Rail controls feel sharper and more clickable. */
.cr-rail__control {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.86) inset,
    0 8px 20px rgba(0, 43, 32, 0.055);
}

.cr-rail__control:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 14px 30px rgba(0, 43, 32, 0.09);
}

/* Mobile: keep premium look without large vertical scroll or broken rows. */
@media (max-width: 760px) {
  .cr-home {
    gap: 0.85rem !important;
  }

  .cr-home > section + section {
    margin-top: 0.85rem !important;
  }

  .cr-home__hero-title {
    letter-spacing: -0.058em;
  }

  .cr-home__hero-lead {
    font-size: clamp(1.06rem, 4.4vw, 1.26rem);
    line-height: 1.44;
  }

  .cr-home-search--feature {
    border-radius: 1.35rem !important;
  }

  .cr-study-area__head {
    gap: 0.55rem !important;
  }

  .cr-category-card--premium,
  .cr-level-card,
  .cr-momentum-card,
  .cr-library-card,
  .cr-saved-card {
    border-radius: 1rem;
  }

  .cr-level-card {
    min-height: auto !important;
  }

  .cr-momentum-card,
  .cr-library-card,
  .cr-saved-card,
  .cr-process-card {
    min-height: auto !important;
  }

  .cr-process-grid--animated,
  .cr-study-system__grid--single .cr-process-grid,
  .cr-study-system .cr-process-grid {
    gap: 0.6rem !important;
  }

  .cr-community__actions {
    gap: 0.55rem;
  }

  .cr-community__btn {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-home * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
