/* Course detail page, 2026-11 design pass. Loaded last; overrides the older catalog layers on purpose.
   Desktop: one reading column (cover → title → promise → story → curriculum → reviews) and a purchase
   card that follows the reader. Phone: one column, the bottom buy bar opens the purchase sheet.
   Tokens: app-shell.css (--sh-*). One primary colour for every buy action: --gp-buy. */
html body.pg-catalog.academy.gc-clean #detail{--gp-buy:#2563eb;--gp-r:20px;max-width:1180px;margin:0 auto}
html body.pg-catalog.academy.gc-clean #detail .gp-back{display:inline-flex;margin:4px 0 20px}

/* ---------- two columns ---------- */
html body.pg-catalog.academy.gc-clean #detail .details{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:48px!important;align-items:start!important;margin:0!important}
html body.pg-catalog.academy.gc-clean #detail .gp-main{min-width:0}
html body.pg-catalog.academy.gc-clean #detail .gp-detail-divider{display:none!important}

/* ---------- hero: big cover, then the words ---------- */
html body.pg-catalog.academy.gc-clean #detail .gp-detail-hero{display:block!important;border:0!important;background:none!important;padding:0!important;margin:0 0 8px!important;box-shadow:none!important}
html body.pg-catalog.academy.gc-clean #detail .gp-detail-visual{position:relative!important;aspect-ratio:16/9!important;min-height:0!important;border-radius:var(--gp-r)!important;overflow:hidden!important;background:#111!important;box-shadow:0 26px 50px -34px #000d!important}
html body.pg-catalog.academy.gc-clean #detail .gp-course-cover{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important}
html body.pg-catalog.academy.gc-clean #detail .gp-detail-copy{display:block!important;padding:30px 2px 0!important;background:none!important;border:0!important}
html body.pg-catalog.academy.gc-clean #detail .gp-title-metrics-row h1{margin:0!important;font-size:38px!important;line-height:1.15!important;font-weight:850!important;letter-spacing:-1.2px!important;color:var(--sh-text,#111)!important}
html body.pg-catalog.academy.gc-clean #detail .gp-promise{margin:10px 0 0!important;font-size:21px!important;line-height:1.45!important}
html body.pg-catalog.academy.gc-clean #detail .gp-detail-highlights{margin-top:18px!important}
html body.pg-catalog.academy.gc-clean #detail .gp-highlight-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
html body.pg-catalog.academy.gc-clean #detail .gp-highlight-chip{padding:7px 12px!important;border-radius:999px!important;background:var(--sh-hover,#f2f2f2)!important;font-size:13px!important;font-weight:700!important;color:var(--sh-text,#111)!important;border:0!important}
html body.pg-catalog.academy.gc-clean #detail .gp-highlight-chip.is-rating{background:#fff4dc!important;color:#7a4b00!important}
html body.pg-catalog.academy.gc-clean #detail .gp-highlight-quote{margin:18px 0 0!important;padding:16px 18px!important;border:0!important;border-radius:16px!important;background:var(--sh-surface,#fff)!important;box-shadow:inset 0 0 0 1px var(--sh-line,#0001)!important}
html body.pg-catalog.academy.gc-clean #detail .gp-highlight-quote blockquote{margin:0!important;font-size:16px!important;line-height:1.55!important;font-weight:700!important;color:var(--sh-text,#111)!important}
html body.pg-catalog.academy.gc-clean #detail .gp-highlight-quote figcaption{margin-top:6px!important;font-size:12.5px!important;color:var(--sh-muted,#666)!important}
html body.pg-catalog.academy.gc-clean #detail .gp-share-course{display:inline-flex!important;margin:14px 0 0 18px!important;padding:0!important;border:0!important;background:none!important;font-size:14px!important;font-weight:700!important;color:var(--sh-muted,#666)!important}
html body.pg-catalog.academy.gc-clean #detail .gp-curriculum-jump{display:inline-block;margin-top:14px!important;font-size:14px!important;font-weight:800!important;color:var(--gp-buy)!important}
/* desktop: price lives in the purchase card */
@media(min-width:781px){html body.pg-catalog.academy.gc-clean #detail .gp-hero-price{display:none!important}}

/* ---------- reading column sections ---------- */
html body.pg-catalog.academy.gc-clean #detail .gp-main>section,html body.pg-catalog.academy.gc-clean #detail .gp-main>details{margin-top:56px!important}
html body.pg-catalog.academy.gc-clean #detail .gp-main h2{font-size:26px!important;line-height:1.3!important;font-weight:850!important;letter-spacing:-.6px!important;color:var(--sh-text,#111)!important}
html body.pg-catalog.academy.gc-clean #detail .gs-story{margin-top:44px!important;display:grid;gap:18px}
html body.pg-catalog.academy.gc-clean #detail .gs-guide video{border-radius:var(--gp-r)!important}
/* problems: readable rows, not cramped columns */
html body.pg-catalog.academy.gc-clean #detail .gs-pains{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
html body.pg-catalog.academy.gc-clean #detail .gs-pains .gs-card{display:grid!important;grid-template-columns:150px 1fr;gap:16px;align-items:baseline;padding:16px 18px!important;border-radius:16px!important;border:1px solid var(--sh-line,#0001)!important;background:var(--sh-surface,#fff)!important;box-shadow:none!important}
html body.pg-catalog.academy.gc-clean #detail .gs-pains .gs-card strong{font-size:16px!important;font-weight:850!important}
html body.pg-catalog.academy.gc-clean #detail .gs-pains .gs-card p{margin:0!important;font-size:15px!important;line-height:1.6!important;color:var(--sh-muted,#555)!important}
html body.pg-catalog.academy.gc-clean #detail .gs-steps{display:grid!important;gap:10px!important;padding:0!important;list-style:none!important}
html body.pg-catalog.academy.gc-clean #detail .gs-who{padding:18px 20px!important;border-radius:16px!important;background:var(--sh-hover,#f4f2ee)!important}
/* curriculum */
html body.pg-catalog.academy.gc-clean #detail #lessons{border:1px solid var(--sh-line,#0001)!important;border-radius:16px!important;overflow:hidden!important;background:var(--sh-surface,#fff)!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson{display:flex!important;align-items:center!important;gap:14px!important;padding:15px 18px!important;border:0!important;border-top:1px solid var(--sh-line,#0001)!important;border-radius:0!important;background:none!important;margin:0!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson:first-child{border-top:0!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson b{flex:1;min-width:0;font-size:15.5px!important;font-weight:700!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson .no{flex:none;width:30px;font-size:13px!important;font-weight:800!important;color:var(--sh-muted,#888)!important;background:none!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson-access{font-size:12.5px!important;color:var(--sh-muted,#888)!important}

/* ---------- purchase card ---------- */
html body.pg-catalog.academy.gc-clean #detail .details>aside{position:sticky!important;top:24px!important;align-self:start!important}
html body.pg-catalog.academy.gc-clean #detail .details>aside .pane.side{position:static!important;padding:22px!important;border-radius:22px!important;border:1px solid var(--sh-line,#0001)!important;background:var(--sh-surface,#fff)!important;box-shadow:0 24px 48px -32px #0008!important;color:var(--sh-text,#111)!important}
html body.pg-catalog.academy.gc-clean #detail .pane.side>.tag,html body.pg-catalog.academy.gc-clean #detail .pane.side .gp-purchase-label,html body.pg-catalog.academy.gc-clean #detail .pane.side .gp-checks{display:none!important}
html body.pg-catalog.academy.gc-clean #detail .gp-side-head{display:flex;flex-direction:column;gap:2px;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--sh-line,#0001)}
html body.pg-catalog.academy.gc-clean #detail .gp-side-head small{font-size:13px;font-weight:700;color:var(--sh-muted,#666)}
html body.pg-catalog.academy.gc-clean #detail .gp-side-head strong{font-size:32px;line-height:1.2;font-weight:900;letter-spacing:-1px;color:var(--sh-text,#111)}
html body.pg-catalog.academy.gc-clean #detail .gp-side-head span{font-size:13px;font-weight:700;color:var(--gp-buy)}
html body.pg-catalog.academy.gc-clean #detail .gp-side-head span[hidden]{display:none}
html body.pg-catalog.academy.gc-clean #detail .gp-side-trust{list-style:none;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--sh-line,#0001);display:grid;gap:8px}
html body.pg-catalog.academy.gc-clean #detail .gp-side-trust li{position:relative;padding-left:22px;font-size:13px;font-weight:600;color:var(--sh-muted,#555)}
html body.pg-catalog.academy.gc-clean #detail .gp-side-trust li::before{content:'✓';position:absolute;left:0;top:0;font-weight:900;color:var(--gp-buy)}
/* method picker inside the card: a calm vertical list */
html body.pg-catalog.academy.gc-clean #detail .pane.side .pm-picker{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:0 0 14px!important}
html body.pg-catalog.academy.gc-clean #detail .pm-picker .pm-option{min-height:0!important;padding:12px 14px!important;border-radius:14px!important;border:1px solid var(--sh-line,#0002)!important;background:var(--sh-surface,#fff)!important;text-align:left!important}
html body.pg-catalog.academy.gc-clean #detail .pm-picker .pm-option[aria-checked="true"]{border-color:var(--gp-buy)!important;box-shadow:inset 0 0 0 1px var(--gp-buy)!important;background:color-mix(in srgb,var(--gp-buy) 6%,var(--sh-surface,#fff))!important}
html body.pg-catalog.academy.gc-clean #detail .pm-option strong{font-size:14.5px!important}
html body.pg-catalog.academy.gc-clean #detail .pm-option small{font-size:12px!important}

/* one buy colour everywhere: card, sheet, phone bar, preview, closing card */
html body.pg-catalog.academy.gc-clean #detail .gp-buy-dock-button,html body.pg-catalog.academy.gc-clean .gp-taste-buy,html body.pg-catalog.academy.gc-clean #detail .gp-buy-button,html body.pg-catalog.academy.gc-clean #detail .gp-quick-pay-button,html body.pg-catalog.academy.gc-clean .gp-quick-pay-button,html body.pg-catalog.academy.gc-clean #gpDockBuy,html body.pg-catalog.academy.gc-clean .gs-go,html body.pg-catalog.academy.gc-clean .gp-preview-buy{background:var(--sh-accent,#1f7a55)!important;color:#fff!important;border:0!important;border-radius:14px!important;font-weight:850!important;box-shadow:0 10px 24px -14px color-mix(in srgb,var(--sh-accent,#1f7a55) 80%,transparent)!important}
html body.pg-catalog.academy.gc-clean #detail .gp-quick-pay-button:hover,html body.pg-catalog.academy.gc-clean .gp-buy-button:hover,html body.pg-catalog.academy.gc-clean #gpDockBuy:hover{filter:brightness(1.07);transform:none!important}
html body.pg-catalog.academy.gc-clean #detail .pane.side .gp-buy-button{min-height:54px!important;font-size:16px!important}
html body.pg-catalog.academy.gc-clean #detail .course-cart-link{display:block;margin-top:12px;text-align:center;font-size:13px;color:var(--sh-muted,#666)!important}

/* ---------- phone ---------- */
@media(max-width:780px){
 html body.pg-catalog.academy.gc-clean #detail .details{grid-template-columns:1fr!important;gap:0!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-detail-visual{border-radius:16px!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-title-metrics-row h1{font-size:28px!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-promise{font-size:17px!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-hero-price{margin-top:18px!important;padding-top:16px!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-main>section,html body.pg-catalog.academy.gc-clean #detail .gp-main>details{margin-top:44px!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-main h2{font-size:22px!important}
 html body.pg-catalog.academy.gc-clean #detail .gs-pains .gs-card{grid-template-columns:1fr;gap:4px}
}

/* ---------- cover + free preview: a quiet glass chip, the whole cover is the play target ---------- */
html body.pg-catalog.academy.gc-clean #detail .gp-detail-visual:has(.gp-preview-btn:not([hidden])){cursor:pointer}
html body.pg-catalog.academy.gc-clean #detail .gp-course-cover{transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .4s}
html body.pg-catalog.academy.gc-clean #detail .gp-detail-visual:has(.gp-preview-btn:not([hidden])):hover .gp-course-cover{transform:scale(1.025);filter:brightness(.82)}
/* centre play mark, shown on hover (desktop) */
html body.pg-catalog.academy.gc-clean #detail .gp-detail-visual:has(.gp-preview-btn:not([hidden]))::after{content:'';position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;
 background:#ffffff26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23fff'/%3E%3C/svg%3E") 54% 50%/30px no-repeat;
 -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px #ffffff40;opacity:0;transform:scale(.88);transition:opacity .3s,transform .3s;pointer-events:none}
html body.pg-catalog.academy.gc-clean #detail .gp-detail-visual:has(.gp-preview-btn:not([hidden])):hover::after{opacity:1;transform:none}
html body.pg-catalog.academy.gc-clean #detail .gp-preview-btn{left:18px!important;bottom:18px!important;gap:10px!important;padding:6px 14px 6px 6px!important;border-radius:999px!important;
 background:#0b0d10a6!important;color:#fff!important;-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);box-shadow:inset 0 0 0 1px #ffffff26,0 10px 26px -14px #000!important;transition:background .2s}
html body.pg-catalog.academy.gc-clean #detail .gp-preview-btn:hover{background:#0b0d10d0!important;transform:none!important}
html body.pg-catalog.academy.gc-clean #detail .gp-preview-btn strong{font-size:13.5px!important;font-weight:800!important;color:#fff!important;letter-spacing:-.2px}
html body.pg-catalog.academy.gc-clean #detail .gp-preview-btn small{font-size:11.5px!important;font-weight:600!important;color:#ffffffa8!important}
html body.pg-catalog.academy.gc-clean #detail .gp-preview-btn>span:last-child{display:flex;align-items:baseline;gap:7px}
html body.pg-catalog.academy.gc-clean #detail .gp-preview-play{width:28px!important;height:28px!important;background:#fff!important;animation:none!important}
html body.pg-catalog.academy.gc-clean #detail .gp-preview-play::after{left:11px!important;top:8px!important;border-left:9px solid #111!important;border-top:6px solid transparent!important;border-bottom:6px solid transparent!important}
@media(max-width:780px){
 html body.pg-catalog.academy.gc-clean #detail .gp-preview-btn{left:10px!important;bottom:10px!important;padding:5px 12px 5px 5px!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-preview-play{width:24px!important;height:24px!important}
 html body.pg-catalog.academy.gc-clean #detail .gp-preview-play::after{left:9px!important;top:7px!important;border-left-width:8px!important;border-top-width:5px!important;border-bottom-width:5px!important}
}

/* ---------- curriculum rows with lesson thumbnails ---------- */
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb{padding:12px 16px 12px 12px!important;gap:16px!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb .no{flex:none!important;width:168px!important;height:auto!important;min-height:0!important;padding:0!important;font-size:0!important;line-height:0!important;display:block!important}
html body.pg-catalog.academy.gc-clean #detail .lesson-thumb{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:10px;background:#15181c;box-shadow:0 8px 18px -12px #000c}
html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb b{font-size:16px!important;line-height:1.45!important;word-break:keep-all}
html body.pg-catalog.academy.gc-clean #detail #lessons a.lesson.has-thumb:hover .lesson-thumb{filter:brightness(1.1)}
@media(max-width:780px){
 html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb{padding:10px!important;gap:12px!important}
 html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb .no{width:112px!important}
 html body.pg-catalog.academy.gc-clean #detail #lessons .lesson.has-thumb b{font-size:14.5px!important}
}
