/* Public catalogue (ADR 0041): product-family cards, the variant switcher and the shared "What's included" list (.mx-incl). Tokens only. */

.mx-incl { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mx-incl-item { display: flex; align-items: flex-start; gap: .6rem; }
.mx-incl-ico { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: .45rem; display: grid; place-items: center; background: rgba(var(--bs-primary-rgb), .09); color: var(--bs-primary); }
.mx-incl-ico svg { width: 1rem; height: 1rem; }
.mx-incl-text { display: flex; flex-direction: column; min-width: 0; padding-top: .12rem; }
.mx-incl-main { font-size: .92rem; color: var(--bs-body-color); line-height: 1.35; }
.mx-incl-detail { font-size: .8rem; color: var(--bs-secondary-color); line-height: 1.35; }
.mx-incl--compact { gap: .35rem; }
.mx-incl--compact .mx-incl-ico { width: 1.25rem; height: 1.25rem; border-radius: .35rem; }
.mx-incl--compact .mx-incl-ico svg { width: .8rem; height: .8rem; }
.mx-incl--compact .mx-incl-main { font-size: .82rem; }
.mx-incl-more { font-size: .8rem; color: var(--bs-secondary-color); padding-left: 1.85rem; }

/* ── Family card on /courses (ADR 0041 D2): one card for every variant of a product ── */
/* Two lines at most, so a long summary doesn't push the facts below the fold of the card. */
.mx-fam-summary { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* The options the family comes in: a small label over a dot-separated run of values. A pill per value stacked
   one per row on a narrow card (five fields = five rows), so they read as a sentence instead. */
.mx-fam-axes { margin: .1rem 0 .15rem; padding: .6rem .75rem; display: grid; gap: .45rem; border-radius: 9px; background: var(--mx-nav-inset); }
.mx-fam-axis { display: grid; gap: .1rem; min-width: 0; }
.mx-fam-axis dt { margin: 0; font-size: .64rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--bs-secondary-color); }
/* flex, because Blazor drops the whitespace between the spans - an inline run would have nowhere to wrap. */
.mx-fam-axis dd { margin: 0; display: flex; flex-wrap: wrap; font-size: .82rem; line-height: 1.45; color: var(--bs-body-color); }
.mx-fam-val { white-space: nowrap; }   /* wrap between values, never inside "Mental Health" */
.mx-fam-val:not(:last-child)::after { content: "·"; margin: 0 .4em; color: var(--bs-secondary-color); font-weight: 400; }
.mx-fam-val.is-mine { font-weight: 600; color: var(--mx-nav-signal-ink, var(--mx-nav-signal)); }
.crs-body .mx-incl { margin: .2rem 0 .1rem; }
.mx-fam-from { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
a.mx-fam-other { color: var(--bs-secondary-color); text-decoration: underline; text-underline-offset: 2px; }
a.mx-fam-other:hover { color: var(--bs-body-color); }

/* ── Course page (ADR 0041): the variant switcher and the full "What's included" ── */
.mx-var { margin: 0 0 1.4rem; padding: 1rem 1.1rem 1.05rem; border: 1px solid var(--mx-nav-hairline); border-radius: 12px; background: var(--mx-nav-inset); display: grid; gap: .85rem; }
.mx-var-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.mx-var-title { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-secondary-color); }
.mx-var-family { font-size: .82rem; color: var(--bs-secondary-color); }
.mx-var-axis { display: grid; gap: .4rem; }
.mx-var-label { font-size: .8rem; font-weight: 600; color: var(--bs-heading-color); }
.mx-var-segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .45rem; }
.mx-var-seg { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .75rem; border-radius: 9px; border: 1px solid var(--mx-nav-hairline-strong, var(--bs-border-color)); background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; transition: border-color .16s, background .16s; }
a.mx-var-seg:hover { border-color: var(--bs-secondary-color); color: var(--bs-body-color); }
.mx-var-seg[aria-current="page"] { border-color: var(--mx-nav-signal); box-shadow: inset 0 0 0 1px var(--mx-nav-signal); }
.mx-var-seg.is-off { opacity: .55; cursor: not-allowed; background: transparent; }
.mx-var-seg-name { font-size: .88rem; font-weight: 600; }
.mx-var-seg-sub { font-size: .75rem; color: var(--bs-secondary-color); }
.mx-var-seg-price { font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--bs-heading-color); }
.mx-var-seg.is-off .mx-var-seg-price { font-weight: 400; color: var(--bs-secondary-color); }
.mx-var-field { position: relative; }
.mx-var-field > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; border-radius: 9px; border: 1px solid var(--mx-nav-hairline-strong, var(--bs-border-color)); background: var(--bs-body-bg); cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--bs-body-color); }
.mx-var-field > summary::-webkit-details-marker { display: none; }
.mx-var-field > summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.mx-var-field[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.mx-var-field > summary:focus-visible, .mx-var-seg:focus-visible { outline: 2px solid var(--mx-nav-signal); outline-offset: 2px; }
.mx-var-menu { list-style: none; margin: .35rem 0 0; padding: .3rem; border-radius: 9px; border: 1px solid var(--mx-nav-hairline); background: var(--bs-body-bg); display: grid; gap: .1rem; }
.mx-var-opt { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .45rem .6rem; border-radius: 7px; font-size: .88rem; color: var(--bs-body-color); text-decoration: none; }
a.mx-var-opt:hover { background: var(--mx-nav-inset); color: var(--bs-body-color); }
.mx-var-opt[aria-current="page"] { font-weight: 600; color: var(--mx-nav-signal); }
.mx-var-opt.is-off { color: var(--bs-secondary-color); cursor: not-allowed; }
.mx-var-opt-note { font-size: .76rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.mx-var-note { margin: 0; font-size: .78rem; color: var(--bs-secondary-color); }

.mx-var-incl { margin: 0 0 1.6rem; }
.mx-var-incl-title { margin: 0 0 .75rem; font-size: 1.05rem; font-weight: 700; color: var(--bs-heading-color); }
.mx-var-incl--lead { padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--mx-nav-hairline); background: var(--mx-nav-inset); }
.mx-var-kind { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .6rem; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(var(--bs-primary-rgb), .09); color: var(--bs-primary); }

/* ── Card fit (all catalogue cards) ── */
/* The eyebrow can wrap on a narrow card ("OSCE VIDEOS · PRACTICE PACKAGE"): keep the dot on the first line. */
.crs-track { align-items: flex-start; line-height: 1.35; }
.crs-track .crs-dot { margin-top: .32em; }
/* Price and button share a row while they fit; when they don't (a "From £349.99" beside a long button on a narrow
   card) the button drops under the price instead of the price being cut off. */
.crs-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.crs-buy-price { flex: 1 0 auto; }
.crs-buy .crs-cta { flex: 0 0 auto; }
.crs-buy-note { flex: 1 0 100%; }
