/* Guided discovery: a compact, keyboard-friendly three-step shopping conversation. */
.course-finder {
  --finder-ink: #211334;
  --finder-purple: #6527df;
  color: var(--finder-ink);
}
.finder-steps {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.finder-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #776982;
  font-size: 0.875rem;
  flex: 1;
  padding-bottom: 12px;
  border-bottom: 3px solid #eee8f7;
}
.finder-steps li > span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f0eaf8;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
}
.finder-steps li.current {
  color: var(--finder-purple);
  border-color: var(--finder-purple);
  font-weight: 600;
}
.finder-steps li.current > span {
  background: var(--finder-purple);
  color: white;
}
.finder-steps li.complete {
  color: #533980;
  border-color: #d8baff;
}
.finder-steps li.complete > span {
  background: #e5ff72;
  color: #293612;
}
.finder-heading {
  margin: 0 0 24px;
}
.finder-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.35;
  margin: 6px 0 10px;
}
.finder-heading p {
  color: #6b5e79;
  font-size: 1rem;
  margin: 0;
  line-height: 1.7;
}
.finder-tiny {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--finder-purple);
}
.finder-subjects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.finder-subject {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e8def4;
  border-radius: 20px;
  background: #f7f2ff;
  padding: 23px 20px;
  text-align: left;
  min-height: 128px;
  color: var(--finder-ink);
  position: relative;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.finder-subject:hover {
  transform: translateY(-3px);
  border-color: var(--finder-purple);
  box-shadow: 0 10px 25px #4d1d8512;
}
.finder-subject:active {
  transform: translateY(0) scale(0.985);
}
.finder-lime {
  background: #f0f8cf;
  border-color: #dce8b4;
}
.finder-pink {
  background: #fff0f5;
  border-color: #f2d6e2;
}
.finder-blue {
  background: #eef3ff;
  border-color: #d9e2f9;
}
.finder-symbol {
  display: grid;
  place-items: center;
  width: 62px;
  height: 66px;
  flex: none;
  border-radius: 17px;
  background: var(--finder-purple);
  color: white;
  font-size: 2rem;
  font-weight: 500;
  transform: rotate(-6deg);
  box-shadow: 3px 4px 0 #271b4210;
}
.finder-lime .finder-symbol {
  background: #dafa54;
  color: #314018;
}
.finder-pink .finder-symbol {
  background: #ff91b8;
  color: #521a3d;
  font-size: 1.1rem;
  transform: rotate(7deg);
}
.finder-blue .finder-symbol {
  background: #8daeff;
  color: #14335e;
  transform: rotate(5deg);
}
.finder-choice-copy {
  display: grid;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.finder-choice-copy strong {
  font-size: 1.17rem;
  line-height: 1.35;
  font-weight: 600;
}
.finder-choice-copy > span {
  color: #68566f;
  font-size: 0.875rem;
  line-height: 1.55;
}
.finder-select-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #8f77ac55;
  color: var(--finder-purple);
  flex: none;
  font-size: 1.1rem;
}
.finder-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0 0;
  font-size: 0.875rem;
  color: #75677d;
}
.finder-help .text-button {
  padding: 0;
  color: var(--finder-purple);
  font-size: 0.875rem;
}
.finder-back {
  border: 0;
  background: none;
  color: #6c5884;
  font: inherit;
  font-size: 0.875rem;
  padding: 6px 0;
  margin: 0 0 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 34px;
}
.finder-back:hover {
  color: var(--finder-purple);
}
.finder-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.finder-level {
  text-align: left;
  padding: 23px;
  border-radius: 19px;
  border: 1px solid #e8def4;
  background: #fbf9ff;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--finder-ink);
  min-height: 210px;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.finder-level:hover {
  background: #f0e6ff;
  border-color: var(--finder-purple);
  transform: translateY(-3px);
}
.finder-level-symbol {
  color: var(--finder-purple);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.finder-level strong {
  font-size: 1.2rem;
  font-weight: 600;
}
.finder-level > span:not(.finder-level-symbol):not(.finder-level-cta) {
  color: #73637f;
  line-height: 1.6;
  font-size: 0.875rem;
}
.finder-level .finder-level-cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.875rem;
  color: var(--finder-purple);
}
.finder-level-all {
  background: #edffc1;
  border-color: #dae9b5;
}
.finder-level-all:hover {
  background: #e6f9ab;
}
.finder-note {
  color: #776883;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 20px 0 0;
}
.finder-heading-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.finder-heading-results .finder-cart {
  flex: none;
  gap: 8px;
  font-size: 0.875rem;
}
.finder-cart [data-count] {
  display: grid;
  place-items: center;
  background: #6b2ddc;
  color: #fff;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 0.75rem;
}
.finder-filter-bar {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.25fr auto;
  gap: 10px;
  align-items: end;
  padding: 17px;
  border-radius: 16px;
  background: #f5f1fa;
}
.finder-filter-bar label {
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  color: #62516f;
  min-width: 0;
}
.finder-filter-bar select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 32px 0 11px;
  border: 1px solid #ddd2eb;
  border-radius: 9px;
  color: #2d2040;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23694d88' stroke-width='1.5'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  appearance: none;
  font: inherit;
  font-size: 0.875rem;
  text-overflow: ellipsis;
}
.finder-filter-bar select:disabled {
  color: #8b8194;
  background-color: #eee9f4;
  cursor: not-allowed;
}
.finder-reset {
  background: none;
  border: 0;
  color: var(--finder-purple);
  padding: 10px 5px;
  min-height: 44px;
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finder-filter-note {
  font-size: 0.8125rem;
  color: #7a6b85;
  margin: 10px 0 20px;
  line-height: 1.6;
}
.finder-results-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 20px 0 15px;
  flex-wrap: wrap;
}
.finder-mode {
  display: flex;
  gap: 6px;
  background: #f5f0fc;
  padding: 5px;
  border-radius: 13px;
}
.finder-chip {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: #735c8c;
  min-height: 42px;
}
.finder-chip[aria-pressed="true"] {
  background: #6424df;
  color: #fff;
  box-shadow: 0 3px 7px #6424df20;
}
.finder-chip[data-id="packages"][aria-pressed="true"] {
  background: #e0fa6b;
  color: #293611;
}
.finder-search {
  min-width: 170px;
  flex: 1;
  max-width: 240px;
}
.finder-search input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2d7ee;
  border-radius: 11px;
  font: inherit;
  font-size: 0.875rem;
  min-height: 44px;
  background: #fff;
  color: var(--finder-ink);
}
.finder-evidence {
  background: #faf7fe;
  border: 1px solid #e8e0f1;
  border-radius: 12px;
  font-size: 0.875rem;
  margin: 15px 0;
}
.finder-evidence summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #654784;
  line-height: 1.6;
}
.finder-evidence > div {
  padding: 0 16px 16px;
  color: #6b5a78;
}
.finder-evidence p {
  margin: 10px 0;
}
.finder-evidence ul {
  padding-left: 20px;
}
.finder-evidence a {
  display: block;
  color: #6031aa;
  text-decoration: underline;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.finder-results-count {
  font-size: 0.875rem;
  color: #715f80;
  margin: 20px 0 12px;
}
.finder-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}
.finder-product {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.finder-product > .shop-card {
  flex: 1;
}
.finder-product .card-summary {
  min-height: 0;
}
.finder-product .match-reason {
  font-size: 0.875rem;
  line-height: 1.6;
}
.finder-product .cover-link {
  max-height: 210px;
}
.finder-product .cover-link img {
  max-height: 186px;
  object-fit: contain;
}
.finder-package-note {
  font-size: 0.8125rem;
  color: #715b82;
  line-height: 1.6;
  margin: 8px 0 0;
  background: #f4eff9;
  border-radius: 9px;
  padding: 9px 11px;
}
.finder-empty {
  text-align: center;
  background: #faf8fd;
  border: 1px dashed #dcd0e9;
  padding: 32px 22px;
  border-radius: 20px;
  margin: 18px 0;
}
.finder-empty > span {
  font-size: 2rem;
  color: #9270c2;
}
.finder-empty h3 {
  font-size: 1.25rem;
  margin: 10px 0;
}
.finder-empty p {
  font-size: 0.9375rem;
  color: #766481;
  max-width: 480px;
  margin: 10px auto 22px;
}
.finder-empty > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.finder-empty .button {
  font-size: 0.875rem;
}
.finder-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #ece5f3;
  font-size: 0.8125rem;
  color: #7b6b85;
}
.finder-bottom .text-button {
  font-size: 0.875rem;
}
.course-finder :is(button, input, select):focus-visible {
  outline: 3px solid #ad7cff;
  outline-offset: 3px;
}
.course-finder .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 850px) {
  .finder-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .finder-filter-bar > label:nth-child(3) {
    grid-column: 1/-1;
  }
  .finder-reset {
    grid-column: 1/-1;
    justify-self: end;
    min-height: 32px;
    padding: 4px;
  }
  .finder-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finder-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finder-subject {
    padding: 20px 16px;
    gap: 12px;
  }
  .finder-symbol {
    width: 48px;
    height: 54px;
  }
  .finder-select-mark {
    display: none;
  }
}
@media (max-width: 560px) {
  .finder-steps {
    margin-bottom: 22px;
    gap: 5px;
  }
  .finder-steps li {
    font-size: 0.75rem;
    gap: 5px;
    padding-bottom: 10px;
  }
  .finder-steps li > span {
    width: 22px;
    height: 22px;
    font-size: 0.6875rem;
  }
  .finder-heading h2 {
    font-size: 1.65rem;
  }
  .finder-heading p {
    font-size: 0.9375rem;
  }
  .finder-subjects {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .finder-subject {
    min-height: 100px;
    padding: 16px;
    border-radius: 15px;
  }
  .finder-symbol {
    width: 52px;
    height: 56px;
  }
  .finder-choice-copy strong {
    font-size: 1.0625rem;
  }
  .finder-choice-copy > span {
    font-size: 0.875rem;
  }
  .finder-help {
    text-align: center;
    gap: 5px;
  }
  .finder-levels {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .finder-level {
    min-height: 0;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 3px 12px;
    padding: 18px;
  }
  .finder-level-symbol {
    grid-row: 1/4;
    margin: 0;
    align-self: center;
  }
  .finder-level strong {
    font-size: 1.1rem;
  }
  .finder-level .finder-level-cta {
    padding-top: 6px;
  }
  .finder-heading-results {
    align-items: flex-start;
    gap: 10px;
  }
  .finder-heading-results h2 {
    font-size: 1.5rem;
  }
  .finder-heading-results .finder-cart {
    padding: 8px 10px;
    font-size: 0.8125rem;
    gap: 5px;
    min-height: 42px;
  }
  .finder-heading-results p {
    max-width: 230px;
  }
  .finder-filter-bar {
    padding: 12px;
    gap: 10px;
  }
  .finder-filter-bar label {
    font-size: 0.8125rem;
  }
  .finder-filter-bar select {
    font-size: 0.875rem;
  }
  .finder-results-toolbar {
    gap: 10px;
  }
  .finder-mode {
    width: 100%;
  }
  .finder-chip {
    padding: 9px 10px;
    flex: 1;
    font-size: 0.8125rem;
  }
  .finder-search {
    max-width: none;
    flex-basis: 100%;
  }
  .finder-products {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .finder-product .shop-card {
    display: grid;
    grid-template-columns: 102px 1fr;
  }
  .finder-product .cover-link {
    padding: 8px;
    align-self: start;
    background: #faf7ff;
    border-radius: 14px;
    margin: 8px 0 0 8px;
  }
  .finder-product .cover-link img {
    max-height: 102px;
  }
  .finder-product .shop-card-body {
    padding: 13px;
  }
  .finder-product .shop-card h3 {
    font-size: 1rem;
  }
  .finder-product .card-summary {
    font-size: 0.875rem;
    margin-bottom: 10px;
  }
  .finder-product .match-reason {
    font-size: 0.8125rem;
    padding: 8px;
  }
  .finder-product .card-actions {
    flex-wrap: wrap;
  }
  .finder-product .card-price strong {
    font-size: 1.25rem;
  }
  .finder-product .card-actions .button {
    font-size: 0.8125rem;
  }
  .finder-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .finder-empty {
    padding: 26px 16px;
  }
}

.finder-filters {
  border: 1px solid #e8def4;
  background: #f5f1fa;
  border-radius: 16px;
}
.finder-filters > summary {
  padding: 13px 17px;
  cursor: pointer;
  color: #67458c;
  font-size: 14px;
}
.finder-filters .finder-filter-note {
  padding: 0 17px 14px;
  margin: 0;
  font-size: 14px;
}
.finder-filter-note,
.finder-package-note,
.finder-bottom {
  font-size: 14px;
}
@media (max-width: 560px) {
  .finder-heading {
    margin-bottom: 16px;
  }
  .finder-steps {
    margin-bottom: 12px;
  }
  .finder-back {
    margin-bottom: 10px;
  }
  .finder-heading-results p {
    font-size: 14px;
  }
  .finder-filter-bar label,
  .finder-chip,
  .finder-heading-results .finder-cart,
  .finder-product .match-reason,
  .finder-product .card-actions .button {
    font-size: 14px;
  }
  .finder-filters > summary {
    padding: 13px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .finder-subject,
  .finder-level {
    transition: none;
  }
  .finder-subject:hover,
  .finder-level:hover {
    transform: none;
  }
}
