/*
 * A group program's public page (mentorship/program.blade.php). Prefix .mgp-.
 * Direction: an expedition poster. A navy hero with the outcome set large
 * and the groups' crests standing guard; then calm white sections, the
 * groups as team cards with live seat dots, and one gold action.
 * Type: 13 · 15 · 17 · 22 · 28 · 44.
 */
.mgp, .mgp-hero, .mgp-bar {
    --mgp-navy: #1c1c6e;
    --mgp-night: #14144f;
    --mgp-brand: #4242d6;
    --mgp-brand-strong: #3634b8;
    --mgp-tint: #ecebff;
    --mgp-wash: #f5f4ff;
    --mgp-ink: #1c1c6e;
    --mgp-body: #403d59;
    --mgp-muted: #6e6a85;
    --mgp-line: #e7e5f2;
    --mgp-canvas: #f6f5fb;
    --mgp-gold: #efc15a;
    --mgp-gold-strong: #e3ad35;
    --mgp-ok: #2c7a51;
    --mgp-ok-tint: #e7f5ed;
    --mgp-warn: #b45309;
    --mgp-warn-tint: #fff7e6;
    --mgp-star: #e8a317;
    --mgp-shadow: 0 10px 30px -18px rgba(28, 28, 110, .28);
}

/* ---- Buttons ---- */
.mgp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
    border: 0; border-radius: 999px; background: var(--mgp-brand); color: #fff;
    font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
    box-shadow: 0 10px 24px -12px rgba(66, 66, 214, .7); transition: background-color .15s ease, transform .15s ease;
}
.mgp-btn:hover { background: var(--mgp-brand-strong); color: #fff; transform: translateY(-1px); }
.mgp-btn:focus-visible { outline: 2px solid var(--mgp-brand); outline-offset: 3px; }
.mgp-btn i { font-size: 16px; line-height: 1; }
.mgp-btn--gold { background: var(--mgp-gold); color: var(--mgp-night); box-shadow: 0 12px 28px -12px rgba(239, 193, 90, .8); }
.mgp-btn--gold:hover { background: var(--mgp-gold-strong); color: var(--mgp-night); }
.mgp-btn--block { width: 100%; }
.mgp-btn.is-disabled { background: #e3e1ee; color: var(--mgp-muted); box-shadow: none; cursor: not-allowed; transform: none; }
.mgp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--mgp-brand); text-decoration: none; }
.mgp-link:hover { text-decoration: underline; }
.mgp-link i { line-height: 1; }

/* ---- Hero ---- */
.mgp-hero {
    position: relative; overflow: hidden; padding: 40px 0 56px; color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(66, 66, 214, .55), transparent 45%),
        radial-gradient(circle at 10% 110%, rgba(239, 193, 90, .18), transparent 40%),
        var(--mgp-navy);
}
.mgp-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.mgp-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: center; }
.mgp-hero__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mgp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.mgp-crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.mgp-crumbs a:hover { color: #fff; }
.mgp-crumbs span { color: rgba(255, 255, 255, .35); }
.mgp-hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mgp-gold); }
:lang(ar) .mgp-hero__kicker { letter-spacing: 0; text-transform: none; }
.mgp-hero__kicker span + span::before { content: '·'; margin-inline-end: 10px; color: rgba(255, 255, 255, .4); }
.mgp-hero__title { margin: 0; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
:lang(ar) .mgp-hero__title { letter-spacing: 0; line-height: 1.3; }
.mgp-hero__name { margin: -6px 0 0; font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.mgp-mentor-chip { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background-color .15s ease; }
[dir="rtl"] .mgp-mentor-chip { padding: 6px 6px 6px 16px; }
.mgp-mentor-chip:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.mgp-mentor-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .5); }
.mgp-mentor-chip__text { display: flex; flex-direction: column; gap: 1px; }
.mgp-mentor-chip__name { font-size: 15px; font-weight: 700; }
.mgp-mentor-chip__rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.mgp-mentor-chip__rating i { color: var(--mgp-gold); line-height: 1; }
.mgp-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; }
.mgp-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.mgp-facts i { font-size: 18px; line-height: 1; color: var(--mgp-gold); }
.mgp-hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 8px; }
.mgp-hero__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.mgp-hero__price strong { font-size: 28px; font-weight: 800; color: #fff; }
.mgp-hero__price strong.is-free { color: #7ee2a8; }
.mgp-hero__price span { font-size: 15px; color: rgba(255, 255, 255, .7); }

/* The groups' crests, standing like team banners. */
.mgp-hero__crests { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0 8px; }
.mgp-hero__team { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.mgp-hero__crest { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: mgp-float 6s ease-in-out infinite; }
.mgp-hero__crest span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.mgp-hero__crest--1 { order: 2; animation-delay: 0s; }
.mgp-hero__crest--2 { order: 1; animation-delay: -2s; }
.mgp-hero__crest--3 { order: 3; animation-delay: -4s; }
@keyframes mgp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mgp-hero__seats { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; }
.mgp-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; }
.mgp-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: mgp-ping 1.8s ease-out infinite; }
@keyframes mgp-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

/* ---- Body ---- */
.mgp { padding: 40px 0 0; background: var(--mgp-canvas); color: var(--mgp-body); }
.mgp-owner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: var(--mgp-tint); font-size: 15px; color: var(--mgp-ink); }
.mgp-owner i { line-height: 1; color: var(--mgp-brand); }
.mgp-owner a { margin-inline-start: auto; font-weight: 700; color: var(--mgp-brand); }
.mgp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 32px; align-items: start; }
.mgp__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mgp-section { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--mgp-line); border-radius: 20px; background: #fff; scroll-margin-top: 96px; }
.mgp-section__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--mgp-ink); text-align: start; }
.mgp-section__lead { margin: -4px 0 4px; font-size: 15px; line-height: 1.55; color: var(--mgp-muted); text-align: start; }
.mgp-empty { margin: 0; padding: 16px; border-radius: 12px; background: var(--mgp-canvas); font-size: 15px; color: var(--mgp-muted); }
.mgp-btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.mgp-flash { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--mgp-ok-tint); color: var(--mgp-ok); font-size: 15px; font-weight: 600; }
.mgp-flash i { font-size: 18px; line-height: 1; }

/* The viewer's own seat in this intake */
.mgp-mine {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 16px;
    border-radius: 14px; background: var(--mgp-tint); color: var(--mgp-ink);
}
.mgp-mine.is-pay { background: var(--mgp-warn-tint); }
.mgp-mine.is-in { background: var(--mgp-ok-tint); }
.mgp-mine__text { flex: 1 1 220px; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.mgp-group__note.is-mine { display: inline-flex; align-items: center; gap: 6px; color: var(--mgp-ok); }
.mgp-group__note.is-mine i { font-size: 16px; line-height: 1; }

/* Every group full or closed: the next-intake list */
.mgp-interest {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 18px;
    border: 1.5px dashed var(--mgp-line); border-radius: 16px; background: var(--mgp-wash);
}
.mgp-interest__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
    border-radius: 12px; background: #fff; color: var(--mgp-brand); font-size: 20px; line-height: 1;
}
.mgp-interest__text { flex: 1 1 220px; min-width: 0; }
.mgp-interest__title { margin: 0; color: var(--mgp-ink); font-size: 17px; font-weight: 700; line-height: 1.35; }
.mgp-interest__body { margin: 2px 0 0; color: var(--mgp-muted); font-size: 13px; line-height: 1.5; }

/* Fit check */
.mgp-fit { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mgp-fit__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--mgp-line); border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--mgp-ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.mgp-fit__row:hover { border-color: #c7c7f5; }
.mgp-fit__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mgp-fit__box { display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border: 2px solid #c9c6da; border-radius: 7px; background: #fff; transition: background-color .15s ease, border-color .15s ease; }
.mgp-fit__box i { font-size: 14px; line-height: 1; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; }
.mgp-fit__row:has(input:checked) { border-color: var(--mgp-brand); background: var(--mgp-wash); }
.mgp-fit__row input:checked + .mgp-fit__box { border-color: var(--mgp-brand); background: var(--mgp-brand); }
.mgp-fit__row input:checked + .mgp-fit__box i { opacity: 1; transform: none; }
.mgp-fit__row input:focus-visible + .mgp-fit__box { outline: 2px solid var(--mgp-brand); outline-offset: 2px; }
.mgp-fit__result { margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 700; animation: mgp-in .25s ease; }
.mgp-fit__result.is-great { background: var(--mgp-ok-tint); color: var(--mgp-ok); }
.mgp-fit__result.is-good { background: var(--mgp-tint); color: var(--mgp-brand-strong); }
.mgp-fit__result.is-low { background: var(--mgp-warn-tint); color: var(--mgp-warn); }
@keyframes mgp-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Your week: four steps on one line */
.mgp-week { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.mgp-week::before { content: ''; position: absolute; top: 26px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(to right, var(--mgp-tint) 0 8px, transparent 8px 14px); }
.mgp-week__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.mgp-week__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mgp-brand); color: #fff; font-size: 24px; box-shadow: 0 10px 20px -12px rgba(66, 66, 214, .8); }
.mgp-week__icon i { line-height: 1; }
.mgp-week__step:nth-child(2) .mgp-week__icon { background: var(--mgp-navy); }
.mgp-week__step:nth-child(3) .mgp-week__icon { background: var(--mgp-ok); }
.mgp-week__step:nth-child(4) .mgp-week__icon { background: var(--mgp-gold); color: var(--mgp-night); }
.mgp-week__name { font-size: 15px; font-weight: 800; color: var(--mgp-ink); }
.mgp-week__body { font-size: 13px; line-height: 1.45; color: var(--mgp-muted); }

/* Plan: a vertical route ending at the flag */
.mgp-plan { position: relative; display: flex; flex-direction: column; gap: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.mgp-plan__phase { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.mgp-plan__phase:not(:last-child)::before { content: ''; position: absolute; top: 44px; bottom: 0; inset-inline-start: 21px; width: 2px; background: linear-gradient(var(--mgp-brand), var(--mgp-tint)); }
.mgp-plan__num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mgp-tint); font-size: 15px; font-weight: 800; color: var(--mgp-brand); font-variant-numeric: tabular-nums; }
.mgp-plan__phase--goal .mgp-plan__num { background: var(--mgp-gold); color: var(--mgp-night); font-size: 20px; }
.mgp-plan__phase--goal .mgp-plan__num i { line-height: 1; }
.mgp-plan__body { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; min-width: 0; }
.mgp-plan__weeks { font-size: 13px; font-weight: 700; color: var(--mgp-brand); }
.mgp-plan__title { margin: 0; font-size: 17px; font-weight: 800; color: var(--mgp-ink); text-align: start; }
.mgp-plan__summary { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mgp-body); text-align: start; }
.mgp-outcomes { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.mgp-outcomes li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--mgp-ink); }
.mgp-outcomes i { display: flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mgp-ok-tint); font-size: 12px; line-height: 1; color: var(--mgp-ok); }

/* Tracks */
.mgp-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mgp-track { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--mgp-canvas); cursor: default; }
.mgp-track__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--mgp-navy); color: #fff; font-size: 18px; }
.mgp-track__icon i { line-height: 1; }
.mgp-track__name { font-size: 17px; font-weight: 800; color: var(--mgp-ink); }
.mgp-track__summary { font-size: 13px; line-height: 1.5; color: var(--mgp-muted); }

.mgp-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--mgp-muted); }
.mgp-note i { flex: none; font-size: 16px; line-height: 1; color: var(--mgp-brand); }

/* Groups: team cards */
.mgp-groups { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.mgp-group {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px;
    border: 1.5px solid var(--mgp-line); border-radius: 18px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mgp-group.is-enrolling:hover, .mgp-group.is-late:hover { border-color: #c7c7f5; box-shadow: 0 18px 36px -22px rgba(28, 28, 110, .45); transform: translateY(-2px); }
.mgp-group.is-full, .mgp-group.is-running, .mgp-group.is-completed, .mgp-group.is-cancelled { background: var(--mgp-canvas); }
.mgp-group.is-full .gcr, .mgp-group.is-running .gcr { filter: grayscale(.6) drop-shadow(0 6px 10px rgba(28, 28, 110, .12)); }
.mgp-group__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mgp-group__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.mgp-group__name { margin: 0; font-size: 17px; font-weight: 800; color: var(--mgp-ink); text-align: start; }
.mgp-group__crew { margin: -4px 0 0; font-size: 13px; font-weight: 600; color: var(--mgp-muted); }
.mgp-group__time, .mgp-group__first { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 2px; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--mgp-body); }
.mgp-group__local { grid-column: 2; font-size: 13px; }
.mgp-group__first { font-size: 13px; font-weight: 500; color: var(--mgp-muted); }
.mgp-group__time i, .mgp-group__first i { line-height: 1; color: var(--mgp-brand); }
.mgp-group__first.is-late { font-weight: 600; color: var(--mgp-warn); }
.mgp-group__first.is-late i { color: var(--mgp-warn); }
.mgp-group__local { font-weight: 500; color: var(--mgp-muted); }
.mgp-state { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mgp-state--enrolling { background: var(--mgp-ok-tint); color: var(--mgp-ok); }
.mgp-state--late { background: var(--mgp-warn-tint); color: var(--mgp-warn); }
.mgp-state--full, .mgp-state--running, .mgp-state--completed, .mgp-state--cancelled { background: #eceaf3; color: var(--mgp-muted); }
.mgp-seats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 4px; }
.mgp-seats__dots { display: flex; flex-wrap: wrap; gap: 4px; }
.mgp-seats__dots span { width: 12px; height: 12px; border-radius: 4px; background: var(--mgp-ok-tint); border: 1px solid #bfe3cd; }
.mgp-seats__dots span.is-taken { background: var(--mgp-brand); border-color: var(--mgp-brand); }
.mgp-seats__text { font-size: 13px; font-weight: 700; color: var(--mgp-ok); }
.mgp-group.is-full .mgp-seats__text, .mgp-group.is-running .mgp-seats__text { color: var(--mgp-muted); }
.mgp-group__action { display: flex; flex-direction: column; align-items: flex-end; }
.mgp-group__note { max-width: 12rem; font-size: 13px; font-weight: 600; color: var(--mgp-muted); text-align: end; }

/* Included */
.mgp-included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.mgp-included li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--mgp-ink); }
.mgp-included i { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--mgp-tint); font-size: 18px; line-height: 1; color: var(--mgp-brand); }

/* About + mentor + FAQ */
/* Markdown a mentor or member wrote (program About, weekly recaps, Discussion
   posts): the site's reset strips every margin, so paragraphs, lists and
   headings are spaced back here or they run together into one block. */
.mgp-prose { font-size: 15px; line-height: 1.7; color: var(--mgp-body, #403d59); overflow-wrap: anywhere; }
.mgp-prose > * + * { margin-top: .75em; }
.mgp-prose > :first-child { margin-top: 0; }
.mgp-prose > :last-child { margin-bottom: 0; }
.mgp-prose :is(h2, h3, h4, h5, h6) { margin-top: 1.25em; color: var(--mgp-ink, #1c1c6e); font-weight: 800; line-height: 1.35; text-align: start; }
.mgp-prose h2 { font-size: 20px; }
.mgp-prose h3 { font-size: 17px; }
.mgp-prose :is(h4, h5, h6) { font-size: 15px; }
.mgp-prose strong { color: var(--mgp-ink, #1c1c6e); font-weight: 700; }
.mgp-prose :is(ul, ol) { padding-inline-start: 1.4em; }
.mgp-prose ul { list-style: disc; }
.mgp-prose ol { list-style: decimal; }
.mgp-prose li + li { margin-top: .35em; }
.mgp-prose li > :is(ul, ol) { margin-top: .35em; }
.mgp-prose a { color: var(--mgp-brand, #4242d6); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mgp-prose blockquote { padding: 4px 14px; border-inline-start: 3px solid var(--mgp-tint, #ecebff); color: var(--mgp-muted, #6e6a85); }
.mgp-prose code { padding: 1px 6px; border-radius: 6px; background: var(--mgp-canvas, #f6f5fb); font-size: .9em; direction: ltr; unicode-bidi: isolate; }
.mgp-prose pre { padding: 12px 14px; border-radius: 10px; background: var(--mgp-canvas, #f6f5fb); overflow-x: auto; direction: ltr; text-align: left; }
.mgp-prose pre code { padding: 0; background: none; }
.mgp-prose hr { border: 0; border-top: 1px solid var(--mgp-line, #e7e5f2); }
.mgp-mentor { display: flex; gap: 16px; }
.mgp-mentor__face { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.mgp-mentor__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mgp-mentor__name { margin: 0; font-size: 17px; font-weight: 800; color: var(--mgp-ink); }
.mgp-mentor__role { margin: 0; font-size: 15px; color: var(--mgp-muted); }
.mgp-mentor__rating { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; font-weight: 600; color: var(--mgp-body); }
.mgp-mentor__rating i { color: var(--mgp-star); line-height: 1; }
.mgp-mentor__bio { margin: 4px 0; font-size: 15px; line-height: 1.55; color: var(--mgp-body); }
.mgp-faq { display: flex; flex-direction: column; }
.mgp-faq__item { border-bottom: 1px solid var(--mgp-line); }
.mgp-faq__item:last-child { border-bottom: 0; }
.mgp-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 15px; font-weight: 700; color: var(--mgp-ink); cursor: pointer; list-style: none; }
.mgp-faq__item summary::-webkit-details-marker { display: none; }
.mgp-faq__item summary i { flex: none; line-height: 1; color: var(--mgp-brand); transition: transform .2s ease; }
.mgp-faq__item[open] summary i { transform: rotate(45deg); }
.mgp-faq__item summary:focus-visible { outline: 2px solid var(--mgp-brand); outline-offset: 2px; border-radius: 6px; }
.mgp-faq__item p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--mgp-body); }

/* Price card */
.mgp-side { position: sticky; top: 96px; }
.mgp-price { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--mgp-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 48px -30px rgba(28, 28, 110, .5); }
.mgp-price__kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--mgp-muted); }
.mgp-price__amount { margin: 0; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--mgp-ink); font-variant-numeric: tabular-nums; }
.mgp-price__amount.is-free { color: var(--mgp-ok); }
.mgp-price__line { margin: 0; font-size: 15px; color: var(--mgp-muted); }
.mgp-compare { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--mgp-canvas); }
.mgp-compare__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mgp-muted); }
.mgp-compare__row strong { font-size: 15px; color: var(--mgp-muted); text-decoration: line-through; text-decoration-color: rgba(110, 106, 133, .5); }
.mgp-compare__row.is-group { color: var(--mgp-ink); font-weight: 700; }
.mgp-compare__row.is-group strong { font-size: 17px; color: var(--mgp-ok); text-decoration: none; }
.mgp-compare__save { margin: 2px 0 0; font-size: 13px; font-weight: 800; color: var(--mgp-ok); }
.mgp-price__facts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 0; border-block: 1px solid var(--mgp-line); list-style: none; }
.mgp-price__facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--mgp-ink); }
.mgp-price__facts i { line-height: 1; font-size: 18px; color: var(--mgp-brand); }
.mgp-price__fine { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--mgp-muted); }
.mgp-price__fine i { flex: none; margin-top: 2px; line-height: 1; }

/* Final call */
.mgp-final { margin-top: 48px; padding: 56px 0; background: var(--mgp-navy); color: #fff; text-align: center; }
.mgp-final__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mgp-final__crests { display: flex; gap: 8px; margin-bottom: 8px; }
.mgp-final__title { margin: 0; font-size: 28px; font-weight: 800; color: #fff; text-wrap: balance; }
.mgp-final__body { margin: 0 0 8px; font-size: 17px; color: rgba(255, 255, 255, .75); }

/* Phone price bar */
.mgp-bar { display: none; }

@media (max-width: 991.98px) {
    .mgp-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .mgp-hero__crests { display: none; }
    .mgp__grid { grid-template-columns: minmax(0, 1fr); }
    .mgp-side { position: static; }
    .mgp-bar {
        position: fixed; inset-inline: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mgp-line); background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(8px); box-shadow: 0 -10px 30px -20px rgba(28, 28, 110, .5); transition: transform .25s ease;
    }
    .mgp-bar.is-hidden { transform: translateY(110%); }
    .mgp-bar__text { display: flex; flex-direction: column; gap: 0; margin: 0; min-width: 0; }
    .mgp-bar__text strong { font-size: 17px; font-weight: 800; color: var(--mgp-ink); }
    .mgp-bar__text strong.is-free { color: var(--mgp-ok); }
    .mgp-bar__text span { font-size: 12px; font-weight: 600; color: var(--mgp-ok); }
    .mgp-bar .mgp-btn { min-height: 44px; padding: 0 18px; }
    .mgp-final { padding-bottom: 96px; }
}
/* Phones and tablets: one column, read in the order a visitor decides in:
   how a week works → pick a group → price → is it for me → the detail. */
@media (max-width: 991.98px) {
    .mgp { padding-top: 20px; }
    .mgp__grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
    .mgp__main { display: contents; }
    .mgp-section--week { order: 1; }
    .mgp-section--groups { order: 2; }
    .mgp-side { order: 3; }
    .mgp-section--fit { order: 4; }
    .mgp-section--plan { order: 5; }
    .mgp-section--tracks { order: 6; }
    .mgp-section--inc { order: 7; }
    .mgp-section--rec { order: 8; }
    .mgp-section--about { order: 9; }
    .mgp-section--mentor { order: 10; }
    .mgp-section--faq { order: 11; }
    .mgp-price { box-shadow: none; }
}
@media (max-width: 639.98px) {
    .mgp-hero { padding: 20px 0 28px; }
    .mgp-hero__text { gap: 14px; }
    .mgp-hero__name { margin: -4px 0 0; font-size: 15px; }
    .mgp-mentor-chip { align-self: stretch; }
    /* Facts: a 2 × 2 grid of tiles instead of a ragged wrap */
    .mgp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
    .mgp-facts li { align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.35; }
    .mgp-facts i { flex: none; font-size: 16px; }
    .mgp-hero__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 4px; }
    .mgp-hero__cta .mgp-btn--gold { width: 100%; }
    .mgp-hero__price { grid-column: 1 / -1; order: -1; }
    .mgp-coupon { margin-top: 0; }
    /* Group card: crest beside the name, the facts and the button full width */
    .mgp-group { grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 10px 12px; }
    .mgp-group .gcr { width: 48px; height: 54px; grid-row: 1 / span 2; }
    .mgp-group .gcr__glyph { font-size: 22px; }
    .mgp-group__main { display: contents; }
    .mgp-group__top, .mgp-group__crew { grid-column: 2; }
    .mgp-group__crew { margin: 0; }
    .mgp-group__time, .mgp-group__first, .mgp-seats, .mgp-group__action { grid-column: 1 / -1; }
    .mgp-group__time { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--mgp-line); }
    .mgp-seats { margin-top: 0; }
    /* Mentor: face beside the name, the bio full width under it */
    .mgp-mentor { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
    .mgp-mentor__face { width: 64px; height: 64px; grid-row: 1 / span 3; }
    .mgp-mentor__text { display: contents; }
    .mgp-mentor__name, .mgp-mentor__role, .mgp-mentor__rating { grid-column: 2; }
    .mgp-mentor__bio, .mgp-section--mentor .mgp-link { grid-column: 1 / -1; }
    .mgp-mentor__bio { margin-top: 10px; }
    .mgp-hero__title { font-size: 30px; }
    .mgp-hero__price strong { font-size: 22px; }
    .mgp-section { padding: 20px 16px; border-radius: 16px; }
    .mgp-section__title { font-size: 20px; }
    .mgp-week { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
    .mgp-week::before { display: none; }
    .mgp-group { padding: 16px; }
    .mgp-group__action { grid-column: 1 / -1; align-items: stretch; }
    .mgp-group__action .mgp-btn { width: 100%; }
    .mgp-group__note { max-width: none; text-align: start; }
    .mgp-included { grid-template-columns: minmax(0, 1fr); }
    .mgp-price__amount { font-size: 36px; }
    .mgp-final__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .mgp-hero__crest, .mgp-pulse::after { animation: none; }
    .mgp-btn, .mgp-group, .mgp-bar { transition: none; }
}

/* Public recordings: a short playlist, at most three rows. */
.mgp-recs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mgp-rec__link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; border: 1px solid var(--mgp-line); border-radius: 12px; background: #fff; color: var(--mgp-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mgp-rec__link:hover { border-color: var(--mgp-brand); box-shadow: var(--mgp-shadow); color: var(--mgp-ink); }
.mgp-rec__link:focus-visible { outline: 2px solid var(--mgp-brand); outline-offset: 2px; }
.mgp-rec__play { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mgp-tint); color: var(--mgp-brand); font-size: 18px; line-height: 1; }
.mgp-rec__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mgp-rec__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.mgp-rec__meta { font-size: 13px; color: var(--mgp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgp-rec__go { flex: 0 0 auto; color: var(--mgp-muted); font-size: 16px; line-height: 1; }

/* ---- Share kit (plan E10): a quiet ghost button on the navy hero, one in the owner bar ---- */
.mgp-share {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: transparent; color: #fff;
    font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.mgp-share:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.mgp-share:focus-visible { outline: 2px solid var(--mgp-gold); outline-offset: 3px; }
.mgp-share i { font-size: 16px; line-height: 1; }
.mgp-owner__share {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
    border: 0; border-radius: 999px; background: var(--mgp-brand); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.mgp-owner__share:hover { background: var(--mgp-brand-strong); }
.mgp-owner__share i { font-size: 14px; line-height: 1; color: #fff; }
.mgp-coupon {
    display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 700; line-height: 1.4;
}
.mgp-coupon i { font-size: 16px; line-height: 1; flex: none; }
.mgp-coupon.is-ok { background: var(--mgp-ok-tint); color: var(--mgp-ok); }
.mgp-coupon.is-warn { background: var(--mgp-warn-tint); color: var(--mgp-warn); }

/* Link to the program's graduates showcase (plan E16) */
.mgp-grads { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--mgp-line, #e7e5f2); border-radius: 14px; color: var(--mgp-ink, #1c1c6e); font-weight: 700; text-decoration: none; }
.mgp-grads i { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.mgp-grads span { flex: 1 1 auto; }
.mgp-grads b { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: var(--mgp-tint, #ecebff); color: var(--mgp-brand, #4242d6); font-size: 13px; }
.mgp-grads:hover { border-color: var(--mgp-brand, #4242d6); color: var(--mgp-ink, #1c1c6e); }

/* Arabic pages: an empty field starts on the right, placeholder included.
   dir="auto" alone resolves an empty field to LTR; once text is typed it
   follows the text again. Fields marked dir="ltr" (URLs, English) stay left. */
[dir='rtl'] :is(input, textarea):not([dir='ltr']):placeholder-shown { direction: rtl; text-align: right; }
[dir='rtl'] :is(input, textarea):not([dir='ltr'])::placeholder { direction: rtl; text-align: right; }
.mgp-zone { white-space: nowrap; }

/* Full group with an open waiting list: a secondary action, the line size under it */
.mgp-group__action { gap: 6px; }
.mgp-btn--line { background: #fff; color: var(--mgp-brand); border: 1.5px solid var(--mgp-brand); box-shadow: none; }
.mgp-btn--line:hover { background: var(--mgp-wash); color: var(--mgp-brand-strong); }
