/* Isolated course-card presentation: preserves existing enrolment and launch controls. */
.learning-course .share-course-cover{position:relative;display:block;aspect-ratio:16/9;margin:-24px -24px 20px;overflow:hidden;border-radius:11px 11px 0 0;background:#e7eef3;flex:none}
.learning-course .share-course-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.learning-course .share-course-cover-mark{position:absolute;right:12px;bottom:12px;width:36px;height:36px;object-fit:contain;opacity:.50;pointer-events:none}
.learning-course .share-course-duration{display:inline-flex;align-items:center;align-self:flex-start;gap:7px;margin:0 0 6px;padding:6px 10px;border:1px solid #c8d9e5;border-radius:7px;background:#edf3f8;color:#123e68;font-size:14px;line-height:1.3;font-weight:700}
.learning-course .share-course-duration svg{flex:none}
@media(max-width:650px){.learning-course .share-course-cover{margin:-20px -20px 18px}.learning-course .share-course-cover-mark{width:32px;height:32px;right:10px;bottom:10px}}

/* Course covers already own their native mark, including copies with older branding JS. */
.learning-course .share-course-cover .share-content-image-frame::after{display:none}

/* SHARE-LEARNING-BALANCED-TILES:START */
/* One image ratio, full teaching/captions, and row-aligned purchase controls. */
body.share-learning-home #learning-app .share-library-tile{background:#fff!important;overflow-wrap:anywhere}
body.share-learning-home #learning-app .share-library-tile-media{min-width:0;height:auto!important;margin:0!important}
body.share-learning-home #learning-app .share-library-tile-image{display:block;width:100%!important;max-width:100%;height:auto!important;aspect-ratio:16/9;object-fit:contain!important;object-position:center;background:#f4f7fa;border-radius:7px}
body.share-learning-home #learning-app .share-library-tile-media :is(.share-content-image-frame,.asb-offer-image){display:block;width:100%;height:auto!important;min-height:0;aspect-ratio:16/9;margin:0!important}
body.share-learning-home #learning-app .share-library-tile-media :is(.share-content-image-frame,.asb-offer-image) .share-library-tile-image{height:100%!important}
body.share-learning-home #learning-app .share-library-tile-media figcaption{margin:0!important;padding:10px 0 0!important;font-size:13px;line-height:1.5}
body.share-learning-home #learning-app .share-library-tile-copy{display:flex!important;flex-direction:column!important;gap:14px!important;min-width:0}
body.share-learning-home #learning-app .share-library-tile-kicker{margin:0!important;font-size:11px!important;line-height:1.5!important;letter-spacing:.06em;text-transform:uppercase;color:#a5142c}
body.share-learning-home #learning-app .share-library-tile-heading{margin:0!important;font-size:20px!important;line-height:1.3!important}
body.share-learning-home #learning-app .share-library-tile-price{min-width:0}
body.share-learning-home #learning-app .share-library-tile-price .share-purchase-price{margin:0!important;font-size:25px!important;line-height:1.3!important}
body.share-learning-home #learning-app .share-library-tile-price .course-vat-note{margin:8px 0 0!important}
body.share-learning-home #learning-app .share-library-tile-details{flex:1;min-width:0}
body.share-learning-home #learning-app .share-library-tile-details>:first-child{margin-top:0!important}
body.share-learning-home #learning-app .share-library-tile-details>:last-child{margin-bottom:0!important}
body.share-learning-home #learning-app .share-library-tile .share-purchase-actions{margin-top:auto!important;padding-top:0!important;align-self:stretch}
body.share-learning-home #learning-app .share-library-tile .share-purchase-primary{min-height:48px}
body.share-learning-home #learning-app .share-library-tile .share-purchase-secondary{padding-top:0;min-height:44px}
body.share-learning-home #learning-app .share-library-tile .share-purchase-secondary a{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important}
/* Covers also retain their dimensions when the editorial branding wraps the image. */
.learning-course .share-course-cover .share-content-image-frame{display:block;width:100%;height:100%;aspect-ratio:16/9}
body.share-learning-home #learning-app .share-library-course-details{min-width:0;flex:1}
body.share-learning-home #learning-app .share-library-course-details .share-course-duration{margin:0 0 12px}
body.share-learning-home #learning-app .share-library-course-details>p{font-size:15px;line-height:1.65;margin:0 0 18px}
body.share-learning-home #learning-app .share-library-course-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto;min-width:0}
body.share-learning-home #learning-app .share-library-course-actions>.button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0;padding:12px 16px;font-size:14px;line-height:1.45;white-space:normal;text-align:center;box-sizing:border-box}
body.share-learning-home #learning-app .share-library-course-actions>.learning-record-link{display:flex;align-items:center;min-height:44px;margin:0;line-height:1.5}
body.share-learning-home #learning-library .staging-test-image{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
@supports(grid-template-rows:subgrid){
 body.share-learning-home #learning-app .share-library-tile{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:span 7!important;row-gap:14px!important}
 body.share-learning-home #learning-app .share-library-tile-media{grid-row:1;align-self:start}
 body.share-learning-home #learning-app .share-library-tile-copy{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:2 / span 6;row-gap:14px!important}
 body.share-learning-home #learning-app .share-library-tile .share-purchase-actions{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:5 / span 2;margin:0!important;align-self:stretch}
 body.share-learning-home #learning-app .share-library-course{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:span 6;row-gap:14px}
 body.share-learning-home #learning-app .share-library-course>.share-course-cover{margin-bottom:0}
 body.share-learning-home #learning-app .share-library-course>h4{margin:0}
 body.share-learning-home #learning-app .share-library-course-actions{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:5 / span 2;margin-top:0;align-self:stretch}
}
/* Native hidden/access states always take precedence over the presentation grid. */
body.share-learning-home #learning-app :is(.share-library-tile,.share-library-course,.learning-start-card)[hidden]{display:none!important}
/* SHARE-LEARNING-BALANCED-TILES:END */

/* SHARE-LEARNING-SINGLE-JIGSAW:START */
/* Preserve the image's own jigsaw when an older footer created a generic wrapper. */
body.share-learning-home #learning-app [data-share-branding="native"] .share-content-image-frame::after{content:none!important}
/* SHARE-LEARNING-SINGLE-JIGSAW:END */

/* SHARE-LEARNING-BOTTOM-ACTIONS:START */
/* Equal-height entry tiles: the full text grows above the original bottom action. */
body.share-learning-home #learning-app #learning-workspace .learning-start-card{display:flex!important;flex-direction:column!important;grid-row:auto!important;align-self:stretch}
body.share-learning-home #learning-app #learning-workspace .learning-start-card>.learning-start-copy{flex:1 1 auto;min-width:0}
body.share-learning-home #learning-app #learning-workspace .learning-start-card>.learning-start-action{margin-top:auto!important;align-self:stretch;min-height:48px;box-sizing:border-box}
body.share-learning-home #learning-app #learning-workspace .learning-start-card[hidden]{display:none!important}
/* SHARE-LEARNING-BOTTOM-ACTIONS:END */
