/*
Theme Name: UKG Brand Portal with GOV.UK Front End
Theme URI: 
Author: Alastair Mogford
Author URI: 
Description: 
Version: 2.0
License: 
License URI: 
Tags: 
Text Domain: ukg_theme
*/

*, 
*::before,
*::after {
    box-sizing: border-box;
}

/* Use the :root section below to set variables for repeated use through the rest of the CSS */
:root{
    --colour-grey: #595959;
    --colour-grey-light: #CCCCCC;
    --colour-blue: #0f62fe;

    --header-height: 4em;

    --wp-adminbar-height: auto;
    --ukg-header-height: auto;
    --govuk-footer-height: auto;

    --nav-border-width: 4px;
    --rounded-corner: 1rem;
}

html{
    font-size: 16px;
    font-family: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}


body{
    margin: 0;
    color: var(--govuk-text-colour);
}


main {
    min-height: calc( 100vh - var(--ukg-header-height) - var(--wp-adminbar-height) - var(--govuk-footer-height) - 2px );
    min-height: calc( 100dvh - var(--ukg-header-height) - var(--wp-adminbar-height) - var(--govuk-footer-height) - 2px );
}


/* ----------------- JAVASCRIPT DISABLE FIXES ----------------- */


.js-enabled-container { 
    display: none;
}
.js-enabled .js-enabled-container { 
    display: block;
}

.js-disabled-container { 
    display: block;
}
.js-enabled .js-disabled-container { 
    display: none;
}




.javascript_enabled {
    display: none; 
    /* Hide the element by default, it appears after JS enabled */
    /* Use this on sections that won't function correctly without JS */
}


/* ----------------- TYPOGRAPHY ----------------- */


.ukg-color-white{
    color: white !important;
}

.ukg-line-height{
    line-height: 1.4;
}



/* ----------------- HEADINGS ----------------- */


h1, h2, h3, h4, h5, h6{
    scroll-margin-top: 3rem;
}

.govuk-heading-xl,
.govuk-heading-l,
.govuk-heading-m,
.govuk-heading-s{
    font-family: "HelveticaNeueW01-75Bold", Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.15;
}


.govuk-caption-xl,
.govuk-caption-l,
.govuk-caption-m,
.govuk-caption-s{
    font-family: "HelveticaNeueW01-45Ligh", Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.15;
  
}


h1{
    font-size: 3rem;
    margin-block: 3rem;
}
h2{
    font-size: 2.25rem;
    margin-block: 2.25rem;
}
h3{
    font-size: 1.8rem;
    margin-block: 1.8rem;
}
h4{
    font-size: 1.5rem;
    margin-block: 1.5rem;
}
h5{
    font-size: 1.33rem;
    margin-block: 1.5rem;
}
h6{
    font-size: 1.2rem;
    margin-block: 1.5rem;
}

p, ul, ol{
    line-height: 1.5;
}






/* ----------------- LINKS AND FOCUS ----------------- */


a{
    color: var(--govuk-link-colour);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: underline;
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: 0.1578em;
}

a:hover {
    text-decoration-thickness: max(3px, .1875rem, .12em);
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
    text-decoration-skip: none;
}

a:focus {
    outline: 3px solid transparent;
    color: var(--govuk-text-colour);
    background-color: var(--govuk-focus-colour);
    box-shadow: 0 -2px var(--govuk-focus-colour), 0 4px var(--govuk-text-colour);
    text-decoration: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}


/* ----------------- SITEWIDE ----------------- */




.wrapper{
    max-width: 64rem;
    margin-inline: auto;
    padding: 1rem;
}

img{
    max-width: 100%;
}


/* ----------------- BODY PARAGRAPHS ----------------- */


/* taking all <p> and adding same padding and font size as govuk-body */
p {
    color: #0b0c0c;
    /* font-family: "GDS Transport", arial, sans-serif; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 15px;
  }
  @media print {
    p {
      color: #000000;
    }
  }
  @media print {
    p {
      font-family: sans-serif;
    }
  }
  @media (min-width: 40.0625em) {
    p {
      font-size: 1.1875rem;
      line-height: 1.3157894737;
    }
  }
  @media print {
    p {
      font-size: 14pt;
      line-height: 1.15;
    }
  }
  @media (min-width: 40.0625em) {
    p {
      margin-bottom: 20px;
    }
  }



/* ----------------- FOOTER ----------------- */



/* using .govuk-footer__link but swapping to wordpress supported menu class */

.ukg-footer-nav a {
    /* font-family: "GDS Transport", arial, sans-serif; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: underline;
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: 0.1578em;
  }
  @media print {
    .ukg-footer-nav a {
      font-family: sans-serif;
    }
  }
  .ukg-footer-nav a:hover {
    text-decoration-thickness: max(3px, .1875rem, .12em);
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
    text-decoration-skip: none;
  }
  .ukg-footer-nav a:focus {
    outline: 3px solid transparent;
    color: #0b0c0c;
    background-color: #ffdd00;
    box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
    text-decoration: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .ukg-footer-nav a:link, .ukg-footer-nav a:visited {
    color: #0b0c0c;
  }
  @media print {
    .ukg-footer-nav a:link, .ukg-footer-nav a:visited {
      color: #000000;
    }
  }
  .ukg-footer-nav a:hover {
    color: rgba(11, 12, 12, 0.99);
  }
  .ukg-footer-nav a:active, .ukg-footer-nav a:focus {
    color: #0b0c0c;
  }
  @media print {
    .ukg-footer-nav a:active, .ukg-footer-nav a:focus {
      color: #000000;
    }
  }


  /* .govuk-footer__inline-list-item to .ukg-footer-nav li */
.ukg-footer-nav li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
  }
  



/* ----------------- HEADER ----------------- */




.ukg-header{
    border-bottom: 1px solid var(--govuk-border-colour);
    background-color: white;
}


.ukg-header-upper{
    padding-block: 1rem;
}

.ukg-header-upper > .govuk-width-container{
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

a.navbar-brand:focus {
    background-color: transparent;
    box-shadow: 0 0 0px 3px black, 0 0 0px 6px var(--govuk-focus-colour);
    /* outline: 3px solid var(--govuk-focus-colour);
    outline-offset: 4px; */
}

.ukg-logo{
    height: 2.2rem;
    width: auto;
    display: block;
    padding-left: 0.5rem;
    padding-right: 1rem;
}



.visible{
    display: block;
}

.ukg-header-lower > .govuk-width-container{
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.ukg-menu-toggle{
    background-color: var(--colour-blue);
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    color: white;
    cursor: pointer;
    border: 3px solid transparent;
}

.ukg-menu-toggle::before{
    content: '';
    width: 1em; height: 1em;
    background-image: url('images/icons/dropdown_white.svg');
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: center;
    /* transition: 100ms; */
}

.ukg-menu-toggle[aria-expanded=false]::before{
    rotate: 270deg;
}
.ukg-menu-toggle[aria-expanded=true]::before{
    rotate: 90deg;
}

.ukg-menu-toggle:hover{
    background-color: var(--govuk-link-hover-colour);
}

.ukg-menu-toggle:focus{
    outline: 3px solid var(--govuk-focus-colour);
    border-color: var(--govuk-text-colour);
}


/* Desktop */
@media (min-width: 781px) {
    .menu-toggle{
        display: none;
    }
}

/* Tablet/mobile */
@media (max-width: 780px) {
    .search-box{
        display: none;
    }

}





/* ------------- NAVIGATION ------------- */


/* Top Level */

ul.ukg-nav{
    list-style: none;
    display: flex;
    margin: 0; padding: 0;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

ul.ukg-nav > li{
    margin: 0; padding: 0;
    position: relative;
}

ul.ukg-nav > li > a{
    color: var(--govuk-link-colour);
    text-decoration: none;
    font-weight: 500;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding-inline: 0.5rem;
    position: relative;
}

ul.ukg-nav > li > a:focus{
    background-color: transparent;
    box-shadow: 0 0 0px 3px black, 0 0 0px 6px var(--govuk-focus-colour);
    text-decoration: underline;

}

@media (max-width: 860px) {
    :root{
        --header-height: 3em;
    }
    ul.ukg-nav{
        gap: 0.5rem;
    }
}

@media (max-width: 780px) {
    .ukg-header-lower{
        display: none;
    }
}



ul.ukg-nav > li > a:hover{
    color: var(--colour-blue);
}

ul.ukg-nav > li > a:hover::before, 
ul.ukg-nav > li.current-menu-item > a::before,
ul.ukg-nav > li.current-page-ancestor > a::before{
    content: '';
    width: 100%;
    height: var(--nav-border-width);
    display: block;
    background-color: var(--colour-blue);
    position: absolute;
    bottom: 0;
    left: 0;

}



 ul.ukg-nav .sub-menu {
    display: none;
 }



/* ------------- MOBILE MENU --------------- */


.ukg-header-lower-mobile{
    display: none;

}

/* Reset default styles */
.ukg-mobile-nav,
.ukg-mobile-nav ul,
.ukg-mobile-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ukg-mobile-nav > li {
  display: block;
  border-bottom: 1px solid var(--govuk-border-colour); 
  position: relative;
}

.ukg-mobile-nav > li > a {
  display: block;
  padding: 0.5em;
  color: var(--colour-grey);
  text-decoration: none;
  font-weight: 500;
}

.ukg-mobile-nav .sub-menu{
    display: none;
}



/* ------------- HEADER SEARCH BAR --------------- */


.search-box > .search-form{
    display: flex;
    align-items: center;
}



.ukg-search-button {
    background-color: var(--colour-blue);
    color: white; /* for accessibility */
    box-shadow: none;
    border-style: solid;
    border-width: 2px;
    border-color: var(--govuk-text-colour);
    border-left-width: 0;
    text-indent: -9999px; /* Move the text outside the visible area */
    width: 40px;
    height: 40px;
    background-image: url('images/icons/search.svg');
    background-size: 2em;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}


.ukg-search-button:hover {
    background-color: var(--govuk-link-hover-colour);
    border-color: var(--govuk-link-hover-colour);
}
.ukg-search-button:focus{
    outline: 3px solid var(--govuk-focus-colour);
    box-shadow: inset 1px 0 0 3px;
}

.ukg-search-button:active{
    background-color: var(--govuk-focus-colour);
}



/* --------------- PROFILE NAV --------------- */

.profile-dropdown{
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
}

.profile-dropdown > a{
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: 0.4rem;
}

.profile-dropdown > a[aria-expanded=true]{
    background-color: #f3f2f1;
}

.profile-dropdown > a:focus{
    background-color: transparent;
    box-shadow: 0 0 0px 3px black, 0 0 0px 6px var(--govuk-focus-colour);
}

.profile-icon{
    width: 2em; height: 2em;
    background-color: var(--colour-grey);
    --_profile-mask-image: url('images/icons/person.svg');
    mask-image: var(--_profile-mask-image);
    -webkit-mask-image: var(--_profile-mask-image);
    mask-size: 1.75em;
    -webkit-mask-size: 1.75em;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.profile-dropdown > a:hover > .profile-icon{
    background-color: var(--colour-blue);
}

.profile-dropdown > a::after{
    content: '';
    width: 1em; height: 1em;
    background-color: var(--colour-blue);
    --_drop-mask-image: url('images/icons/dropdown.svg');
    mask-image: var(--_drop-mask-image);
    -webkit-mask-image: var(--_drop-mask-image);
    mask-size: 1em;
    -webkit-mask-size: 1em;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    rotate: 270deg;
}


.profile-dropdown > a[aria-expanded=true]::after{
    rotate: 90deg;
}



.profile-dropdown .govuk-visually-hidden{
    color: black;
    background-color: white;
    /* acessibility */
}





.ukg-header-lower-profile-row{
    display: none;
}


ul.ukg-profile-nav {
    padding: 1rem 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
ul.ukg-profile-nav li{
    padding: 0;
}



/* ------------------ HERO ---------------- */



.ukg-hero{
    background-color: var(--colour-blue);
    color: white;
}

.ukg-hero-leading-text p{
    line-height: 1.25;
}


.ukg-hero-leading-text > p:last-child{
    margin-bottom: 0 !important;
}






/* ---------------------- HOMEPAGE  ---------------------- */



.ukg-sticky-news-featured-image img{
    max-width: 100%;
    height: auto
}




/* ---------------------- CHAPTERS  ---------------------- */



.ukg-chapter-block-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 780px) {
    .ukg-chapter-block-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 640px) {
    .ukg-chapter-block-grid{
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

a.ukg-chapter-block-link{
    display: block;
    text-decoration: none;
    color: inherit;
}

a.ukg-chapter-block-link:focus{
    background-color: transparent;
}




a.ukg-chapter-block-link:hover > .ukg-chapter-block,
a.ukg-chapter-block-link:hover > .ukg-chapter-wide-block,
a.ukg-chapter-block-link:hover > .ukg-dept-block{
    outline: 3px solid var(--colour-blue);
    outline-offset: -1px;
}

a.ukg-chapter-block-link:focus{
    box-shadow: none;
}

a.ukg-chapter-block-link:focus > .ukg-chapter-block,
a.ukg-chapter-block-link:focus > .ukg-chapter-wide-block,
a.ukg-chapter-block-link:focus > .ukg-dept-block{
    background-color: transparent;
    box-shadow: 0 0 0px 3px black, 0 0 0px 6px var(--govuk-focus-colour);
}



a.ukg-chapter-block-link:focus .ukg-chapter-name,
a.ukg-chapter-block-link:focus .ukg-chapter-name-no-icon{
    /* color: var(--govuk-link-hover-colour); */

    outline: 3px solid transparent;
    color: #0b0c0c;
    background-color: #ffdd00;
    box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
    text-decoration: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  
}


.ukg-chapter-block{
    display: grid;
    grid-template-rows: 10rem auto;
    border: 1px solid var(--govuk-border-colour);
    border-radius: var(--rounded-corner);
    height: 100%;
}

.ukg-chapter-block-icon{
    border-top-left-radius: var(--rounded-corner);
    border-top-right-radius: var(--rounded-corner);
    overflow: hidden;
}

.ukg-chapter-block-base, 
.ukg-chapter-block-base-name-only{
    border-top: 1px solid var(--govuk-border-colour);
    border-bottom-left-radius: var(--rounded-corner);
    border-bottom-right-radius: var(--rounded-corner);
    padding: 1rem;
}

.ukg-chapter-block-base-name-only{
    display: flex;
    align-items: flex-start;
}

.ukg-chapter-name{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    font-weight: 500;
    color: var(--colour-blue);
    font-size: 1.5rem;
}


@media (max-width: 640px) {
    .ukg-chapter-name{
        font-size: 1rem;
    }
}

.ukg-chapter-name::after{
    content: '';
    width: 1em; height: 1em;
    background-color: var(--colour-blue);
    --_drop-mask-image: url('images/icons/dropdown.svg');
    mask-image: var(--_drop-mask-image);
    -webkit-mask-image: var(--_drop-mask-image);
    mask-size: 1em;
    -webkit-mask-size: 1em;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    rotate: 180deg;
    margin-top: 0.12em;
}

.ukg-chapter-desc{
    display: block;
    padding-top: 1rem;
}


/* ---------------------- CHAPTERS WIDE  ---------------------- */

.ukg-chapter-wide-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.ukg-chapter-wide-block{
    display: grid;
    grid-template-columns: 16rem auto;
    border: 1px solid var(--govuk-border-colour);
    border-radius: var(--rounded-corner);
    height: 100%;
    min-height: 10rem;
}

@media (max-width: 640px) {
    .ukg-chapter-wide-block{
        grid-template-columns: 10rem auto;
    }
}

.ukg-chapter-block-icon{
    border-top-left-radius: var(--rounded-corner);
    border-bottom-left-radius: var(--rounded-corner);
}

.ukg-chapter-wide-text-column{
    border-left: 1px solid var(--govuk-border-colour);
    border-top-right-radius: var(--rounded-corner);
    border-bottom-right-radius: var(--rounded-corner);
    padding: 1rem;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

@media (max-width: 480px) {
    .ukg-chapter-wide-block{
        grid-template-columns: 1fr;
    }
    .ukg-chapter-block-icon{
        border-radius: 0;
        border-top-left-radius: var(--rounded-corner);
        border-top-right-radius: var(--rounded-corner);
    }
    .ukg-chapter-wide-text-column{
        border-top: 1px solid var(--govuk-border-colour);
        border-left-width: 0;
        border-radius: 0;
        border-bottom-left-radius: var(--rounded-corner);
        border-bottom-right-radius: var(--rounded-corner);
    }
    
}


.ukg-chapter-name-no-icon{
    font-weight: 500;
    color: var(--colour-blue);
    font-size: 1.25em;
}

@media (max-width: 640px) {
    .ukg-chapter-name-no-icon{
        font-size: 1rem;
    }
    
}

.ukg-chapter-wide-block .ukg-chapter-name-no-icon{
    font-size: 1.75em;
}

.ukg-chapter-wide-icon-arrow-right{
    font-size: 1.4rem;

    width: 1em; height: 1em;
    background-color: var(--colour-blue);
    --_drop-mask-image: url('images/icons/dropdown.svg');
    mask-image: var(--_drop-mask-image);
    -webkit-mask-image: var(--_drop-mask-image);
    mask-size: 1em;
    -webkit-mask-size: 1em;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    rotate: 180deg;
}


/* ----------------- CHAPTER THUMBNAILS ---------------------  */

.ukg-chapter-block-thumb,
.ukg-chapter-wide-thumb{
    padding: 1.5rem;
    display: flex;
    flex-direction: column; /* bug fix for safari */
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

}

.ukg-chapter-block-thumb img,
.ukg-chapter-wide-thumb img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    align-items: center; /* bug fix for safari */
}

.ukg-chapter-block-thumb{
    border-top-left-radius: calc(var(--rounded-corner) - 1px);
    border-top-right-radius: calc(var(--rounded-corner) - 1px);
}





/* ----------------- SMALL DEPT CHAPTERS ---------------------  */

.ukg-dept-block{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--govuk-border-colour);
    border-radius: 1rem;
    height: 100%;
    padding: 1rem;
    /* background-color: hsl(0, 0%, 94%); */
}


/* ----------------- ASSETS AND ARTWORK PAGE ---------------------  */



.ukg-assets-results-count-pager{
    margin-bottom: 2rem;
}


/* ----------------- ASSETS AND ARTWORK RESULTS ---------------------  */


.ukg-assets-results-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 780px) {
    .ukg-assets-results-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 480px) {
    .ukg-assets-results-grid{
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

a.ukg-asset-result-link{
    text-decoration: none;
    color: inherit;
    border-radius: calc(var(--rounded-corner)/2);
}


.ukg-asset-result-block{
    border: 1px solid var(--govuk-border-colour);
    border-radius: calc(var(--rounded-corner)/2);
    height: 100%;
    overflow: hidden;
}


.ukg-asset-result-lower{
    padding: 0.75rem;
    border-top: 1px solid var(--govuk-border-colour);
    background-color: #d0e2ff;
    /* display: grid; */
    height: inherit;
}
.ukg-asset-result-meta-name{
    font-weight: 500;
    /* grid-column: 1/3; */
}

.ukg-asset-result-meta{
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: top;
    color: var(--colour-grey);
    font-size: 0.88rem;

}

a.ukg-asset-result-link:hover > .ukg-asset-result-block{
    outline: 3px solid var(--colour-blue);
    outline-offset: -1px;
}


a.ukg-asset-result-link:focus{
    background: transparent;
    box-shadow: none;
}
a.ukg-asset-result-link:focus > .ukg-asset-result-block{
    box-shadow: 0 0 0px 3px black, 0 0 0px 6px var(--govuk-focus-colour);
}



a.ukg-asset-result-link:focus .ukg-asset-result-meta-name{
    outline: 3px solid transparent;
    color: #0b0c0c;
    background-color: #ffdd00;
    box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
    text-decoration: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

.ukg-asset-result-icon{
    width: 1em; height: 1em;
    margin-top: 0.25rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.ukg-asset-file-icon-zip{    
    background-image: url('images/icons/file_zip.svg');
}

.ukg-asset-result-preview{
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5rem;
}
.ukg-asset-preview-image{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}



/* ----------------- FILES ---------------------  */


.ukg-file-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ukg-file-container > .ukg-asset-result-icon{
    width: 3em; height: 3em;
}

.ukg-file-information{
    display: grid;
    gap: 0.25em;
}




/* ----------------- ASSET PAGE ---------------------  */


.ukg-break-word{
    word-break: break-all;
}




/* ----------------- VERTICAL SIDEBAR NAV ---------------------  */


.govuk-grid-column-one-third:has(.ukg-section-navigation){
    position: sticky;
    top: 2rem;
}

.ukg-vertical-sidebar-nav{
    list-style-type: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    margin-right: 1rem;
}

@media (max-width: 640px) {
    .ukg-vertical-sidebar-nav{
        display: none;
    }
    
}

.ukg-vertical-sidebar-nav > li > a{
    color: var(--colour-grey);
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    display: block;
    /* border: 1px solid red; */
    padding-block: 0.5rem;
    padding-left: calc(1rem + var(--nav-border-width));
}

.ukg-vertical-sidebar-nav > li.current{
    border-left: var(--nav-border-width) solid var(--colour-blue);

}

.ukg-vertical-sidebar-nav > li.current > a{
    color: var(--colour-blue);
    font-weight: 700;
    border-left: var(--nav-border-width) solid transparent;
    padding-left: 1rem;

}

.ukg-vertical-sidebar-nav > li:not(.current) > a{
    border-left: var(--nav-border-width) solid transparent;

}

.ukg-vertical-sidebar-nav > li:not(.current) > a:hover{
    color: var(--colour-blue);
    border-left-color: var(--colour-blue);
}

.ukg-vertical-sidebar-nav > li.current > #toc > ul.toc-list {
    padding-left: 1rem;
    padding-top: 0.5rem;
}




li.h2-heading, 
li.h3-heading{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block: 0.5rem
}

li.h3-heading{
    margin-left: 1.5rem;
}

li.h2-heading::before,
li.h3-heading::before{
    content: '';
    display: block;
    width: 1em; height: 1px;
    background-color: var(--govuk-border-colour);

}


li.current-heading > a{
    font-weight: 700;
    color: var(--colour-blue) !important;
    text-decoration: none;
    pointer-events: none;
}







/* ------------------------- LOGIN PAGE ------------------------- */


.ukg-login-page-bg{
    background-color: #0043ce;
    position: relative;
    background-image: url(images/brand/RCOA_NEW_BG_white_FULL_25.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.ukg-login-column-container{
    width: 50%;
    padding-inline: 1rem;
}

@media (max-width: 1020px) {
    .ukg-login-column-container{
        width: 463px;
    }
}
@media (max-width: 640px) {
    .ukg-login-column-container{
        width: 100%;
    }
}

@media (max-width: 640px) {
    .ukg-login-page-bg::after{
        display: none;
    }
}

.ukg-login-page-logo{
    margin-bottom: 4rem;
    display: flex;
}

.ukg-login-box{
    background-color: white;
    padding: 2rem;
    border-radius: var(--rounded-corner);
    margin-bottom: 4rem;
}

.ukg-login-page-bg > .govuk-width-container{
    z-index: 1;
    position: relative;
}


.ukg-logged-out-buttons-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
}



.ukg-edit-profile-form > input{
    margin-bottom: 2rem;
}



/* ------------------------- DEPARTMENT PAGES ------------------------- */


.ukg-dept-colours-container{
    display: flex;
    gap: 2rem;
    align-items: center;
}

.ukg-other-dept-seperator{
    width: 8rem;
    height: 6px;
    margin-top: 4rem;
}

.ukg-dept-colour-sample{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ukg-dept-colour-sample--dot{
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: block;
}






/* ------------------------- WORDPRESS CONTENT FORMATTING ------------------------- */


.editor-styles-wrapper{
    font-size: 19px;
}


.wp-block-embed-youtube{
    margin-block-start: 0;
    margin-block-end: 0;
    margin-block: 2rem;

}
.wp-block-embed__wrapper{
    float: none;
    clear: both;
    width: 100%;
    position: relative;
    padding-bottom: calc(56.25% - 25px);
    padding-top: 0;
    height: 0;

}
.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



code{
    background-color: hsl(0, 0%, 94%);
}

p > code{
    padding: 0.15em 0.25em;
    border-radius: 2px;
}


pre{
    background-color: hsl(0, 0%, 94%);
    padding: 0.5rem;
}


.ukg-table-caption{
    font-size: 1rem;
    margin-bottom: 2rem;
}



.ukg-group-container{
    border: 1px solid var(--govuk-border-colour);
    margin-block: 2em;
}

.ukg-group-container-main{
    padding: 1em;
    /* border-bottom: 1px solid var(--govuk-border-colour); */
}

.ukg-group-container-main p:first-of-type{
    margin-top: 0;
}
.ukg-group-container-main p:last-of-type{
    margin-bottom: 0;
}

.ukg-group-container-caption{
    padding: 1em;
}

.ukg-group-container-caption p{
    font-size: 1rem;
    margin-block: 0;
}




.ukg-image-container{
    border: 1px solid var(--govuk-border-colour);
    margin-block: 2em;
    display: grid;
    justify-items: center;
}


.ukg-image-container img{
    max-width: 100%;
    /* margin-inline: auto; */
    display: block;
    margin-block: 2em;
    padding-inline: 2em;
}

.ukg-image-container > .wp-element-caption{
    padding: 1em;
    /* border-top: 1px solid var(--govuk-border-colour); */
    margin: 0;
    width: 100%;
    text-align: left;
}













/* ----------------- SEARCH RESULTS ----------------- */



.ukg-search-results{
    display: grid;
    gap: 1rem;
}

a.ukg-search-result{
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--govuk-border-colour);
    border-radius: var(--rounded-corner);
    padding: 1.5rem;
}

a.ukg-search-result:hover{
    outline: 3px solid var(--colour-blue);
    outline-offset: -1px;
    /* box-shadow: 0 0 0.5rem rgb(0, 0, 0, 0.15);
    color: var(--govuk-link-hover-colour);
    border-color: transparent; */
}


a.ukg-search-result:focus{
    background: transparent;
    box-shadow: 0 0 0px 3px black, 0 0 0px 6px var(--govuk-focus-colour);
}


a.ukg-search-result:focus h3{
    outline: 3px solid transparent;
    color: #0b0c0c;
    background-color: #ffdd00;
    box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
    text-decoration: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;  
}





/* ----------------- MEMBER PRESS FRONT END FORM MODS ----------------- */


/* #mepr-account-nav{
    display: none;
} */

.mp_wrapper textarea, .mp_wrapper select, .mp_wrapper input[type=text], .mp_wrapper input[type=url], .mp_wrapper input[type=email], .mp_wrapper input[type=tel], .mp_wrapper input[type=number], .mp_wrapper input[type=password]{
    font-size: 19px !important;
    border: 2px solid #0b0c0c !important;
}

.mp_wrapper *:not(a):focus{
    outline-color: var(--govuk-focus-colour) !important;
    outline-style: solid !important;
    outline-width: 3px !important;
}

.mp_wrapper label, .mp_wrapper .mp-row{
    font-size: 19px;
}
@media (max-width: 480px) {
    .mp_wrapper label, .mp_wrapper .mp-row{
        font-size: 16px;
    }    
}

.mp_wrapper .mp-form-row{
    margin-bottom: 20px !important;
}

.mp-form-label{
    font-size: 19px;
    margin-bottom: 15px;
    display: inline-block !important;
}

@media (max-width: 480px) {
    .mp-form-label{
        font-size: 16px;
    }    
}




/* ----------------- FACETS STYLING ----------------- */


.ukg-facets .facetwp-checkbox{
    margin-bottom: 8px;
}

.facetwp-checkbox:focus{
    outline: none;
    box-shadow: 0 0 0px 3px black, 0 0 0px 6px var(--govuk-focus-colour);
}