:root{--color-primary: #455465;--color-secondary: #007ab8;--color-tertiary: #1ea4a9;--color-state: #0074be;--color-state-hover: #006ab4;--color-state-focus: #006ab4;--color-state-active: #0059a3;--color-state-highlight: #f6f9d7;--color-state-highlight-neutral: var(--color-neutral-3);--color-state-disabled: var(--color-neutral-5);--color-neutral-1: #fff;--color-neutral-2: #fafafa;--color-neutral-3: #f7f7f7;--color-neutral-4: #e6e4e4;--color-neutral-5: #c7c7c7;--color-neutral-6: #767676;--color-neutral-7: #262626;--color-background: var(--color-neutral-1);--color-border: var(--color-neutral-5);--color-text: var(--color-neutral-7);--color-text-disabled: var(--color-neutral-5);--color-text-hint: var(--color-neutral-6);--link-color: var(--color-state);--link-color-hover: var(--color-state-hover);--nav-bg-color: #fafafa;--nav-text-color: var(--color-text);--nav-selected-color: var(--color-state);--nav-border-colour: rgba(128, 128, 128, 0.2);--nav-width: 15rem;--nav-collapsed-width: 5rem;--nav-button-size: 1.25rem;--nav-logo-width: 7.5rem;--nav-logo-height: 7.5rem;--nav-logomark-width: 2.5rem;--nav-logomark-height: 2.5rem;--footer-bg-color: #fff;--footer-text-color: var(--color-text);--footer-text-color-hover: var(--footer-text-color);--btn-accent-color: var(--color-state);--btn-accent-color-active: var(--color-state-active);--btn-accent-color-hover: var(--color-state-hover);--btn-accent-color-disabled: var(--color-state-disabled);--page-content-padding-desktop: calc(var(--gap-base) * 8)}@font-face{font-family:"Source Sans Pro";src:url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-regular.eot);src:url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-regular.eot%3F%23iefix) format("embedded-opentype"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-regular.woff) format("woff"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-regular.woff2) format("woff2"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-regular.ttf) format("truetype"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-regular.svg%23SourceSansPro) format("svg");font-weight:400;font-style:normal}@font-face{font-family:"Source Sans Pro";src:url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-700.eot);src:url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-700.eot%3F%23iefix) format("embedded-opentype"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-700.woff) format("woff"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-700.woff2) format("woff2"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-700.ttf) format("truetype"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-700.svg%23SourceSansPro) format("svg");font-weight:700;font-style:normal}@font-face{font-family:"Source Sans Pro";src:url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-900.eot);src:url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-900.eot%3F%23iefix) format("embedded-opentype"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-900.woff) format("woff"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-900.woff2) format("woff2"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-900.ttf) format("truetype"), url(/theme/font.php/inspire/theme/1789696350/source-sans-pro-v13-latin-ext_latin-900.svg%23SourceSansPro) format("svg");font-weight:900;font-style:normal}.tui-theme_inspire-navItem{--tui-theme_inspire-navItem-height: 2.75rem;--tui-theme_inspire-navItem-indicator-height: 2rem;--tui-theme_inspire-navItem-top-level-nav-item-padding: 10px;--tui-theme_inspire-navItem-nav-item-padding: 6px;display:flex;flex-grow:1;flex-wrap:wrap;height:var(--tui-theme_inspire-navItem-height);padding-top:calc(var(--gap-base) * 1);color:var(--nav-tab-text-color)}.tui-theme_inspire-navItem--navExpanded{height:100%}.tui-theme_inspire-navItem__icon{width:1.2em;height:1.2em;margin:auto}.tui-theme_inspire-navItem__icon--navExpanded{margin:calc(var(--gap-base) * 3) auto auto calc(var(--gap-base) * 3)}.tui-theme_inspire-navItem .tui-theme_inspire-navItem{padding-top:0}.tui-theme_inspire-navItem--selected{color:var(--nav-selected-color)}.tui-theme_inspire-navItem--selected:before{height:var(--tui-theme_inspire-navItem-indicator-height);margin-top:calc(var(--gap-base) * 1);border-right:calc(var(--gap-base) * 1) solid var(--nav-selected-color);border-top-right-radius:calc(var(--gap-base) * 1);border-bottom-right-radius:calc(var(--gap-base) * 1);content:""}.tui-theme_inspire-navItem .tui-theme_inspire-navItem--selected:before{margin-top:0}.tui-theme_inspire-navItem--link{flex-wrap:nowrap}.tui-theme_inspire-navItem__heading{display:flex;flex-grow:1;align-items:flex-start;padding:0;background-color:inherit;border:none;border-radius:var(--btn-radius)}.tui-theme_inspire-navItem__heading--childSelected{color:var(--nav-selected-color)}.tui-theme_inspire-navItem__heading--depth-0{margin-left:calc(var(--gap-base) * 5);font-weight:600}.tui-theme_inspire-navItem__heading--depth-0.tui-theme_inspire-navItem__heading--navExpanded{margin-left:calc(var(--gap-base) * 3)}.tui-theme_inspire-navItem__heading--depth-0.tui-theme_inspire-navItem__heading--selected{margin-left:calc(var(--gap-base) * 4)}.tui-theme_inspire-navItem__heading--depth-0.tui-theme_inspire-navItem__heading--selected.tui-theme_inspire-navItem__heading--navExpanded{margin-left:calc(var(--gap-base) * 2)}.tui-theme_inspire-navItem__heading--depth-0 .tui-theme_inspire-navItem__headingAction{margin:calc(var(--gap-base) * 2)}.tui-theme_inspire-navItem__heading--depth-1{margin-left:calc(var(--gap-base) * 10);font-weight:400}.tui-theme_inspire-navItem__heading--depth-1.tui-theme_inspire-navItem__heading--selected{margin-left:calc(var(--gap-base) * 9)}.tui-theme_inspire-navItem__heading--depth-2{margin-left:calc(var(--gap-base) * 13)}.tui-theme_inspire-navItem__heading--depth-2.tui-theme_inspire-navItem__heading--selected{margin-left:calc(var(--gap-base) * 12)}.tui-theme_inspire-navItem__heading--link{color:var(--nav-tab-text-color)}.tui-theme_inspire-navItem__heading--link:hover,.tui-theme_inspire-navItem__heading--link:focus{color:var(--nav-tab-text-color);text-decoration:none}.tui-theme_inspire-navItem__heading--link.tui-theme_inspire-navItem__heading--selected{color:var(--nav-selected-color)}@media (hover:hover){.tui-theme_inspire-navItem__heading:hover{background-color:color-mix(in srgb, var(--nav-tab-text-color) 10%, transparent)}}.tui-theme_inspire-navItem__heading:focus-visible{outline:2px solid var(--nav-tab-text-color)}.tui-theme_inspire-navItem__headingText{flex-grow:1;margin:auto;padding:var(--tui-theme_inspire-navItem-nav-item-padding) calc(var(--gap-base) * 1) var(--tui-theme_inspire-navItem-nav-item-padding) calc(var(--gap-base) * 3);text-align:left;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}.tui-theme_inspire-navItem__headingText--depth-0{padding:var(--tui-theme_inspire-navItem-top-level-nav-item-padding) calc(var(--gap-base) * 1) var(--tui-theme_inspire-navItem-top-level-nav-item-padding) calc(var(--gap-base) * 3)}.tui-theme_inspire-navItem__headingAction{flex-basis:1.5rem;flex-shrink:0;height:1.5rem;margin:calc(var(--gap-base) * 1) calc(var(--gap-base) * 2);padding:var(--tui-theme_inspire-navItem-nav-item-padding);color:var(--nav-tab-text-color)}.tui-theme_inspire-navItem__children{flex-basis:100%;margin-bottom:calc(var(--gap-base) * 2);margin-left:0;list-style:none}.tui-theme_inspire-navigation__toggle{position:absolute;z-index:1;width:var(--nav-button-size);height:var(--nav-button-size);margin:calc(var(--gap-base) * 4);color:var(--color-text)}.tui-theme_inspire-navigation__toggle--overlay{display:block}.tui-theme_inspire-navigation__toggle--expand{display:none}@media (min-width:992px){.tui-theme_inspire-navigation__toggle{left:var(--nav-collapsed-width);margin-left:calc(var(--gap-base) * 5)}.tui-theme_inspire-navigation__toggle--overlay{display:none}.tui-theme_inspire-navigation__toggle--expand{display:block}.tui-theme_inspire-navigation__toggle--navExpanded{left:var(--nav-width)}}.tui-theme_inspire-navigation__toggle--navHidden{left:0}.tui-theme_inspire-navigation{position:relative;z-index:var(--zindex-navbar);display:none;flex-direction:column;overflow:visible}@media (min-width:992px){.tui-theme_inspire-navigation{display:flex;width:var(--nav-collapsed-width)}}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__nav{position:fixed;display:flex;flex-direction:column;width:var(--nav-collapsed-width);height:100%;background-color:var(--nav-bg-color);border-right:1px inset var(--nav-border-colour)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__heading{margin:auto;border-bottom:1px inset var(--nav-border-colour)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__headingLogo{max-width:var(--nav-logomark-width);max-height:var(--nav-logomark-height);margin:calc(var(--gap-base) * 8) 0}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__collapse{float:right;width:var(--nav-button-size);height:var(--nav-button-size);margin-top:calc(var(--gap-base) * 4);margin-right:calc(var(--gap-base) * -3);color:var(--nav-tab-text-color)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__collapse:focus-visible{outline:2px solid var(--nav-tab-text-color)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__items{display:flex;flex-direction:column;gap:calc(var(--gap-base) * 1);height:100%;margin:0;padding:calc(var(--gap-base) * 5) calc(var(--gap-base) * 5) calc(var(--gap-base) * 5) 0;overflow-y:auto;list-style:none}.tui-theme_inspire-navigation--overlaid{position:fixed;z-index:var(--zindex-nav-overlay);display:flex;width:var(--nav-width)}@media (min-width:992px){.tui-theme_inspire-navigation--overlaid{position:relative;width:var(--nav-collapsed-width)}}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__nav{width:var(--nav-width)}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__heading{margin:0 calc(var(--gap-base) * 6)}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__headingLogo{max-width:var(--nav-logo-width);max-height:var(--nav-logo-height)}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__items{padding:calc(var(--gap-base) * 5) calc(var(--gap-base) * 3) calc(var(--gap-base) * 5) 0}.tui-theme_inspire-navigation--desktopExpanded{display:none}@media (min-width:992px){.tui-theme_inspire-navigation--desktopExpanded{display:flex;width:var(--nav-width)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__nav{width:var(--nav-width)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__heading{margin:0 calc(var(--gap-base) * 6)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__headingLogo{max-width:var(--nav-logo-width);max-height:var(--nav-logo-height)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__items{padding:calc(var(--gap-base) * 5) calc(var(--gap-base) * 3) calc(var(--gap-base) * 5) 0}}.tui-theme_inspire-navigation--hidden{display:none}.tui-settingsFormBrand__testEmailInfoButton{align-self:center}.tui-themeSettings__content{margin-top:var(--gap-8)}.tui-themeSettings__forms>*+*{margin-top:var(--gap-8)}:root{--nav-bg-color: #fafafa;--nav-text-color: #262626;--nav-selected-color: #223d92;--color-primary: #00bdf2;--btn-accent-color: #0074be;--link-color: #0e488d;--color-state: #00164b;--color-text: #262626;--footer-bg-color: #ffffff;--footer-text-color: #262626;--btn-accent-color-hover: #006ab4;--btn-accent-color-active: #0059a3;--link-color-hover: #043e83;--color-state-hover: #000c41;--color-state-focus: #000c41;--color-state-active: #000030;--footer-text-color-hover: #1c1c1c;}
/*VERSION CONTROL
LAST UPDATE BY: Ann-Marie
DATE:  September 17, 2026
WR:#475845
COPY: https://alfresco.wgtn.cat-it.co.nz/share/s/twa8JepaQnylEv58ut7WDQ

FIREARMS COLOUR UPDATE - 8 SEPTEMBER 2026
- Updated firearms colour variables to the revised palette.
- Reassigned welcome, highlight, tile and navigation text to --firearms-dark.
- Reassigned the firearms button and category activity links to --firearms-primary.

CSS REVIEW CORRECTIONS - 8 SEPTEMBER 2026
- REVIEW FIX 1: Added calc() to the featured-link heading font-size expression.
- REVIEW FIX 2: Used border-color to preserve the firearms button border style.
- REVIEW FIX 3: Added targeted important heading colours; navigation remains dark.
- REVIEW FIX 4: Removed unreliable accesshide-based hidden-activity overrides.
  Totara's default hidden-activity styling is retained pending HTML verification.
*/
/*variabale declarations*/
:root {
    --background-color: #fff;
    --text-color: #262626;
    --primary-color: #00164b;
    --button-color: #00164b;
    --hyperlink: #0e488d;
    --police-accent-1: #223d92;
    --police-accent-2: #00bdf2;
    --police-accent-3: #ed1a3b;
    --white: #fff;
    --black: #000;
    --grey-1: #414042;
    --grey-2: #808285;
    --grey-3: #d1d3d4;
    --grey-4: #e6e7e8;
    --cyan-1: #32c5f4;
    --cyan-2: #88d6f8;
    --cyan-3: #d7f0fc;
    --cyan-4: #e9f7fe;
    --recruit-blue: #0e488d;
    --firearms-primary: #008746;
    --firearms-dark: #036735;
    --firearms-bright: #00914B;
    --firearms-background: #ECF4F0;

}

/*SITE ELEMENTS*/

/*font, text and headings*/

body {
font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
    line-height: 30px;
}

.generated-content--user.legacy-rendered {
    font-size: 18px !important;
    line-height: 30px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
font-family: "Source Sans Pro", sans-serif;
}

h4 {
    padding-top: 20px;
}

h3.totara_core__QuickAccess_group-title {
    font-size: 20px !important;
}

/*dialogue box8*/
.moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd,
.moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd.yui3-widget-hd {
    margin-bottom: 0;
}

/* Search Alignment fixes */

.tw-selectRegionPrimary__selector:first-of-type {
    min-width: 230px;
}

@media (min-width: 800px) {
    .tw-selectRegionPrimary__selector:first-of-type {
        min-width: 30%;
    }
}

@media (min-width: 992px) {
    .tw-selectRegionPrimary__selector:first-of-type {
        min-width: 200px;
    }
}

@media (min-width: 1745px) {
    .tw-selectRegionPrimary__selector:first-of-type {
        min-width: 14%;
    }
}

.tui-pageHeading__title,
.tw-catalog__title {
    color: var(--primary-color) !important;
}

.tui-collapsible__header-heading {
    margin-bottom: 0 !important;
}

/*site navigation bar*/
@media (min-width: 992px) {
    .tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__headingLogo {
        max-width: 12.5rem;
    }
}

.tui-theme_inspire-navigation__nav {
    background-color: var(--grey-4) !important;
}

.tui-theme_inspire-navItem__heading--depth-0 {
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
}

.tui-theme_inspire-navItem__heading--depth-0:hover {
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
}

/*site footer*/
#page-footer {
    border-top: none;
}

.page-footer-poweredby {
    display: none;
}

/*Perform*/
.tui-form--inputWidth-limited .tui-formField:not(.tui-input--customSize) {
    max-width: 100%;
}

/*buttons*/
button,
input.form-submit,
input[type=button],
input[type=submit],
input[type=reset],
.link-as-button,
.btn-default,
input#id_submitbutton,
input#id_submitbutton2,
.btn-primary,
.tui-formBtn--prim,
.tui-iconBtn--prim,
.tui-actionLink--prim,
#notice .singlebutton+.singlebutton input,
.submit.buttons input[name=cancel],
.tw-catalogManageBtns__btn,
.tw-catalogResultsShare__btn,
.tw-evidence__header_titleBtns_buttons_link,
.tui-formBtn,
.btn-secondary,
.btn-primary-a,
.btn-primary-b,
.btn-secondary-a,
.btn-secondary-b {
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    background: var(--white);
    color: var(--police-accent-1);
    border-color: var(--police-accent-1);

}

button:hover,
input.form-submit:hover,
input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
.link-as-button:hover,
.btn-default:hover,
input#id_submitbutton:hover,
input#id_submitbutton2:hover,
.btn-primary:hover,
.tui-formBtn--prim:hover,
.tui-iconBtn--prim:hover,
.tui-actionLink--prim:hover,
#notice .singlebutton+.singlebutton input:hover,
.submit.buttons input[name=cancel]:hover,
.tw-catalogManageBtns__btn:hover,
.tw-catalogResultsShare__btn:hover,
.tw-evidence__header_titleBtns_buttons_link:hover,
.tui-formBtn:hover,
.btn-secondary:hover,
.btn-primary-a:hover,
.btn-primary-b:hover,
.btn-secondary-a:hover,
.btn-secondary-b:hover,
button:active,
input.form-submit:active,
input[type=button]:active,
input[type=submit]:active,
input[type=reset]:active,
.link-as-button:active,
.btn-default:active,
input#id_submitbutton:active,
input#id_submitbutton2:active,
.btn-primary:active,
.tui-formBtn--prim:active,
.tui-iconBtn--prim:active,
.tui-actionLink--prim:active,
#notice .singlebutton+.singlebutton input:active,
.submit.buttons input[name=cancel]:active,
.tw-catalogManageBtns__btn:active,
.tw-catalogResultsShare__btn:active,
.tw-evidence__header_titleBtns_buttons_link:active,
.tui-formBtn:active,
.btn-secondary:active,
.btn-primary-a:active,
.btn-primary-b:active,
.btn-secondary-a:active,
.btn-secondary-b:active {
    box-shadow: var(--btn-shadow-hover);
    color: var(--button-color);
    border-color: var(--button-color);
}

.btn-primary:is(a):hover,
.btn-primary:is(a):focus {
    color: var(--button-color);
}


.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child>.btn,
.input-group-btn:last-child>.btn-group>.btn,
.input-group-btn:last-child>.dropdown-toggle,
.input-group-btn:first-child>.btn:not(:first-child),
.input-group-btn:first-child>.btn-group:not(:first-child)>.btn {
    padding: 6px 25px;
}

.tw-containerCourse-enrolmentBanner__enrolButton {
    background-color: var(--button-color);
    border-color: var(--button-color);
}

/*Disabled buttons*/
.button.disabled,
.button.disabled:hover,
.button.disabled:active,
.button[disabled],
.button[disabled]:hover,
.button[disabled]:active,
fieldset[disabled] .button,
fieldset[disabled] .button:hover,
fieldset[disabled] .button:active,
input.form-submit.disabled,
input.form-submit.disabled:hover,
input.form-submit.disabled:active,
input.form-submit[disabled],
input.form-submit[disabled]:hover,
input.form-submit[disabled]:active,
fieldset[disabled] input.form-submit,
fieldset[disabled] input.form-submit:hover,
fieldset[disabled] input.form-submit:active,
input[type=button].disabled,
input[type=button].disabled:hover,
input[type=button].disabled:active,
input[type=button][disabled],
input[type=button][disabled]:hover,
input[type=button][disabled]:active,
fieldset[disabled] input[type=button],
fieldset[disabled] input[type=button]:hover,
fieldset[disabled] input[type=button]:active,
input[type=submit].disabled,
input[type=submit].disabled:hover,
input[type=submit].disabled:active,
input[type=submit][disabled],
input[type=submit][disabled]:hover,
input[type=submit][disabled]:active,
fieldset[disabled] input[type=submit],
fieldset[disabled] input[type=submit]:hover,
fieldset[disabled] input[type=submit]:active,
input[type=reset].disabled,
input[type=reset].disabled:hover,
input[type=reset].disabled:active,
input[type=reset][disabled],
input[type=reset][disabled]:hover,
input[type=reset][disabled]:active,
fieldset[disabled] input[type=reset],
fieldset[disabled] input[type=reset]:hover,
fieldset[disabled] input[type=reset]:active {
    background-color: var(--grey-3);
    color: var(--grey-2);
    border-color: var(--grey-3);
}

/*Additional Button Classes*/
.btn-primary-a {
    background: var(--police-accent-1);
    color: var(--white) !important;
    border-color: var(--police-accent-1);
}

.btn-primary-a:hover,
.btn-primary-a:active {
    background: var(--white);
    color: var(--police-accent-1) !important;
    border-color: var(--police-accent-1);
}

.btn-secondary-a {
    background: var(--grey-3);
    color: var(--black) !important;
    border-color: var(--grey-2);
}

.btn-secondary-a:hover,
.btn-secondary-a:active {
    background: var(--white);
    color: var(--black);
    border-color: var(--grey-2);
}

.btn-primary-b {
    background: var(--white);
    color: var(--police-accent-2) !important;
    border-color: var(--police-accent-2);
}

.btn-primary-b:hover,
.btn-primary-b:active {
    border-color: var(--police-accent-2);
}

.btn-secondary-b {
    background: var(--white);
    color: #eb6724 !important;
    border-color: #eb6724;
}

.btn-secondary-b:hover,
.btn-secondary-b:active {

    border-color: #eb6724;
}

/*Ghost button*/


.btn-white-ghost {
    position: absolute;
    bottom: 0;
    padding: 20px 16px;
    background: none;
    background-color: #fafafa;
    border: 2px solid #eee;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #00164B;
    transition: all 0.2s ease-in;
    width: 100%;
    left: 0;
    text-transform: uppercase;
    font-weight: bold;

}

.btn-white-ghost:hover,
.btn-white-ghost:focus {
    text-decoration: none;
    background-color: #ffffff;
    color: #3ebdf2;
}

/*alerts*/
.alert-info,
#page-admin-index .adminwarning.availableupdatesinfo,
#page-admin-index .releasenoteslink {
    border-color: var(--button-color);
}

.alert-info .alert-icon,
#page-admin-index .adminwarning.availableupdatesinfo .alert-icon,
#page-admin-index .releasenoteslink .alert-icon {
    background: var(--button-color);
}

/*forms*/
/*fixes the blank clickable space on after the text on checkbox items*/
.mform .fgroup .felement label {
    width: auto;
    vertical-align: middle;
    padding: 5px;
}

/*login page*/
/*LOCAL LOGIN*/

#page-local-police-login .totaraNav_prim .masthead_logo--header_img {
    height: 4rem;
}


#page-local-police-login #region-main .staffbutton {
    background-color: var(--police-accent-2);
    color: #fff;
    font-weight: 400;
    border-radius: 50px;
    border: 0;
    width: 15rem;
    margin: 2rem;
    font-size: 1.5rem;

}

#page-local-police-login .totaraNav--login .totaraNav_prim--side {
    display: none;
}

@media (max-width: 425px) {
    #page-local-police-login #region-main .staffbutton {
        width: 80%;
    }
}

#page-local-police-login #region-main {
    background-image: url(/pluginfile.php/1/totara_core/loginbackground/4323/nzp_login_picture-prd-6647nnggios.jpg);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    flex: 1;
    height: 100%;
}


.welcome {
    background: white;
    padding-top: 50px;
    width: 30%;
    text-align: center;

}

.loginactions {
    background: white;
    padding-bottom: 50px;
    width: 30%;
    text-align: center;
}

@media (max-width:768px) {
    #page-local-police-login #region-main {
        background-image: none;
    }
}

@media (max-width:768px) {
    .welcome {
        width: 100%;
    }
}

@media (max-width:768px) {
    .loginactions {
        width: 100%;
    }
}

/*DEFAULT LOGIN*/

#page-login-index .tui-core_auth-stackChooser {
    display: none;
}

#page-login-index .tui-core_auth-login__separator {
    border: none
}

#page-login-index .tui-btn.tui-btn--variant-primary {
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    background: var(--white);
    color: var(--police-accent-1);
    border-color: var(--police-accent-1);
    margin-top: 15px;
}

#page-login-index .tui-btn.tui-btn--variant-primary:hover,
#page-login-index .tui-btn.tui-btn--variant-primary:active {
    box-shadow: var(--btn-shadow-hover);
    color: var(--button-color);
    border-color: var(--button-color);
}

#page-login-index .tui-core_auth-loginNav__image {
    height: 4rem;
}

.tui-core_auth-loginForm__options {
    display: flex;
    flex-flow: row wrap;
    gap: var(--gap-2);
    align-items: baseline;
    justify-content: center;
    order: 4;
    font-size: 14px;
}

.tui-core_auth-footer__poweredBy {
    display: none;
}


.tui-core_auth-loginForm__content:before {
    content: "If you have been given @Anywhere access, always use this login for all devices, whether Police OR Personal. Police staff: Use your QID as your username. External users: Use your email address as your username. Remember, you can use the 'Forgotten your @Anywhere username or password?' link below to reset your password.";
    line-height: 20px !important;
    font-size: 14px;
}

/*home page*/



/*catalogue*/
.tw-catalogManageBtns__group_options {
    border-color: var(--grey-4);
    border-top: 2px solid var(--btn-prim-bg-color);
}



.tw-catalogItemNarrow {
    border: 1px solid var(--grey-4);

}

.tw-catalogItemWide {
    border: 1px solid var(--grey-4);
    box-shadow: none;
    transition: 0.8s all;
    margin-bottom: 20px;
}


.tw-catalog__primaryFilter {
    border: none;
}

.tw-selectMulti__link {
    color: var(--link-color);
}

.tw-selectRegionPanel__selector_header {
    font-weight: 700;
}

.tw-selectMulti__list {
    padding: 2px;
}

.tw-selectSearchText__field_input {
    border: 1px solid transparent;
    border-bottom: 1px solid #727272;
    padding: 10px 0;
    background: transparent;
    border-radius: 0;

}

.tw-selectRegionPrimary__selector:last-of-type {
    margin: 0;
    flex-shrink: 0;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .tw-selectRegionPrimary__selector:last-of-type {
        max-width: none;
    }
}

@media (min-width: 768px) {
    .tw-selectRegionPrimary__selector {
        max-width: none;
    }
}

button.tui-totara_catalog-itemModal__close {
padding: 0px;
}

button.tui-totara_catalog-itemModal__close:hover,
button.tui-totara_catalog-itemModal__close:active,
button.tui-totara_catalog-itemModal__close:focus {
padding: 0px;
color: white!important;
}

/*dashboards*/


/*blocks*/

.block_current_learning {
    border: 0;
    padding: 0;
}

.block {
    border: none;
}

.block .block-title::after {
    box-shadow: none;
}

.block,
.block.chromeless.block {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}

.block.chromeless.block {
    border-radius: 10px;
}

.block-totara-featured-links-layout .block-totara-featured-links-tile,
.block-totara-featured-links-layout .block-totara-featured-links-flex-filler,
.block-totara-featured-links-layout>div.block-totara-featured-links-flex-filler,
.block-totara-featured-links-layout .block-totara-featured-links-tile-adder {
    border-radius: 10px;
}

.block-totara-featured-links-layout .block-totara-featured-links-content-bottom::before {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px
}

.block-totara-featured-links-layout .block-totara-featured-links-content-top::before {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px
}

.block .list {
    padding: 1px;
}

.block .footer {
    margin-top: 10px;
}

.chromeless {
    padding: var(--gap-4) !important;
}

.block_course_list .flex-icon {
    display: none;
}

.block-totara-featured-links-layout .block-totara-featured-links-content.block-totara-featured-links-content h3 {
    line-height: 20px;
}

/* =========================================================
   LANDSCAPE FEATURED LINKS
   Fine-tune Totara's existing BOTTOM title band
   ========================================================= */

/* Darker grey bottom band */
.landscape-featured-links
.block-totara-featured-links-content-bottom::before {
    background: var(--grey-2) !important;

    /* Follow the rounded navy border */
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
}

/* Do NOT increase the height of the grey band */
.landscape-featured-links
.block-totara-featured-links-content-bottom {
    padding-bottom: 0 !important;
}

/* Move only the course name:
   right to clear the navy side border
   and slightly up within the grey band */
.landscape-featured-links
.block-totara-featured-links-content-bottom h3 {
    margin: 0 !important;
    line-height: 1.15 !important;
    transform: translate(8px, -2px);
}

.block h2 {
    font-size: 20px !important;
}

/*featured link blocks on a course page*/
#page-course-view-topics .block-totara-featured-links-layout .block-totara-featured-links-content.block-totara-featured-links-content h3 {
    /* REVIEW FIX 1: CSS arithmetic requires calc(); theme variable must be a length. */
    font-size: calc(var(--font-size-base, 16px) / 16 * 18);
}

/*BLOCKS ON COURSE PAGE*/
#page-course-view-topics .block,
#page-course-view-topics .block.chromeless.block {
    box-shadow: none;
}

/*Featured link block in region top*/
#block-region-top .block.block_totara_featured_links {
    box-shadow: none;
    background-color: transparent;

}

/*block row*/
.block.block-row {
    display: inline-block;
    padding: 20px;
    background-color: #eee;
    border-radius: 10px;
    width: calc(25% - 15px);
    margin-right: 15px;
    vertical-align: top;
    min-height: 330px;
}


@media (min-width: 1024px) {
    .block.block-row {
        width: calc(25% - 20px);
    }
}

/*course index block*/
.block_course_index.block p {
    margin: var(--paragraph-gap) 0;
}

/*Police Blue Header*/
@media (min-width: 992px) {
    .policeblue-course-header {
        background-image: url(/theme/image.php/policeblue/theme/1749490817/CEP_Course_Banner);
        background-repeat: no-repeat;
        background-size: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .policeblue-course-header .icon-heading_container {
        align-self: center;
        display: flex;
        max-width: 60%;
    }
}

.policeblue-course-header .icon-heading_container {
    width: 100%;
    text-align: center;
}

@media (min-width: 992px) {
    .policeblue-course-header .course-image_container {
        max-width: 35%;
        align-self: center;
    }
}

.policeblue-course-header .course-thumbnail {
    width: 100%;
}

@media (min-width: 992px) {
    .policeblue-course-heading {
        color: #fff;
        padding: 35px;
        text-align: left;
        font-size: 50px !important;
        line-height: 1.1 !important;
    }
}

/*Course Page*/


.course-content ul li.section.main {
    margin-top: 0;
    padding-bottom: 20px;
}

#section-0 h3.sectionname.tw-formatTopics__topic_header {
    display: none;
}

#page-mod-book-view h1,
#page-mod-book-edit h1,
#page-mod-lesson-view h1,
#page-mod-lesson-editpage h1,
#page-course-editsection h1,
#page-mod-ojt-mod h1,
#page-mod-quiz-mod h1,
#page-mod-feedback-complete h1,
#page-mod-assign-view h1,
#page-mod-assign-mod h1,
#page-mod-page-view h1, 
#page-mod-ojt-view h1 {
    font-size: 42px;
    line-height: 46px;
}

#page-course-view-topics .sectionname,
#page-course-view-topics #region-main h2 #page-mod-label-mod h2,
#page-mod-book-view h2,
#page-mod-book-edit h2,
#page-mod-lesson-view h2,
#page-mod-lesson-editpage h2,
#page-course-editsection h2,
#page-mod-ojt-mod h2,
#page-mod-quiz-mod h2,
#page-mod-feedback-complete h2,
#page-mod-assign-view h2,
#page-mod-assign-mod h2,
#page-mod-page-view h2, 
#page-mod-ojt-view h2,
#page-mod-ojt-report h2,
#page-mod-ojt-evaluate h2 {
    font-size: 40px;
    line-height: 44px;
}

#page-course-view-topics h3,
#page-mod-label-mod h3,
#page-mod-book-view h3,
#page-mod-book-edit h3,
#page-mod-lesson-view h3,
#page-mod-lesson-editpage h3,
#page-course-editsection h3,
#page-mod-ojt-mod h3,
#page-mod-quiz-mod h3,
#page-mod-feedback-complete h3,
#page-mod-assign-view h3,
#page-mod-assign-mod h3,
#page-mod-page-view h3, 
#page-mod-page-mod h3, 
#page-mod-ojt-view h3,
#page-mod-ojt-report h3,
#page-mod-ojt-evaluate h3 {
    font-size: 32px;
    line-height: 1.2;
}

#page-course-view-topics h4,
#page-mod-label-mod h4,
#page-mod-book-view h4,
#page-mod-book-edit h4,
#page-mod-lesson-view h4,
#page-mod-lesson-editpage h4,
#page-course-editsection h4,
#page-mod-ojt-mod h4,
#page-mod-quiz-mod h4,
#page-mod-feedback-complete h4,
#page-mod-assign-view h4,
#page-mod-assign-mod h4,
#page-mod-page-view h4, 
#page-mod-page-mod h4,
#page-mod-ojt-editpage h4,
#page-mod-ojt-view h4,
#page-mod-ojt-report h4,
#page-mod-ojt-evaluate h4  {
    font-size: 28px;
    line-height: 1.2;
}

#page-course-view-topics h5,
#page-mod-label-mod h5,
#page-mod-book-view h5,
#page-mod-book-edit h5,
#page-mod-lesson-view h5,
#page-mod-lesson-editpage h5,
#page-course-editsection h5,
#page-mod-ojt-mod h5,
#page-mod-quiz-mod h5,
#page-mod-feedback-complete h5,
#page-mod-assign-view h5,
#page-mod-assign-mod h5,
#page-mod-page-view h5,
#page-mod-page-mod h5, 
#page-mod-ojt-view h5,
#page-mod-ojt-report h5,
#page-mod-ojt-evaluate h5 {
    font-size: 24px;
    line-height: 1.2;
}



.section .activity .availabilityinfo,
.section .activity .contentafterlink {
    margin-top: 0px;
}



/*Activity Link Styling*/

#page-course-view-topics .activityinstance a {
    color: var(--police-accent-2);
    font-size: 24px;
    letter-spacing: 0.05rem;
    font-weight: 900;
}

#page-course-view-topics .activityinstance .activityicon {
    display: none;
}

#page-course-view-topics:not(.category-9):not(.category-15):not(.course-333) .activity.scorm.modtype_scorm .activityinstance a {
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid var(--police-accent-2);
}

#page-course-view-topics:not(.category-9):not(.category-15):not(.course-333) .activity.scorm.modtype_scorm .activityinstance a:hover {
    font-size: 18px;
    border: 2px solid var(--police-accent-2);
    text-decoration: none;
    box-shadow: var(--btn-shadow-hover);
}

/* Media query for cleaner mobile view of SCORM titles */

@media screen and (max-width: 450px) {
  #page-course-view-topics:not(.category-9):not(.category-15):not(.course-333) .activity.scorm.modtype_scorm .activityinstance a {
    font-weight: 900;
    font-size: 24px;
    border: none;
    padding: 12px 0px;
  }
}

@media screen and (max-width: 450px) {
  #page-course-view-topics:not(.category-9):not(.category-15):not(.course-333) .activity.scorm.modtype_scorm .activityinstance a:hover {
    font-weight: 900;
    font-size: 24px;
    border: none;
    padding: 12px 0px;
  }
}

#page-course-view-topics:not(.category-9):not(.category-15):not(.course-333) .activity.scorm.modtype_scorm {
    margin: 20px 0;
}


/*COURSE ACTIVITIES*/
/*book*/


/*Feedback*/

.mform .ftextarea textarea {
    max-width: 200rem;
}

.mform .fitem .felement {
    line-height: 1.7 !important;
}

/** Feedback answer text box width fix **/

.path-mod-feedback textarea{
width: auto !important;
}

#feedback_edit_form .feedback-item-textfield input[type="text"],
#feedback_complete_form .feedback-item-textfield input[type="text"],
.feedback_form .feedback-item-textfield input[type="text"],
.feedback_form .feedback-item-textarea textarea{
max-width: 100% !important;
}

#page-mod-feedback-complete .femptylabel.feedback_itemlist.feedback-item-label .fitemtitle{
display: none;
}

/*video time*/
div.vimeo-embed {
    max-width: 700px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

/*assignment*/
.path-mod-assign [data-region="grading-navigation"] {
    padding: .5em;
}

/*feedback*/
.fitem>fieldset>.flegend>legend {
    font-size: 18px;
}

/*h5p*/
.h5p-question-introduction {
    line-height: 1.3;
}

/*quiz*/

.que {
    background: #fff;
    border-radius: 10px;
    border-bottom: 0;
    box-shadow: 0 0 20px rgb(0 0 0 / 6%);
    padding: 20px;
}

#page-mod-quiz-report .que {
    background: none;
    border-radius: 0;
    border-bottom: 0;
    box-shadow: none;
    padding: 0;
}

.que .info {
    background: transparent;
    border-radius: 0;
    border: 0;
}

.formulation {
    background-color: transparent;
    border-radius: 0;
    border: 0;
}

.que h3.no {
    font-size: 1.5em;
    text-align: right;
}

.prompt {
    font-size: 1em;
    font-style: normal;
    margin: 15px 0;
    font-weight: 700;
}

.que .outcome,
.que .comment {
    border-radius: 0;
}

.formulation .incorrect,
.formulation .correct,
.que.multichoice .answer .specificfeedback {
    border: 0;
}

.fitem>fieldset>legend {
    font-size: 1em;
}


.path-mod-feedback div.feedback_itemlist {
    border-top: 0;
}

#page-mod-quiz-attempt .clearfix:before,
#page-mod-quiz-attempt .clearfix:after {
    display: inline-table;
}

#page-mod-quiz-edit ul.slots .activityinstance span.instancename{
    height: 40px;
}

/*RECRUITS THEME*/


.category-153 #section-0 h3.sectionname.tw-formatTopics__topic_header {
    display: block;
}

.category-153 #section-0 .sectionname {
    background-image: url(/pluginfile.php/72681/mod_folder/content/0/police-cfit-summary-h3.png)!important;
    background-color: #00519b !important;
    background-position: top left;
    background-repeat: repeat-y;
    font-size: 23px !important;
    color: #fff;
    font-weight: bold;
    display: block;
    height: auto;
    padding: 10px 55px;
    /* Duplicate styling from earlier iteration
    background-image: url(/pluginfile.php/70044/mod_folder/content/0/police-cfit-summary-h3.png);
    background-color: #00519b;
    */
}

.category-153 .sectionname {
    background: url(/pluginfile.php/72681/mod_folder/content/0/police-cfit-h3.png) top left repeat-y #d3e9f2 !important;
    font-weight: bold;
    font-family: sans-serif;
    height: auto;
    padding: 6px 40px;
    font-size: 16px !important;
    line-height: 28px !important;
    color: var(--police-accent-1);
}

.category-153 .course-content ul li.section.main {
    border-bottom: none;
}



/*Activity Link Styling*/
#page-course-view-topics.category-153 .activityinstance a {
    color: var(--recruit-blue);
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 0;
}

#page-course-view-topics.category-153 .activityinstance .activityicon {
    display: inline-block;
}

.category-153 .activity img.activityicon {
    width: 2.2em;
}

/**FIREARMS**/
/***HEADER BLOCK****/

.block .block-header h2 {
    margin-bottom: 0 !important;
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 20px;
}

.header-block--breadcrumbs {
    background: var(--firearms-primary);
}

.header-block--breadcrumbs a {
    color: var(--white) !important;
}

.header-block--breadcrumbs .breadcrumb>.active {
    color: var(--firearms-background);
}

/******DIVIDER**********/

hr.firearmsafey-rule {
    border-top: 2px solid var(--firearms-primary);
}

/******WELCOME BLOCK***********/

.block_html.firearmsafety-welcome .content h3 {
    color: var(--firearms-dark);
    font-size: 35px !important;
    line-height: 1.3;
    font-weight: 700;
}

.welcome-block {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 100px;
    background: var(--firearms-background);
    padding: 10px;
}

.welcome-block--maincontent {
    flex: 2;
    margin: 50px;
}

.block_html.firearmsafety-welcome .content h2 {
    color: var(--firearms-dark);
    font-size: 45px !important;
    line-height: 1.7;
}


.block_html.firearmsafety-welcome .content h4 {
    color: var(--firearms-dark);
    font-size: 28px !important;
    line-height: 1.7;
    font-weight: 700;
}

.block_html.firearmsafety-welcome .content p {
    font-size: 21px !important;
    font-weight: 400;
    line-height: 2;
}

/************HIGHLIGHT SECTION************/
.firearmsafety-highlight {
    display: flex;
    background: var(--firearms-background);
    padding: 20px 60px 60px 60px;
}

.firearmsafety-highlight--mainsection {
    flex: 2;
}

.firesafety-highlight--imgcontent {
    align-self: center;
    padding: 20px;
}

.firearmsafety-highlight h2 {
    color: var(--firearms-dark);
    font-size: 45px !important;
    line-height: 1.7;
}

.firearmsafety-highlight h3 {
    color: var(--firearms-dark);
    font-size: 35px !important;
    line-height: 1.7;
}

.firearmsafety-highlight h4 {
    color: var(--firearms-dark);
    font-size: 28px !important;
    line-height: 1.7;
}

.firearmsafety-highlight p {
    font-size: 21px !important;
    font-weight: 400;
    line-height: 2;
}

.firearmsafety-highlight a {
    font-size: 21px !important;
    font-weight: 400;
    color: var(--firearms-dark);
    line-height: 2;
}

/***********TILES**************/
.firearmsafety-tiles {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

a.btn.btn-primary.firearmsafety {
    /* REVIEW FIX 2: Preserve the theme's existing border width and style. */
    border-color: var(--firearms-primary);
    background: var(--firearms-primary) !important;
    color: var(--white) !important;
}

.firearmsafety-tiles h3 {
    color: var(--firearms-dark);
    font-size: 35px !important;
    line-height: 1.7;
}

.firearmsafety-tiles h4 {
    color: var(--firearms-dark);
    font-size: 28px !important;
    line-height: 1.7;
}

/******NAVIGATION BLOCK***********/
.block_html.block.firearmsafety-nav .block-title {
    box-shadow: none;
    padding-bottom: 0;
}

.block_html.block.firearmsafety-nav .block-header h2 {
    /* REVIEW FIX 3: Override the global important blue block-heading colour. */
    color: var(--firearms-dark) !important;
    font-size: 28px;
    line-height: 1.7;
}

.firearmsafety-nav a {
    color: var(--firearms-dark);
    font-size: 20px;
    line-height: 1.7;
}

.firearmsafety-nav li.active {
    color: var(--firearms-dark);
    font-size: 20px;
    font-weight: 600;
}

.firearmsafety-nav ul {
    list-style-type: none;
}

.firearmsafety-nav li.active:before {
    font-family: 'FontAwesome';
    content: '\f061';
}

/*************Fixed tiles*************/

.firearmsafety-tiles-fixed {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
    gap: 30px;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.tile-fixed {
    flex-basis: 350px;
}

/***********FOOTER*****************/
.firearmsafety-footer {
    background-color: var(--firearms-primary);
    padding: 10px;
}

.firearmsafety-footer--row {
    display: flex;
    justify-content: space-around;
    padding: 10px;
}

.row-tile a,
.row-tile h4 {
    color: var(--white);
}

.row-tile h4 {
    padding-top: 0;
}


/********************COURSE PAGE********************/
/***************FIRESAFETY CATEGORY COURSE STYLING************/

#page-course-view-topics.category-15 .summary h2,
#page-course-view-topics.category-9 .summary h2,
#page-course-view-topics.category-15 .activity.modtype_label.label h2,
#page-course-view-topics.category-9 .activity.modtype_label.label h2 {
    font-size: 45px !important;
    line-height: 1.7;
}

#page-course-view-topics.category-15 .summary h3,
#page-course-view-topics.category-15 .activity.modtype_label.label h3,
#page-course-view-topics.category-9 .summary h3,
#page-course-view-topics.category-9 .activity.modtype_label.label h3 {
    font-size: 35px !important;
    line-height: 1.7;
}

#page-course-view-topics.category-15 .summary h4,
#page-course-view-topics.category-15 .activity.modtype_label.label h4,
#page-course-view-topics.category-9 .summary h4,
#page-course-view-topics.category-9 .activity.modtype_label.label h4 {
    font-size: 28px !important;
    line-height: 1.7;
    font-weight: 700;
}

#page-course-view-topics.category-15 .summary h1,
#page-course-view-topics.category-15 .summary h2,
#page-course-view-topics.category-15 .summary h3,
#page-course-view-topics.category-15 .summary h4,
#page-course-view-topics.category-15 .summary h5,
#page-course-view-topics.category-15 .summary a,
#page-course-view-topics.category-15 h1,
#page-course-view-topics.category-15 .activity.modtype_label.label h2,
#page-course-view-topics.category-15 .activity.modtype_label.label h3,
#page-course-view-topics.category-15 .activity.modtype_label.label h4,
#page-course-view-topics.category-15 .activity.modtype_label.label h5,
#page-course-view-topics.category-15 .activity.modtype_label.label a,
#page-course-view-topics.category-15 h3.sectionname,
#page-course-view-topics.category-15 .block .block-header h2,
#page-course-view-topics.category-9 .summary h1,
#page-course-view-topics.category-9 .summary h2,
#page-course-view-topics.category-9 .summary h3,
#page-course-view-topics.category-9 .summary h4,
#page-course-view-topics.category-9 .summary h5,
#page-course-view-topics.category-9 .summary a,
#page-course-view-topics.category-9 h1,
#page-course-view-topics.category-9 .activity.modtype_label.label h2,
#page-course-view-topics.category-9 .activity.modtype_label.label h3,
#page-course-view-topics.category-9 .activity.modtype_label.label h4,
#page-course-view-topics.category-9 .activity.modtype_label.label h5,
#page-course-view-topics.category-9 .activity.modtype_label.label a,
#page-course-view-topics.category-9 h3.sectionname,
#page-course-view-topics.category-9 .block .block-header h2 {
    color: var(--firearms-primary);
}

#page-course-view-topics.category-15 .activityinstance a,
#page-course-view-topics.category-9 .activityinstance a {
    color: var(--firearms-primary);
}

/* REVIEW FIX 3: Category block headings override the global important blue.
   Exclude firearms navigation blocks so their headings remain --firearms-dark. */
#page-course-view-topics.category-15 .block:not(.firearmsafety-nav) .block-header h2,
#page-course-view-topics.category-9 .block:not(.firearmsafety-nav) .block-header h2 {
    color: var(--firearms-primary) !important;
}

/* REVIEW FIX 4: Removed the two :has(.accesshide) hidden-activity overrides.
   Accessibility-only text does not reliably identify a hidden activity.
   Leave hidden-activity presentation to Totara's default theme rules until
   the actual hidden-state markup has been verified in the development site. */

/* for use in featured link block manual id */
@media (max-width: 530px) {
  #desktop-only-image {
    display: none;
  }
}

/*Hide HTML blocks with class 'hide-on-mobile' on small screens */
@media (max-width: 530px) {
  .block.block_html.hide-on-mobile {
    display: none;
  }
}

/* When editing is ON, always show blocks so they can be configured/moved */
.editing .block.show-on-mobile,
.editing .block.show-on-desktop,
.editing .block.hide-on-mobile,
.editing .block.hide-on-desktop {
  display: block !important;
}


/* MOBILE (≤ 530px): show mobile version, hide desktop version */
@media (max-width: 530px) {
  .block.show-on-mobile { display: block !important; }
  .block.show-on-desktop { display: none !important; }
  .block.hide-on-mobile { display: none !important; }
}

/* DESKTOP (≥ 531px): show desktop version, hide mobile version */
@media (min-width: 531px) {
  .block.show-on-desktop { display: block !important; }
  .block.show-on-mobile { display: none !important; }
  .block.hide-on-desktop { display: none !important; }
}

/* BOOK ACTIVITY - Compact True/False activity */
#memory-true-false-compact .tf-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 100px;
    align-items: center;
    gap: 10px;
}

#memory-true-false-compact .tf-row > p {
    min-width: 0;
}

#memory-true-false-compact details {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

#memory-true-false-compact summary {
    display: block;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
}

#memory-true-false-compact summary::-webkit-details-marker {
    display: none;
}

#memory-true-false-compact summary::marker {
    content: "";
}

/* Correct selection */
#memory-true-false-compact details.correct[open] {
    border-color: #287a4b !important;
}

#memory-true-false-compact details.correct[open] summary {
    background-color: #287a4b !important;
    color: #ffffff !important;
}

#memory-true-false-compact details.correct[open] summary::after {
    content: " ✓";
    margin-left: 5px;
    font-size: 18px;
    font-weight: bold;
}

/* Incorrect selection */
#memory-true-false-compact details.incorrect[open] {
    border-color: #b4514b !important;
}

#memory-true-false-compact details.incorrect[open] summary {
    background-color: #b4514b !important;
    color: #ffffff !important;
}

#memory-true-false-compact details.incorrect[open] summary::after {
    content: " ✕";
    margin-left: 5px;
    font-size: 18px;
    font-weight: bold;
}

/* Keep the activity usable on smaller screens */
@media (max-width: 600px) {
    #memory-true-false-compact .tf-row {
        grid-template-columns: minmax(0, 1fr) 82px 82px;
        gap: 8px;
    }

    #memory-true-false-compact .tf-row > p {
        font-size: 14px !important;
    }

    #memory-true-false-compact summary {
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 14px;
    }
}

/* Position and space activity descriptions */
.course-content .activity .contentafterlink {
    margin-top: -6px !important;
    padding-top: 0 !important;
    padding-bottom: 14px !important;
}

/* Remove paragraph margins that may interfere with the spacing */
.course-content .activity .contentafterlink p:first-child {
    margin-top: 0 !important;
}

.course-content .activity .contentafterlink p:last-child {
    margin-bottom: 0 !important;
}

/* =========================================================
   COURSE 1810 – ASSIGNMENT / SUBMISSION PORTAL BUTTONS
   Applies to Assignment activities in this course only
   ========================================================= */

/* Portal button */
body.course-1810 .course-content a[href*="/mod/assign/view.php?id="] {
    display: inline-flex;
    align-items: center;
    background-color: #d9f1fb !important;
    border: 1px solid #9ed8ee !important;
    border-radius: 8px;
    padding: 12px 20px;
    color: #00164b !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Activity title inside button */
body.course-1810 .course-content a[href*="/mod/assign/view.php?id="] .instancename {
    color: #00164b !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Hover */
body.course-1810 .course-content a[href*="/mod/assign/view.php?id="]:hover {
    background-color: #c4e9f7 !important;
    border-color: #72c6e5 !important;
    color: #00164b !important;
    text-decoration: none !important;
}

/* Keyboard focus */
body.course-1810 .course-content a[href*="/mod/assign/view.php?id="]:focus {
    background-color: #c4e9f7 !important;
    border-color: #72c6e5 !important;
    color: #00164b !important;
    outline: 3px solid #72c6e5;
    outline-offset: 2px;
}

/* =========================================================
   HOME DASHBOARD - RESPONSIVE COLUMN ORDER

   Desktop 992px+:
   Existing Totara layout unchanged

   Tablet 768px–991px:
   Left column:
     - The Learning Hub
     - My Learning Hubs
     - Leadership Development Framework
   Right column:
     - Featured Learning

   Phone up to 767px:
     - The Learning Hub
     - My Learning Hubs
     - Featured Learning
     - Leadership Development Framework
   ========================================================= */


/* ---------------------------------------------------------
   TABLET
   768px to 991px
   --------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 991px) {

    /* Convert dashboard columns to a two-column grid */
    .row:has(> #region-main #inst3768) {
        display: grid !important;
        grid-template-columns: 35fr 65fr !important;
        grid-template-areas:
            "left main"
            "right main" !important;
        column-gap: 20px !important;
        align-items: start !important;
    }

    /* Remove Bootstrap column positioning */
    .row:has(> #region-main #inst3768) > * {
        float: none !important;
        width: auto !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
    }

    /* Left column
       The Learning Hub + My Learning Hubs */
    .row:has(> #region-main #inst3768) > #region-main + * {
        grid-area: left !important;
    }

    /* Featured Learning - right column */
    .row:has(> #region-main #inst3768) > #region-main {
        grid-area: main !important;
    }

    /* Leadership Development Framework
       underneath My Learning Hubs */
    .row:has(> #region-main #inst3768) > #region-main + * + * {
        grid-area: right !important;
    }

}


/* ---------------------------------------------------------
   PHONE
   Up to 767px
   --------------------------------------------------------- */

@media (max-width: 767px) {

    /* Stack dashboard columns vertically */
    .row:has(> #region-main #inst3768) {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Make all dashboard columns full width */
    .row:has(> #region-main #inst3768) > * {
        float: none !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
    }

    /* Left column first
       The Learning Hub + My Learning Hubs */
    .row:has(> #region-main #inst3768) > #region-main + * {
        order: 1 !important;
    }

    /* Featured Learning second */
    .row:has(> #region-main #inst3768) > #region-main {
        order: 2 !important;
    }

    /* Leadership Development Framework third */
    .row:has(> #region-main #inst3768) > #region-main + * + * {
        order: 3 !important;
    }

}

/* =========================================================
   BOOK ACTIVITY - TOP CHAPTER NAVIGATION
   Position arrows alongside the chapter heading
   ========================================================= */

.path-mod-book .generalbox.book_content {
    position: relative;
}

/* Remove the navigation from the normal page flow */
.path-mod-book .generalbox.book_content .chaptertitle {
    position: absolute !important;
    top: 0;
    right: 0;
    width: auto !important;
    margin: 0 !important;
    z-index: 2;
}

/* Keep previous/next arrows together */
.path-mod-book .generalbox.book_content .chaptertitle .chapternav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
}

/* Leave room for the arrows beside the chapter heading */
.path-mod-book .generalbox.book_content .generated-content--user h3:first-of-type {
    padding-right: 90px;
}

/* Give arrows a comfortable click/tap area */
.path-mod-book .chaptertitle .chapternav > span,
.path-mod-book .chaptertitle .chapternav > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

/* On smaller screens keep navigation on its own row */
@media (max-width: 768px) {

    .path-mod-book .generalbox.book_content .chaptertitle {
        position: static !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-bottom: 8px !important;
    }

    .path-mod-book .generalbox.book_content .generated-content--user h3:first-of-type {
        padding-right: 0;
    }
}

/* =========================================================
   BOOK ACTIVITY - PAGE TITLE
   Hide Totara's duplicate Book activity title
   ========================================================= */

body#page-mod-book-view [role="main"] > h2:first-of-type {
    display: none !important;
}


/* =========================================================
   BOOK ACTIVITY - STANDARD CHAPTER TITLE
   Chapter title left, navigation arrows right
   ========================================================= */

body#page-mod-book-view .book_content > .chaptertitle {
    display: flex !important;
    position: static !important;
    float: none !important;
    clear: both !important;

    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

body#page-mod-book-view .book_content > .chaptertitle > h3 {
    position: static !important;
    float: none !important;

    flex: 1 1 auto !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;
}

body#page-mod-book-view .book_content > .chaptertitle > .chapternav {
    position: static !important;
    float: none !important;

    flex: 0 0 auto !important;

    margin: 0 0 0 20px !important;
}


/* =========================================================
   BOOK ACTIVITY - STANDARD CHAPTER CONTENT
   Keep content below normal chapter heading
   ========================================================= */

body#page-mod-book-view .book_content > .generated-content-user {
    position: relative !important;
    clear: both !important;
    display: block !important;
}


/* =========================================================
   BOOK ACTIVITY - CUSTOM CHAPTER PAGES
   Position Totara navigation alongside custom heading
   ========================================================= */

body#page-mod-book-view
.book_content:has(.fi-custom-book-page) {
    position: relative !important;
}

body#page-mod-book-view
.book_content:has(.fi-custom-book-page)
> .chaptertitle {
    position: absolute !important;
    top: 8px !important;
    right: 0 !important;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 5 !important;
}

body#page-mod-book-view
.book_content:has(.fi-custom-book-page)
> .chaptertitle > h3 {
    display: none !important;
}

body#page-mod-book-view
.book_content:has(.fi-custom-book-page)
> .chaptertitle > .chapternav {
    position: static !important;
    float: none !important;
    margin: 0 !important;
}


/* =========================================================
   BOOK ACTIVITY - CUSTOM HEADING SPACE
   Prevent long custom titles colliding with navigation
   ========================================================= */

body#page-mod-book-view
.book_content:has(.fi-custom-book-page)
.fi-custom-book-page > div:first-child {
    padding-right: 85px !important;
}


/* =========================================================
   BOOK ACTIVITY - CUSTOM PAGE SPACING
   Remove additional top spacing on styled Book pages
   ========================================================= */

body#page-mod-book-view
[role="main"]:has(.book_content .fi-custom-book-page)
> .book_content {
    margin-top: 0 !important;
}


/* =========================================================
   FORENSIC IMAGING - PAGE RESOURCES
   Hide Totara's default Page title
   ========================================================= */

body#page-mod-page-view.course-497 .page-heading {
    display: none !important;
}

body#page-mod-page-view.course-81 .page-heading {
    display: none !important;
}


/* =========================================================
   LEARNING HUB - GENERIC RESOURCE LINK BUTTON
   Reusable across courses and page designs
   ========================================================= */

.learning-resource-btn {
    display: inline-block;
    color: #00164b !important;
    background-color: #ffffff;
    border: 2px solid #00a9e0;
    border-radius: 6px;
    padding: 7px 12px;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Hover and keyboard focus */
.learning-resource-btn:hover,
.learning-resource-btn:focus {
    background-color: #00164b;
    border-color: #00164b;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Keyboard accessibility */
.learning-resource-btn:focus-visible {
    outline: 3px solid #00a9e0;
    outline-offset: 3px;
}

/* Reusable banner blocks: remove internal spacing */
.block_html.banner-block-no-spacing {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.block_html.banner-block-no-spacing .content,
.block_html.banner-block-no-spacing .generated-content,
.block_html.banner-block-no-spacing .generated-content--user,
.block_html.banner-block-no-spacing .no-overflow {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.block_html.banner-block-no-spacing p {
  margin: 0 !important;
  padding: 0 !important;
}

.block_html.banner-block-no-spacing p > br {
  display: none;
}

.block_html.banner-block-no-spacing img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Banner blocks: no internal spacing, 20px external spacing */
.block_html.banner-block-no-spacing {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* All Featured Links blocks: heading spacing */
.block_totara_featured_links .header.block-header {
  padding-top: 0px;     /* Space above the heading */
  padding-bottom: 0px;  /* Space below the heading */
  margin-top: 0;
  margin-bottom: 0;
}

/* Remove additional margins within the heading */
.block_totara_featured_links .header.block-header .title,
.block_totara_featured_links .header.block-header h2 {
  margin-top: 0;
  margin-bottom: 0;
}

/* Remove extra spacing above the tiles */
.block_totara_featured_links > .content.block-content {
  padding-top: 0;
  margin-top: 0;
}

