/* shop: package, category, event and course pages (loaded after inner). Breakpoints 991 / 767 / 479. */

/* ---------------------------------------------------------------- head (inner hero with free content) */
.sp-head .pg-hero__content { row-gap: 20px; }
:root .sp-head__title.sp-head__title { font-size: 64px; line-height: 1.08; }
.sp-head.pg-hero--page .sp-head__content > .pg-hero__lead { margin-top: 0; }
.sp-head__link { margin: 0; }
@media (max-width: 991px) { :root .sp-head__title.sp-head__title { font-size: 52px; } }
@media (max-width: 767px) { :root .sp-head__title.sp-head__title { font-size: 44px; } }
@media (max-width: 479px) { :root .sp-head__title.sp-head__title { font-size: 36px; } }

/* ---------------------------------------------------------------- breadcrumb */
.sp-crumbs { font-size: 14px; line-height: 21.7px; color: var(--doma-muted); }
.sp-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; padding: 0; list-style: none; }
.sp-crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.sp-crumbs__item[aria-current] { color: var(--doma-ink); }
.sp-crumbs__link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--doma-muted);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--doma-line); transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}
.sp-crumbs__link:hover { color: var(--doma-ink); text-decoration-color: currentColor; }
.sp-crumbs__sep { color: var(--doma-ink-50); }

/* ---------------------------------------------------------------- category links */
.sp-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sp-cats__label { margin: 0; font: 600 13px/18.2px var(--font-text); color: var(--doma-muted); }
.sp-cats__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-cats__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--doma-line); border-radius: 2px; background: var(--doma-white);
  font: 600 14px/1 var(--font-text); color: var(--doma-ink); text-decoration: none;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.sp-cats__link:hover { border-color: var(--doma-ink-50); }
.sp-cats__link[aria-current="page"] { background: var(--doma-panel); border-color: var(--doma-ink); }
.sp-cats__link:focus-visible { outline: 2px solid var(--doma-ink); outline-offset: 2px; }

/* ---------------------------------------------------------------- product text and price */
.sp-text { max-width: 588px; font-size: 18px; line-height: 27px; color: var(--doma-ink); }
.sp-text > p { margin: 0 0 12px; }
.sp-text > :last-child { margin-bottom: 0; }
.sp-text__list { margin: 0 0 12px; padding-left: 22px; list-style: disc; }
.sp-text__list li { margin-bottom: 6px; padding-left: 4px; }
.sp-price {
  display: flex; flex-direction: column; row-gap: 6px; max-width: 588px; padding-top: 20px;
  border-top: 1px solid var(--doma-line);
}
.sp-price__value {
  margin: 4px 0 0; font: 400 56px/1.05 var(--font-display); letter-spacing: -1.1px;
  font-variant-numeric: tabular-nums; color: var(--doma-ink);
}
.sp-price__anchor { margin: 0; font-size: 14px; line-height: 21.7px; color: var(--doma-muted); }
.sp-price__meta { margin: 6px 0 0; font: 600 14px/21.7px var(--font-text); color: var(--doma-ink); }
.sp-price__line { margin: 0; font-size: 16px; line-height: 24.8px; color: var(--doma-ink); }
@media (max-width: 991px) { .sp-text { font-size: 16px; line-height: 24.8px; } }
@media (max-width: 479px) { .sp-price__value { font-size: 44px; } }

/* ---------------------------------------------------------------- link row under the related packages */
.sp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 16px; line-height: 24.8px; }
.sp-links .pg-link { display: inline-flex; align-items: center; min-height: 44px; }
.sp-links__date { margin: 0; font-size: 14px; line-height: 21.7px; color: var(--doma-muted); }

/* ---------------------------------------------------------------- event facts */
.sp-facts { display: flex; flex-direction: column; max-width: 588px; margin: 8px 0 0; border-top: 1px solid var(--doma-line); }
.sp-facts__row {
  display: grid; grid-template-columns: 120px 1fr; gap: 4px 24px; padding: 16px 0;
  border-bottom: 1px solid var(--doma-line);
}
.sp-facts dt { font: 600 13px/24.8px var(--font-text); color: var(--doma-muted); }
.sp-facts dd { margin: 0; font-size: 18px; line-height: 27px; color: var(--doma-ink); }
.sp-facts__note { display: block; font-size: 14px; line-height: 21.7px; color: var(--doma-muted); }
.sp-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; font: 600 13px/1.4 var(--font-text);
  color: var(--doma-ink); background: var(--doma-tint-2);
}
@media (max-width: 479px) {
  .sp-facts__row { grid-template-columns: 1fr; }
  .sp-facts dd { font-size: 16px; line-height: 24.8px; }
}

/* ---------------------------------------------------------------- event text and info */
.sp-event-text { font-size: 18px; line-height: 28px; }
.sp-event-text > p { margin: 0 0 16px; }
.sp-event-info {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 32px;
  border-top: 1px solid var(--doma-line);
}
.sp-event-info__col { display: flex; flex-direction: column; row-gap: 10px; }
.sp-event-info__col p { margin: 0; font-size: 16px; line-height: 24.8px; }
:root .sp-event-info__h { margin: 0 0 4px; font: 400 24px/28px var(--font-display); letter-spacing: -.5px; color: var(--doma-ink); }
.sp-event-info__muted { color: var(--doma-muted); }
.sp-sponsors { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-sponsors li {
  padding: 6px 12px; border: 1px solid var(--doma-line); font: 600 14px/21.7px var(--font-text); color: var(--doma-ink);
}
@media (max-width: 767px) {
  .sp-event-text { font-size: 16px; line-height: 25.6px; }
  .sp-event-info { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- events list, closing line */
.sp-events { display: flex; flex-direction: column; row-gap: 24px; width: 100%; }
.sp-closing { margin: 0; max-width: 760px; font-size: 20px; line-height: 30px; color: var(--doma-ink); }
.sp-closing .pg-link { font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) { .sp-closing { font-size: 18px; line-height: 27px; } }

/* ---------------------------------------------------------------- program facts */
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-chips li {
  padding: 6px 12px; background: var(--doma-panel); font: 600 14px/21.7px var(--font-text); color: var(--doma-ink);
}

/* the hero photograph square on wide screens, so the head ends on the first screen */
@media (min-width: 992px) { .sp-head .pg-hero__img { aspect-ratio: 1; } }
.sp-event-info + .sp-closing { max-width: none; padding-top: 32px; border-top: 1px solid var(--doma-line); }
