/* Full headings remain visible; the script reduces only the desktop font size. */
@media(min-width:981px){.hero-copy h1{overflow-wrap:break-word;hyphens:none}}
.video-chip{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)!important;isolation:isolate}
.video-chip .video-thumbnail{min-width:0!important;width:100%!important;max-width:100%!important;position:relative;overflow:hidden}
.video-chip .video-thumbnail img{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;object-fit:cover!important}
.video-chip .video-copy{position:relative;z-index:1;min-width:0!important;width:auto!important;max-width:100%!important;background:#fff;overflow-wrap:break-word;word-break:normal;hyphens:none;white-space:normal}
@media(max-width:700px){
 .video-chip{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;height:auto!important;min-height:124px!important;align-items:stretch!important}
 .video-chip .video-thumbnail{min-height:124px!important}
 .video-chip .video-copy{padding:12px!important;justify-content:center!important}
 .video-chip .video-copy>strong{font-size:18px!important;line-height:1.2!important;overflow-wrap:break-word}
 .video-chip .video-copy small{font-size:11px!important;line-height:1.4!important;margin-top:7px!important}
 .hub-course-card .course-card-intro,.topic-course .course-card-intro,.topic-card .course-card-intro,.import-category-card .course-card-intro{background-image:linear-gradient(90deg,rgba(247,250,252,.88),rgba(247,250,252,.68) 55%,rgba(247,250,252,.34)),var(--course-title-image)!important;background-position:center,var(--course-card-focus,50% 50%)!important;background-size:cover!important;background-repeat:no-repeat!important;isolation:isolate}
 .course-card-intro[data-course-photo]::before,.course-card-intro[data-course-photo]::after{content:none!important}
 .topic-course>img,.topic-card>img,.import-category-card>a:first-child:has(img){display:none!important}
 .topic-course{display:block!important}.topic-course>div.course-card-intro,.topic-card>div.course-card-intro{padding:16px!important;min-height:0!important;width:100%;box-sizing:border-box}
 .import-category-card>div>.course-card-intro{margin:-14px -14px 12px;padding:14px;border-bottom:1px solid #d4e1e7}
 .import-category-card .course-card-intro>p:first-of-type{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
/* Shared floating controls: desktop Anna stays centred at every scroll position. */
body .floating-apply{background:#173f6c!important;border-color:#173f6c!important;color:#fff!important}
body .floating-apply:hover{background:#102f53!important;border-color:#102f53!important}
@media(min-width:681px){
 body #chat-modal.is-open{position:fixed!important;inset:0!important;display:grid!important;place-items:center!important;align-items:center!important;justify-items:center!important;padding:24px!important;transform:none!important}
 body #chat-modal .chat-panel{position:relative!important;inset:auto!important;margin:0!important;transform:none!important;align-self:center!important;justify-self:center!important}
}

/* Align catalog cards with and without the printed-book picture wrapper. */
.hub-course-card>.catalog-book-picture{height:auto!important;line-height:0;flex:0 0 auto}.hub-course-card>.course-picture,.hub-course-card>.catalog-book-picture>.course-picture{height:154px;min-height:154px;max-height:154px;margin:0}.hub-course-card .course-modes{min-height:24px;align-content:flex-start}@media(min-width:681px) and (max-width:1100px){.hub-course-card .course-modes{min-height:46px}}@media(max-width:680px){.hub-course-card>.catalog-book-picture{line-height:normal}}

/* Match the home-card installment color without changing prices or typography. */
html body .course-prices b,
html body.hub-page :is(.hub-featured-grid,#catalog-grid) .course-prices b,
html body .hero .hero-payment-prices .hero-monthly-offer .hero-price,
html body #formats .delivery-price + .delivery-price strong,
html body #formats .delivery-installment-total strong{color:#a57726!important}

/* Keep the course hero's secondary actions legible over every image. */
body[data-unified-course-image] .hero-actions :is(.btn--outline,.btn--inquiry){background:#f6fbfe!important;color:#193b66!important;border-color:#193b66!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body[data-unified-course-image] .hero-actions :is(.btn--outline,.btn--inquiry):hover{background:#193b66!important;color:#fff!important}
body[data-unified-course-image] .hero-actions :is(.btn--outline,.btn--inquiry):focus-visible{outline:3px solid #193b66;outline-offset:3px}

/* Use one cash-price size so the monthly fee is exactly two thirds of it. */
html body #formats .delivery-grid{--delivery-cash-size:23px}
html body #formats .delivery-price strong{font-size:var(--delivery-cash-size)!important}
html body #formats .delivery-price+.delivery-price strong{font-size:calc(var(--delivery-cash-size) * 2 / 3)!important}
@media(min-width:981px){html body #formats .delivery-grid[data-format-count="5"]{--delivery-cash-size:clamp(17px,1.5vw,21px)}}
