/* Shared legacy course panels; exact course routes only. */
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"], body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] :is(div,p,h1,h2,h3,b,strong,li){color:#eee7f2!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #ffffff"]{background:#2c2632!important;border-color:#634e6e!important;box-shadow:none!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #fff9fc"]{background:#2c2632!important;border-color:#634e6e!important;box-shadow:none!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #fcf8ff"]{background:#2c2632!important;border-color:#634e6e!important;box-shadow:none!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #f8f9fa"]{background:#2c2632!important;border-color:#634e6e!important;box-shadow:none!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background: linear-gradient"]{background:linear-gradient(110deg,#32263d,#51385c)!important;border-color:#9b6a9e!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] > div:first-child[style*="background: linear-gradient"]{background:linear-gradient(110deg,#241c31 0%,#472454 46%,#754166 100%)!important;box-shadow:0 8px 24px #0003!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #fff9fc"]{background:#33283c!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #eef2ff"]{background:#292c49!important;border-color:#6c6aa4!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #f0fff4"]{background:#22392e!important;border-color:#497a5e!important;border-left-color:#6ed096!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="background-color: #fffaf0"]{background:#3c3023!important;border-color:#8b6941!important;border-left-color:#e3ac64!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] span[style*="color: #00a650"]{color:#91e4ae!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] span[style*="background-color: #f0f0f0"],body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] span[style*="background-color: #ffe6f0"]{background:#60416f!important;color:#fff!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] a{color:#e4b9f0!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] a[style*="background-color: #8d52a1"]{background:#e8d1f1!important;color:#382045!important;border-color:#e8d1f1!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] a[style*="background-color: #ffffff"],body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] a[style*="background-color: #f0f0f0"]{background:#44304f!important;color:#f5eaf9!important;border-color:#b58ac5!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] a[style*="background-color: #4f46e5"]{background:#5145b8!important;color:#fff!important}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] a[style*="background-color"]:hover{filter:brightness(1.12)}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] a:focus-visible{outline:2px solid #e8c7f2;outline-offset:3px}
body.site_s3.theme-dark #content .content-text > div[style*="font-family: Arial"] div[style*="min-width: 260px"]{min-width:0!important}

/* Long course links must wrap inside narrow step cards in both themes. */
@media(max-width:767px){body.site_s3 #content .content-text > div[style*="font-family: Arial"]{overflow-wrap:anywhere}body.site_s3 #content .content-text > div[style*="font-family: Arial"] div[style*="flex: 1"]{min-width:0!important}body.site_s3 #content .content-text > div[style*="font-family: Arial"] a[style*="background-color"]{max-width:100%;box-sizing:border-box;white-space:normal}}

body.site_s3 #content .content-text > div[style*="font-family: Arial"] img[style*="width: 160px"]{width:160px!important;height:160px!important;max-width:100%!important}

@media(max-width:767px){body.site_s3 #content .content-text > div[style*="font-family: Arial"] div:has(> div > img[style*="width: 160px"]){flex-direction:column!important;align-items:stretch!important}}

/* The MetaPWR photographic page banner has an intentionally light image. */
body.site_s3.theme-dark .maxwidth-banner .banner-wrapper h1[style="color:#000000"]{color:#222!important}
