  .paragraph .paa-left .title h2 a,
  .paragraph .blue-box .title h2 a {
      color: #fff
  }

  .paragraph .paa-left .title h2 a:hover,
  .paragraph .blue-box .title h2 a:hover {
      text-decoration: underline !important;
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .submissions-text .submissions-bg {
      background-position: 50%;
      background-repeat: no-repeat;
      background-size: cover;
      position: relative;
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      height: 150px;
      background-image: url(/sites/default/files/2021-11/hairdressing.jpg);
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .submissions-text .submissions-bg {
      background-position: 50%;
      background-repeat: no-repeat;
      background-size: cover;
      position: relative;
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      height: 150px;
      background-image: url(/sites/default/files/2021-11/hairdressing.jpg);
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .submissions-text a {
      text-decoration: none;
      color: #fff
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .submissions-text a:hover,
  .paragraph div#block-policyadvocacylanding .text-formatted .submissions-text a:focus {
      text-decoration: underline;
  }

  .paragraph .clearfix.text-formatted.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item {
      flex-direction: column;
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .paa-right {
      margin-left: 0;
  }
  .paragraph div#block-policyadvocacylanding .text-formatted .paa-left{
      margin-right: 0;
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .paa-left .report-image .reports-bg {
      background-position: 50% 30%;
      margin-bottom: 0;
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .paa-right .blue-box .thoughts-bg {
      background-position: 50% 25%;
  }

  .paragraph div#block-policyadvocacylanding .submissions-text,
  .paragraph div#block-policyadvocacylanding .policy_insights-container,
  .paragraph div#block-policyadvocacylanding .research-image,
  .paragraph div#block-policyadvocacylanding .reviews-image,
  .paragraph div#block-policyadvocacylanding .inquiries-image {
      background-color: #BFE5EA;
  }

  .paragraph div#block-policyadvocacylanding .submissions-text p,
  .paragraph div#block-policyadvocacylanding .research-image p,
  .paragraph div#block-policyadvocacylanding .reviews-image p,
  .paragraph div#block-policyadvocacylanding .inquiries-image p,
  .paragraph div#block-policyadvocacylanding .policy_insights-container p {
      padding: 20px
  }

  .paragraph div#block-policyadvocacylanding .text-formatted .paa-right .hide-on-onecol {
    display: block;
}



/* ================================================================= */
/* Misc fixes -- part 1 */

img{
    max-width:100%;
    height:auto;
}

.row .block-views-blockpage-header-block-1{
    padding-right: unset;
    padding-left: unset;
}

.view-id-submissions .view-content.row .views-row {
    padding-left:unset;
}


.view-display-id-block_3  .views-field.views-field-nothing{
    height: 100%;
    position: relative;

    .summary{
        min-height: 150px;
        .link.custom-link{
            position: absolute;
            bottom: 10px;
            left:10px;
        }
        @media (min-width: 1200px) {
            min-height: 110px;
        }
    }
}





/* ================================================================= */
/* Misc fixes -- part 2 */


#block-infoline {
    .search-block-form .form-search[type="search"]{
        background-color: white;
        border: 2px solid #091933;
        padding-block: 5px;
        font-size: 0.8rem;
    }
    .icon.icon-search::before{
        font-size: 0.8em;
        position: absolute;
        top: 7px;
        right: 15px;

    }
}

.media-bg .region-media .block-views .view-display-id-block_1 .image, .media-bg .region-media .block-views .view-display-id-block_2 .image{
    img{
        width: 100%;
        height: auto;
    }
}
.view-success-stories.view-display-id-block_6 .image, .view-id-taxonomy_term .image, .view-media-items .image{
    img{
        width: 100%;
        height: auto;
    }
}
.btn-close {
    background-color: #50C3C8;
}


/* ================================================================= */

/* TB Mega Menu Related Styling */
div.mega_menu:has(div.tb-megamenu){
    position: relative;
    a{
        text-decoration: none;;
    }

    #block-asbfeo-mainnavigation{
        &.contextual-region{
            position: unset;
        }
        div.tb-megamenu {
            position: unset;
            &> div.nav-collapse{
                background: white;
                &> ul.tb-megamenu-nav.level-0{
                    justify-content: space-between;
                    &> li.tb-megamenu-item{
                        &:not(:last-child, :first-child){
                            flex-grow: 1;
                        }
                        &.dropdown{
                            position: unset;
                        }
                        & a.dropdown-toggle{
                            background: white; color: #091933; font-size: 1.1rem; text-align: center;
                            border-right: 0px solid transparent;
                            padding-inline: 10px;
                            padding-block: 25px;
                            &::after{
                                display: none;
                            }
                            &:hover, &:focus, &:focus-within, &:active{
                                background: #EBECEB; color: #091933;
                                text-decoration: underline;
                            }
                        }
                        &> div.tb-megamenu-submenu.dropdown-menu.mega-dropdown-menu{

                            /* Container STATR ===================================*/
                            & > .mega-dropdown-inner{
                                @media (min-width: 992px)  { max-width: 960px;  }
                                @media (min-width: 1200px) { max-width: 1140px; }
                                @media (min-width: 1400px) { max-width: 1320px; }
                                padding-right: 15px;
                                padding-left: 15px;
                                margin-right: auto;
                                margin-left: auto;
                            }
                            /* Container END ===================================*/


                            position: absolute; left: 0px;
                            width: 100vw;
                            border-bottom: 10px solid #11AFB6;
                            background: white;
                            ul.tb-megamenu-subnav.level-1 > li > a{
                                background: white; color: #091933;
                                font-weight: bold;
                                text-align: left;
                                padding: 10px;
                                &:hover, &:focus, &:focus-within, &:active{
                                    background: #EBECEB; color: #091933;
                                    text-decoration: underline;
                                }
                            }
                            .block-content-basic{
                                margin-top: 10px;
                                h2{
                                    font-size: 1.5rem;
                                }
                            }

                        }
                    }
                }
            }
        }
    }
}

/* TB Mega Menu Related Styling -- Mobile */
@media (max-width: 979px){
    .nav-collapse.collapse {
        position: absolute;
        display: block;
        &[style="height: auto; overflow: visible;"]{
            border: 3px solid #1A3264 !important;
        }
    }
    div.mega_menu:has(div.tb-megamenu){
        #block-asbfeo-mainnavigation{
            div.tb-megamenu {
                .tb-megamenu-block{
                    display: none;
                }
                position: relative;
                &> button.btn.btn-navbar.tb-megamenu-button{
                    background: #091933; color: white; width: 50px;
                    position: absolute; z-index: 1000;
                    @media  (min-width: 768px) {
                        width: 40px;
                        top: -65px; left: calc(50% - 50px);
                    }
                    @media  (max-width: 767px) {
                        top: -130px; right: 30px;
                    }
                    @media (max-width: 575px) {
                        right: 20px; top: -240px;
                    }
                }
                &> div.nav-collapse{
                    position: absolute;
                    top: 0; left: 0; width: 100%;
                    margin-top: 0px;
                    &> ul.tb-megamenu-nav{
                        flex-direction: column;
                        &> li.tb-megamenu-item{
                            &.dropdown.open{
                                & > a.dropdown-toggle{
                                    background: #091933;; color: white;
                                }
                            }
                            &> div.tb-megamenu-submenu.dropdown-menu.mega-dropdown-menu{
                                border-top:    2px solid #091933 !important;
                                border-left: 2px solid #091933 !important;
                                border-right: 2px solid #091933 !important;
                                border-bottom: 2px solid #091933 !important;
                                position: unset !important;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* ================================================================= */

/* Block Site Wide Notification */
#header{
    nav.navbar{
        padding-block: 0px;
        div.block-content-block_banner.block.block-block-content{
            background-color: #1A3264; color: white;
            position: relative;
            overflow: hidden;
            padding-right: 0px;
            .banner-container{
                width: 100vw;
                padding-block: 10px;
            }
            .banner-remove-icon{
                background: none;
                color: white;
                position: absolute;
                top: 10px;
                right: 50px;
                box-shadow: none;
                border: none;
                font-size: 20px;
            }
        }
    }
}

/* ================================================================= */

/* Paragraph Graph label */
.paragraph--type--graphs{
    margin: 2em 0;
    .field--name-field-existing-data{
        .field--name-label{
            font-weight: bold;
            margin-block: 10px;
            display: none;
        }
    }
    .charts-figure-caption{
        font-style: italic;
        font-size: .75em;
        margin: 1em 0;
    }
    .bb-title {
        tspan {
            &:first-child {
                font-size: 1.25rem;
                font-weight: bold;
            }
            &:last-child {
                font-size: 0.75rem;
                fill:#989898;            
            }
        }
    }
    .data-download-btn {
        border-radius: 20px;
        border: 1px solid #1A3264;
        background: #1A3264;
        color: #fff;
        padding: 5px 1em;
        /*margin: 20px auto 0;*/
        display: block;
        transition: all 0.15s ease-in-out;
    }

    .data-download-btn:hover,
    .data-download-btn:focus {
        background: #fff;
        color: #1A3264;
        border-color: #1A3264;
        text-decoration: none;
    }

}

/* ================================================================= */

/* Chart JS styling */
.field--name-field-chart .charts-figure button.charts-accordion-trigger{
    background: #1A3264;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 1em;
    transition: background 0.3s ease;
    &:hover, &:focus, &:focus-within, &:active{
        border: none;
        background: #01A0AE;
    }
}

/* ================================================================= */

/* Table styling */
.field--type-tablefield div.dt-container, .charts-accessible-table-wrapper .table-responsive{
    .dt-length{
        padding-inline: 15px;
        padding-block: 10px;
        border-radius: 5px;
        background: #1A3264;
        color: white !important;
        & > label{
            margin-left: 10px;;
        }
    }
    .dt-search{
        padding-inline: 15px;
        padding-block: 10px;
        border-radius: 5px;
        background: #1A3264;
        color: white !important;
        & > label{
            margin-right: 10px;
        }
        input:focus, input:focus-within, input:focus-visible{
            background: #01A0AE;
        }
    }

    table tr > th:not([scope="row"]) {
        background: #1A3264;
        border-radius: 4px;;
        color: white;
    }
    table tbody tr{
        border-bottom: 2px solid #1A3264;
        transition: background 0.3s ease, color 0.3s ease;
        &:hover{
            background: #01A0AE;
            color: white;
        }
    }
    .dt-info{
        font-weight: bold;
        color: #1A3264;
    }
    .dt-paging{
        background: #1A3264;
        color: white;
        border-radius: 5px;
        padding-block: 10px;
        padding-inline: 10px;
        button, a{
            color: white !important;
        }
        .dt-paging-button{
            border: 3px solid transparent !important;
            &.disabled{
                color: rgb(205, 205, 205) !important;
                &:hover{
                    cursor: not-allowed;
                    color: rgb(205, 205, 205) !important;
                }
            }
            &.current{
                border: 3px solid white !important;
                &:hover{
                    cursor: not-allowed;
                }
            }
            &:not(.disabled):not(.current):hover{
                background: #01A0AE;
                border: 3px solid #01A0AE !important;
            }
        }
        button.dt-paging-button.first,
        button.dt-paging-button.last{
            display: none !important;
        }
    }
}

.charts-accessible-table-wrapper .charts-accordion-content{
    margin: 1em 0 1em 0;
}

.paragraph--type--graphs.paragraph--view-mode--default:has(.paragraph--type--chart) {
    position: relative;
}

@media (min-width: 992px) {

  /* DEFAULT: graph mode — position button absolutely */
  .paragraph--type--graphs.paragraph--view-mode--default:has(.charts-figure)
  .custom-download-graph {
    position: absolute;
    right: 0;
    bottom: -14px;
  }

  /* OVERRIDE: when table accordion is open — reset to static */
  .paragraph--type--graphs.paragraph--view-mode--default:has(.charts-accordion-content[style*="display: block"])
  .custom-download-graph {
    position: static !important;
    right: auto;
    bottom: auto;
  }

}
/* ================================================================= */



/* ================================================================= */ 
/* Breadcrumbs */
/* ================================================================= */ 

.block-system-breadcrumb-block{
    padding-block: 1rem;
}

/* ================================================================= */ 
/* Subscribe */
/* ================================================================= */ 

@media (max-width: 767px) {
    div#subscription-button-menu-top ul {
        padding-left: 2rem;
    }
}

/* ================================================================= */ 
/* Paragraphs two column */
/* ================================================================= */ 
.paragraph--type--two-column{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 576px){
    .paragraph--type--two-column{
        flex-direction: row;
        gap: 20px;
    }
}


/* ================================================================= */ 
/* Align logo with the website gutter
/* ================================================================= */ 
@media (min-width: 1400px){
	.navbar-brand > img{
		margin-left: -20%;
	}
}
@media (min-width: 1200px) and (max-width: 1399px){
	.navbar-brand > img{
		margin-left: -6%;
	}
}
@media (min-width: 1000px) and (max-width: 1199px){
	.navbar-brand > img{
		margin-left: 20%;
	}
}

/* ================================================================= */ 
/* Paragraph content full width */
/* ================================================================= */ 
.paragraph.paragraph--type--content.paragraph--view-mode--default{
    padding: 1rem 0;
}
.style--hero.paragraph.paragraph--type--content.paragraph--view-mode--default {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background: #CCECEF;
}

/* When sidebar_first is present, constrain the hero */
.sidebar_first ~ .main-content .style--hero.paragraph {
  padding: 2rem 1rem;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  background: #CCECEF;
  p{
    margin-bottom: 0;
}
}
/* ================================================================= */ 
/* Upload Video  full width */
/* ================================================================= */ 

 .field--name-field-link-button.field--type-link  a{
    border-radius: 20px;
    border: 1px solid #1A3264;
    background: #1A3264;
    color: #fff;
    padding: 5px 1em;
    display: block;
    transition: all 0.15s ease-in-out;
    text-align: center;
}

.field--name-field-link-button.field--type-link a:hover,
.field--name-field-link-button.field--type-link a:focus   {
    background: #fff;
    color: #1A3264;
    border-color: #1A3264;
    text-decoration: none;
}


/* ================================================================= */ 
/*Accordion */
/* ================================================================= */

.au-accordion-body.is-open,
.au-accordion-body[style*="height: auto"] {
    overflow: visible !important;
    height: auto !important;
}


/* ================================================================= */ 
/*Anchrofic */
/* ================================================================= */
/* ── TOC nav wrapper ─────────────────────────────────────────────────── */
nav.anchorific {
  background: #EEE;
  border-left: 4px solid #0DAFB6;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: inline-block;
  min-width: 240px;
  max-width: 100%;
  width: 100%;
  border-radius: 0 4px 4px 0;
}

nav.anchorific::before {
  content: 'Contents';
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #425A4F;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #8FA498;
}

/* ── Lists ───────────────────────────────────────────────────────────── */
nav.anchorific ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.anchorific ul ul {
  padding-left: 1rem;
  border-left: 1px solid #8FA498;
  margin: 0.15rem 0 0.15rem 0.25rem;
}

/* ── Links ───────────────────────────────────────────────────────────── */
nav.anchorific li a {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.25rem 0;
  color: #091933;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}

nav.anchorific li a:hover {
  color: #0DAFB6;
  text-decoration:underline;
}

nav.anchorific li a:focus-visible {
  outline: 2px solid #0DAFB6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Scroll spy active ───────────────────────────────────────────────── */
nav.anchorific li.active > a {
  color: #0DAFB6;
  font-weight: 600;
}

/* ── Anchor links on headings ────────────────────────────────────────── */
.anchor {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45em;
  color: #93ABA1;
  text-decoration: none;
  opacity: 0;
  font-size: 0.75em;
  vertical-align: middle;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.anchor:focus-visible {
  opacity: 1;
  outline: 2px solid #0DAFB6;
  outline-offset: 2px;
  border-radius: 2px;
}

h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h2:focus-within .anchor,
h3:focus-within .anchor,
h4:focus-within .anchor {
  opacity: 1;
  color: #0DAFB6;
}
/*accordion */  
h4.au-accordion-title-heading {
    all: unset;
    display: block;
    a.anchor {
        display: none;
    }
}

/* ================================================================= */ 
/*Tippy JS -- Footnotes */
/* ================================================================= */
/* ── Footnote reference badge ─────────────────────────────── */
sup.fn-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #081933;
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: super;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;

  /* Accessibility */
  role: note;
  tabindex: 0;
}

sup.fn-tip:hover,
sup.fn-tip:focus {
  background: #081933;
  transform: scale(1.15);
  outline: 2px solid #081933;
  outline-offset: 2px;
}

/* ── Hidden footnote text (consumed by Tippy) ─────────────── */
p.fn-text {
  display: none;
}

/* ── Tippy tooltip theme ──────────────────────────────────── */
.tippy-box[data-theme~='footnote'] {
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.85rem;
  line-height: 1.7;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  max-width: 340px;
  text-align: left;
}

.tippy-box[data-theme~='footnote'] .tippy-arrow {
  color: #1e293b;
}

.tippy-box[data-theme~='footnote'] .tippy-content {
  padding: 12px 16px;
}

/* ── Print styles — show footnotes visibly when printing ──── */
@media print {
  sup.fn-tip {
    background: none;
    color: #000;
    font-size: 0.7rem;
    width: auto;
    height: auto;
    border: 1px solid #000;
    border-radius: 3px;
    padding: 0 2px;
  }

  p.fn-text {
    display: block !important;
    font-size: 0.8rem;
    color: #333;
    border-top: 1px solid #ccc;
    padding-top: 4px;
    margin-top: 4px;
  }
}

/* ================================================================= */ 
/*Back to Top */
/* ================================================================= */
a.top.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 999;

  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;

  background: #193264;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

a.top.back-to-top[style*="display: block"],
a.top.back-to-top[style*="display:block"] {
  display: flex !important;
}

a.top.back-to-top span {
    font-size: 2em;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;

}

a.top.back-to-top:hover {
  background: #0DAFB6;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

a.top.back-to-top:focus {
  outline: 2px solid #0DAFB6;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  a.top.back-to-top { transition: none; }
}

@media print {
  a.top.back-to-top { display: none !important; }
}

/*Home Page  Data Portal*/

#block-smallbusinessdataportallists div.field--name-field-page-list {
    justify-content: flex-start;
}
#block-smallbusinessdataportallists div.field--name-field-page-list .field__item:not(nth-last-of-type){
    margin-right:10px;
}
