html:not(.hm-track-jce) .h5p-content{--h5p-theme-main-cta-base:#017F83;--h5p-theme-main-cta-light:#01959A;--h5p-theme-main-cta-dark:#015F62;--h5p-theme-focus:#017F83;--h5p-theme-contrast-cta:#FFFFFF;--h5p-theme-contrast-cta-white:#017F83;--h5p-theme-secondary-contrast-cta-hover:#FFFFFF}
html:not(.hm-track-jce) .h5p-theme-secondary-cta{background-color:#017F83!important;border-color:#017F83!important;color:#FFFFFF!important}
html:not(.hm-track-jce) .h5p-theme-secondary-cta:hover:not(:disabled){background-color:#015F62!important;border-color:#015F62!important}
html.hm-track-jce .h5p-theme-secondary-cta{background-color:#B5451B!important;border-color:#B5451B!important;color:#FFFFFF!important}
.h5p-joubelui-score-bar-progress{font-size:0!important;color:transparent!important}
em{font-weight:700}
html:not(.hm-track-jce) .h5p-theme-nav-button:not(:disabled){background-color:#017F83!important;color:#FFFFFF!important}

/* Phone fixes from Tam's review of Science 3.1 (10 Nov 2026). Loaded inside every H5P activity (iframe or in-page). */
/* 1. Question sets: the Next and Finish buttons were pushed outside the frame on narrow screens. One row: Previous, progress, Next. */
.h5p-question-set .qs-footer{display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px!important;height:auto!important;box-sizing:border-box}
.h5p-question-set .qs-footer .h5p-visibility-hidden{display:none!important}
.h5p-question-set .qs-footer .progress-container{flex:1 1 auto;min-width:0;margin:0!important;padding:6px 10px!important}
.h5p-question-set .qs-footer .progress-text{white-space:normal!important;font-size:.85em;line-height:1.25}
.h5p-question-set .qs-footer .h5p-theme-nav-button,.h5p-question-set .qs-footer .h5p-theme-show-results{flex:0 0 auto;min-width:48px;min-height:44px}
.h5p-question-set .qs-footer .h5p-theme-next,.h5p-question-set .qs-footer .h5p-theme-show-results{margin-left:auto}
/* Buttons keep their words on narrow screens (the theme shrank Check, Next and Finish to icons). */
.h5p-content .h5p-theme-check .h5p-theme-label,.h5p-content .h5p-theme-retry .h5p-theme-label,.h5p-content .h5p-theme-show-solution .h5p-theme-label,.h5p-content .h5p-theme-show-results .h5p-theme-label,.h5p-content .qs-footer .h5p-theme-next .h5p-theme-label,.h5p-content .h5p-theme-continue .h5p-theme-label{display:inline!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;overflow:visible!important;font-size:1rem!important}
.h5p-content .qs-footer .h5p-theme-next{width:auto!important;padding:0 14px!important;gap:6px}
@media (max-width:600px){
/* 2 and 4. Dialog cards: less empty space, wider text, whole activity on one phone screen. */
.h5p-dialogcards .h5p-dialogcards-title-container{padding:8px 12px!important}
.h5p-dialogcards .h5p-dialogcards-title{display:none!important}
.h5p-dialogcards .h5p-dialogcards-description p{margin:0!important}
.h5p-dialogcards .h5p-dialogcards-progress{margin-top:8px!important;padding:4px 12px!important}
.h5p-dialogcards .h5p-dialogcards-cardwrap{padding:10px 12px!important}
.h5p-dialogcards .h5p-dialogcards-card-content{padding-top:8px!important}
.h5p-dialogcards .h5p-dialogcards-card-text-wrapper{padding:0 10px 10px!important}
.h5p-dialogcards .h5p-dialogcards-card-text-inner{padding:8px 4px!important}
.h5p-dialogcards .h5p-dialogcards-card-text-inner-content{padding:0 4px!important;text-align:center}
.h5p-dialogcards .h5p-dialogcards-card-text{margin:4px 0!important}
.h5p-dialogcards .h5p-dialogcards-card-footer{margin:10px 0 4px!important}
.h5p-dialogcards .h5p-dialogcards-card-text-area{text-align:center}
.h5p-dialogcards .h5p-navigation{padding:8px 12px!important}
.h5p-dialogcards .h5p-navigation .h5p-theme-nav-button{min-width:48px;min-height:44px}
/* Image hotspots: smaller circles on phones, so they do not hide the picture (12 Nov 2026, periodic table in 3.3c). */
.h5p-image-hotspots .h5p-image-hotspot{transform:scale(.7)}
/* 5. Drag the words: tighter lines so the gaps and the word bank fit on one screen. */
.h5p-drag-text .h5p-question-introduction{margin:10px 0!important}
.h5p-drag-text .h5p-drag-droppable-words{line-height:2.3!important}
.h5p-drag-text .h5p-drag-draggables-container .h5p-draggable{margin:4px 6px!important}
}
