/* ==================================================
   ROOT SCALING
   ================================================== */

html {
  font-size: clamp(14px, 0.25vw + 13px, 18px);
}

/* Push page content below fixed header */
main {
  padding-top: 0rem;
}


html * {
    box-sizing: border-box;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
}
body{background-color:  var(--neutral-light);
       line-height:1.45;
   }
   
strong {
    font-weight:600;
}

    em {
    font-style: italic;
}

footer {
    position: fixed;
    right: 0;
    z-index: 1;
    width:38vw;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: calc(.5rem + 1vw);
    padding-right: 3.3vw;
    padding-bottom: 1.25rem;
    align-items: center;
}

footer .privacy-link, footer span {
    color: #4355A7;
    font-size:.75rem;
    line-height: 1.2;

}

footer span:hover {
    cursor: pointer
}

footer .footer-logo {
    width: 160px;
    height: 37px;
    background-image: url(https://www.victimscommissioner.qld.gov.au/_media/images/icons-and-symbols/OVC-Logo-blue.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

footer .how-to-use {
    background-image: url(https://www.youthjustice.qld.gov.au/__data/assets/file/0014/111128/circle-info-solid.svg);  /* circle-info-solid.svg */
  background-position: 0% 45%;
  background-repeat: no-repeat;
  background-size: contain;
  background-size: 12%;
  padding: 1rem 0 1rem 1.5rem;
  margin-left: 2rem;
}

footer img {
    width: 150px;
}

hr {
    border:none;
    margin-top: 2rem;
}

::selection {
  background-color: /* #f3f1FF */ #E3E8F8;
  color: #000;
}

.internal-link {
    color: #0000ee;
    text-decoration: underline;
    background-image: url(https://www.youthjustice.qld.gov.au/__data/assets/file/0016/110950/internal-link.svg); /* internal-link.svg */
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 10px 10px;
    padding-right: 10px;
}

.internal-link:hover {
    cursor: pointer;
}

.print-only {
    display: none;
}

.clearfix {
    position:relative;
  z-index:-1;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */

:root {
  /* Font Family */
  --font-family-base:
    'Noto Sans',
    sans-serif;

  /* Text Sizes */
  --text-xs: clamp(0.75rem, 0.72rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --text-md: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);

  --text-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 0.75vw, 2rem);

  --text-h4: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --text-h3: clamp(1.75rem, 1.45rem + 1.2vw, 2.5rem);
  --text-h2: clamp(2.25rem, 1.75rem + 1.8vw, 3.5rem);
  --text-h1: clamp(3rem, 2rem + 3vw, 5rem);

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-heading: 1.2;
  --leading-body: 1.5;
  --leading-relaxed: 1.7;
}

/* ==================================================
   SPACING
   ================================================== */

:root {
  --space-2xs: clamp(0.25rem, 0.2rem + 0.1vw, 0.375rem);
  --space-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.65rem + 0.3vw, 1rem);

  --space-md: clamp(1rem, 0.8rem + 0.5vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 0.75vw, 2rem);

  --space-xl: clamp(2rem, 1.5rem + 1vw, 3rem);
  --space-2xl: clamp(3rem, 2rem + 1.5vw, 4rem);
  --space-3xl: clamp(4rem, 3rem + 2vw, 6rem);
  --space-4xl: clamp(6rem, 4rem + 3vw, 8rem);

  /* Common Section Spacing */
  --section-spacing: var(--space-3xl);

  /* Common Component Spacing */
  --component-spacing: var(--space-lg);
}

/* ==================================================
   CONTAINER
   ================================================== */
   

:root {
  --container-padding: clamp(1rem, 3vw, 3rem);

  --container-sm: 40rem; /* 640px */
  --container-md: 60rem; /* 960px */
  --container-lg: 80rem; /* 1280px */
  --container-xl: 90rem; /* 1440px */
}

/* ==================================================
   COLOUR PALATTE
   ================================================== */

:root {
  --primary: #4355A7;
    --primary-30:  #4355A730;
 --primary-70:  #4355A770;
 --primary-90:  #4355A790;
  --primary-light: #E3E8F8;
  --primary-dark: #192a7a;
  /*Neutrals*/
  --neutral-light: #f3f5ff;
  --neutral-mid: #f9faff;
    --neutral-dark: #b5bee1;
  --grey-light: #f3f3f3;
    --neutral-80: #E3E8F899;
  /* Accents */
  --accent-blue: #207fa1;
  --accent-attention: #e6752b;
  --accent-define: #c34062;
    --accent-complete: #2ca461;
--accent-complete-mid: #95d6b1;
--accent-complete-mid-light: #e3f8ec;
--accent-complete-light: #f1fff7;
  --background: #f8f8fa;
  --text: #212529;
}

.feature-branch-pop-out, .feature-branch-pop-out + .breadcrumb, .content__title, #how-to__mobile{
    display:none;
}

/* ==================================================
  BASE ELEMENTS
   ================================================== */


h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-heading);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
}

p {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  margin-bottom: var(--space-md);
}
li {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  margin-bottom: var(--space-xs);
}

a {
    color: var(--accent-blue);
}

section {
  padding-block: var(--section-spacing);
}



/* ==================================================
   FIXED HEADER
   ================================================== */

.pathway-header {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  right: var(--space-sm);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-xs) var(--space-lg);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0px 20px rgb(0 0 0 / 0.03);
  transition: all .3s;
}
.pathway-header--active {
   0
}

@media(max-height:900px) {
   .pathway-header {
  border-radius:0;
  top: 0;
  left: 0;
  right: 0;  
} 
}




.pathway-header__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  bottom: 0;
    transition: all .3s ease;
}

.pathway-header__top a {
 text-decoration: none;
}


.pathway-header__branding {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.pathway-header__logo {
  width: clamp(5rem, 6vw, 6rem);
  height: auto;
  flex-shrink: 0;
  transition: all .3s ease;
}

.pathway-header__divider {
  width: 1px;
  height: 3rem;
  background: rgb(0 0 0 / 0.15);
  flex-shrink: 0;
}

.pathway-header__title {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
    transition: all .3s ease;
}

.pathway-header__title span {
    font-weight: 400;
    font-size: var(--text-lg);
transition: all .3s ease;
}

.pathway-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}


.pathway-header__actions-divider {
    width: 1.5px;
    height: 2rem;

    margin-inline: 1rem;

    background: rgb(0 0 0 / 15%);
}
.continue,
.button,
.pathway-header__how-to,
.pathway-header__quick-exit,
.option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.5rem;
    border-radius: 0.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 3px solid var(--primary);
}

.button--white {
    border: 2px solid var(--primary);
    background-color: white;
    color: var(--primary);
    
}


.pathway-header__how-to {
    transition: all .2s;
    border: 2px solid var(--primary);
    color:var(--primary);
    padding: var(--space-sm) var(--space-md);
    background-color: white;
    max-height:3rem;
    opacity: 1
}

.pathway-header__how-to.is-hidden, .pathway-header__actions-divider.is-hidden  {
    opacity: 0
}



.pathway-introduction__how-to:hover {
    transition: all .2s;
}

.pathway-header__how-to:hover, .pathway-introduction__how-to:hover {
    background-color: var(--neutral-light);
}

.pathway-header__quick-exit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 3rem;
  padding-inline: 1.5rem;
  border-radius: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  color: white;
  background-color: var(--accent-attention);
  text-decoration: none;
  white-space: nowrap;
    border: none;
}

.pathway-header__quick-exit img {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.pathway-header--active {
    padding-top: .5rem
}

.pathway-header--active .pathway-header__logo {
  width: clamp(4rem, 6vw, 4.5rem);
  height: auto;
  flex-shrink: 0;
}

.pathway-header--active .pathway-header__title, .pathway-header--active .pathway-header__title span {
    font-size: var(--text-md)
}

.pathway-header--active .pathway-header__top {
    bottom:3.5px
}

.page__curtain {
    position: fixed;
    top: 0px;
    width: 100%;
    left: 0px;
    height: calc(8rem + 5vh);
    background: linear-gradient(0deg, rgba(241, 232, 227, 0) 0%,var(--primary-light) 30%,var(--primary-light) 100%);
    z-index: 999;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 48rem) {
  .pathway-header {
    top: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    padding: 1rem;
  }

  .pathway-header__top {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .pathway-header__quick-exit {
    justify-self: end;
  }

  .pathway-header__divider {
    display: none;
  }

  .pathway-header__title {
    font-size: var(--text-lg);
  }
}

/* ==================================================
   PATHWAY PROGRESS
   ================================================== */
   
   .pathway-header__breadcrumb {
  width: 100%;
}

.pathway-progress {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height .4s ease,
        opacity .3s ease;
}

.pathway-header--active .pathway-progress {
    max-height: 4rem;
    opacity: 2;
    display: flex;
    overflow: visible;
}

.pathway-progress {
    width: 100%;
    background-color: var(--grey-light);
    border-radius:2rem;
    box-shadow: inset 0 0 5px 5px rgba(0, 0, 0, 0.01);
}

.pathway-progress__list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
    padding-right: var(--space-md);
    padding-left: var(--space-md);
    border-radius: 3rem;
    list-style: none;
    background-color: var(
    --primary-light);
}

.pathway-progress__list li {
    margin-bottom:0
}

.pathway-progress__stage button {
    padding: 0.5rem 0 .5rem 0rem;
    background-color: var(--primary-light);
    border: 0;
    border-radius: 999px;

    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary-90);
    cursor: pointer;
}

.pathway-progress__stage.active-stage button {
    color: var(--primary);
    font-weight:700;
}

.pathway-progress__step button {
    width: 0.625rem;
    height: 0.625rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--primary-90);
    transition:all .1s
}

.pathway-progress__step {
    position: relative;
}

.pathway-progress__step.active button{
    background-color: var(--primary);
}

.pathway-progress__step.active ~ .pathway-progress__step button{
    background-color: var(--neutral-dark)
}

.pathway-progress__step:after {
    position: absolute;
    transition: transform .3s ease, opacity .3s ease;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    content:'';
}

.pathway-progress__step:before {
    transition: transform .3s ease, opacity .3s ease;
    transform: translateY(-10px);
    opacity: 0;
    content: '';
}

.pathway-progress__step:hover:after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    width: max-content;
    max-width: 300px;
    border-radius: 1rem;
    padding: var(--space-xs);
    font-size: var(
    --text-xs);
    background-color: var(--primary);
    color: white;
    top: 150%;
    transform: translateX(-50%) translateY(0);
    opacity: 1
}
.pathway-progress__step:hover:before {
    margin-top: ;
    content: "";
    border: 8px solid transparent;
    border-bottom-color: var(--primary);
    position:absolute;
    top:100%;
    opacity: 1;
    transform: translateY(0px);
}
.pathway-progress__stage.completed,
.pathway-progress__step.completed {
    opacity: 1;
}

.pathway-progress__stage.active,
.pathway-progress__step.active {
    opacity: 1;
}

.pathway-progress__stage.pending,
.pathway-progress__step.pending {
    opacity: 0.4;
}

.pathway-progress__list.finished {
    background-color: var(
    --accent-complete-mid-light);
    box-shadow: 0 0 20px 5px white;
}

.pathway-progress__list.finished .pathway-progress__stage.active-stage button,  .pathway-progress__list.finished .pathway-progress__stage button {
    color: var(--accent-complete);
    background-color: var(
    --accent-complete-mid-light);
}

.pathway-progress__list.finished .pathway-progress__step.active button {
    background-color: var(--accent-complete);
}

.pathway-progress__list.finished  .pathway-progress__step button {
     background-color: var(--accent-complete-mid);
}


/********************* Disclaimer ******************/

#disclaimer {
    cursor: pointer;
    opacity: 0;
    height: 100vh;
    width: 100vw;
    background-color: var(--primary-30);
    color: #000000;
    position: fixed;
    z-index: 1001;
    transition: opacity .7s;
    visibility: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    backdrop-filter: blur(3px);
}

#disclaimer.active {
    opacity: 1;
    visibility: visible;
}

#disclaimer h2 {
    font-size: var(--text-h3);
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--space-2xl);
}

#disclaimer h3 {
    font-size: 1.25rem;
}

.show-disclaimer {
    background-color: #FA9969;
    background-color: #69D6FA;
    background-color: #FA9969;
    background-color: #645954;
    color: #645954;
    padding: 1rem 2rem 1rem 3.5rem;
    background-image: url(https://www.youthjustice.qld.gov.au/__data/assets/file/0020/110963/read.svg);
    /* read.svg */
    background-repeat: no-repeat;
    background-position: 1.5rem center;
    background-size: 23px 14px;
    margin-top: 2rem;
    transform: translateY(0px) !important;
    border-radius: 10px;
    font-weight: bold;
    display: inline-block;
    opacity: 1;
}


.disclaimer-container {cursor: default;padding: var(--space-lg);width: 760px;max-width: 95%;position: relative;margin: 6rem auto;background-color: var(--neutral-light);/* margin: 2rem; */border-radius: 2rem;box-shadow: 0px 7px 78px 20px rgb(0 0 0 / 10%);}

#disclaimer-exit {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: 2rem;
    right: 2rem;
    background-image: url(https://www.youthjustice.qld.gov.au/_victimscommisioner/pathways/sexual-violence/images/icon/cross-blue.svg);
    /* cross.svg */
    background-size: contain;
    background-repeat: no-repeat;
}

#disclaimer-exit:hover {
    cursor: pointer;
}

#intro-read {
    margin: 3rem auto;
    display: flex;
    width: max-content;
    font-weight: bold;
    padding-right: 3rem;
}

#intro-read:after {
    display:none;
}


#how-to-use {
    width: 100%;
    padding-bottom: 70%;
    background-image: url(https://www.youthjustice.qld.gov.au/__data/assets/image/0018/105408/VP-screenshot.PNG);
    /*VP-screenshot.PNG*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 3rem;
}


.accordion {
    margin-bottom: 1em;
    border: none;
    border-radius: 1rem!important;
    overflow: hidden;
}

.accordion-header {
    color:  var(--primary);
    background-color: var(--primary-light);
    padding: 1em;
    font-size: var(--text-md);
    cursor: pointer;
    font-weight: 600 !Important;
    outline: none;
    position: relative;
    padding-right: 2em;
    background-repeat: no-repeat;
    background-position: right 1em center;
    background-size: 1.5rem;
    transition: background-image 0.2s ease;
}

.accordion-header[aria-expanded="false"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'><path d='M8 4a.5.5 0 0 1 .5.5V7.5H11.5a.5.5 0 0 1 0 1H8.5V11.5a.5.5 0 0 1-1 0V8.5H4.5a.5.5 0 0 1 0-1H7.5V4.5A.5.5 0 0 1 8 4z'/></svg>");
}

.accordion-header[aria-expanded="true"] {
    background-image: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/icons/dash.svg");
}

.accordion-content {
    padding: 1em;
    background: #ffffff;
}


/* ==================================================
   PATHWAY + ADDITIONAL INFO LAYOUT
   67 / 33 split
   ================================================== */

.page-layout__body {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    max-width: 78rem;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ==================================================
   PATHWAY CONTENT
   ================================================== */

body > .page-layout > .page-layout__body > .content{
    gap:0;
    flex-basis: 100%;
    width:100%;
    display: block;
}

.content {
    display: flex;
    min-width: 0;
    gap: var(--space-xl);
    align-items: flex-start;
}

.stage-wrapper {

    flex-basis: 65%;
}

/* ==================================================
   ADDITIONAL INFORMATION PANEL
   ================================================== */

.pathway-info-panel {
    flex: 0 0 33%;

    position: sticky;
    top: 10rem;

    align-self: flex-start;

    min-width: 18rem;
    max-width: 24rem;

    padding: var(--space-lg);

    border-radius: 1rem;

    background: var(--surface-light);
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 64rem) {

    .page-layout__body {
        flex-direction: column;
    }

    .content,
    .pathway-info-panel {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .pathway-info-panel {
        position: static;
        order: -1;
    }

    .stage-wrapper {
        max-width: 100%;
    }
}


/**** Main content animation ****/


#container-inner > .stage-wrapper {
    opacity:0;
    transition: all .7s ease;
}

#dynamic-content.hx-trigger-enter > #container-inner.visible > .stage-wrapper, #dynamic-content > #container-inner.visible > .stage-wrapper {
    opacity:1;
}

#container-inner.htmx-swapping > * {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.2s ease, transform 0.2s ease;
}



   /************* TOOLTIPS (pop up definitions on text hover) *************/
                            /* sourced from https://www.cssportal.com/css-tooltip-generator/ */
                            .tooltip-underline {
                                text-decoration: underline dotted;
                                text-decoration-color: #BD42BB;
                            }
                            
                            .tooltip-first {
                                color: #BD42BB !important;
                                text-decoration: none;
                            }

                            [data-tooltip] {
                                position: relative;
                                cursor: help;
                            }

                            [data-tooltip]::before, [data-tooltip]::after {
                                position: absolute;
                                opacity: 0;
                                visibility: hidden;
                                transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
                                pointer-events: none;
                                z-index: 1000;
                            }

                            [data-tooltip]::before {
                                content: attr(data-tooltip);
                                background: var(--primary) !important;
                                color: #FFFFFF;
                                padding: 8px 16px;
                                border-radius: 15px;
                                max-width: 300px;
                                width: max-content;
                                text-align: left;
                                font-size: 16px;
                                filter: drop-shadow(2px 2px 5px rgba(255,255,255));
                                /* disabled background blur
  backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px); */
                            }

                            [data-tooltip]::after {
                                content: "";
                                border: 8px solid transparent;
                            }

                            /* Positions */
                            [data-direction="top"]::before, [data-direction="top"]::after {
                                left: 50%;
                                bottom: 100%;
                                transform: translateX(-50%) translateY(10px);
                            }

                            [data-direction="top"]::after {
                                border-top-color: var(--primary);
                                margin-bottom: -4px;
                            }

                            [data-direction="top"]::before {
                                margin-bottom: 12px;
                            }

                            [data-direction="bottom"]::before, [data-direction="bottom"]::after {
                                left: 50%;
                                top: 100%;
                                transform: translateX(-50%) translateY(-10px);
                            }

                            [data-direction="bottom"]::after {
                                border-bottom-color: rgba(255, 255, 255, 0.95);
                                margin-top: -4px;
                            }

                            [data-direction="bottom"]::before {
                                margin-top: 12px;
                            }

                            [data-direction="left"]::before, [data-direction="left"]::after {
                                top: 50%;
                                right: 100%;
                                transform: translateY(-50%) translateX(10px);
                            }

                            [data-direction="left"]::after {
                                border-left-color: rgba(255, 255, 255, 0.9);
                                margin-right: -4px;
                            }

                            [data-direction="left"]::before {
                                margin-right: 12px;
                            }

                            [data-direction="right"]::before, [data-direction="right"]::after {
                                top: 50%;
                                left: 100%;
                                transform: translateY(-50%) translateX(-10px);
                            }

                            [data-direction="right"]::after {
                                border-right-color: rgba(255, 255, 255, 0.9);
                                margin-left: -4px;
                            }

                            [data-direction="right"]::before {
                                margin-left: 12px;
                            }

                            /* Trigger */
                            [data-tooltip]:hover::before, [data-tooltip]:hover::after {
                                opacity: 1;
                                visibility: visible;
                            }

                            [data-direction="top"]:hover::before, [data-direction="top"]:hover::after, [data-direction="bottom"]:hover::before, [data-direction="bottom"]:hover::after {
                                transform: translateX(-50%) translateY(0);
                            }

                            [data-direction="left"]:hover::before, [data-direction="left"]:hover::after, [data-direction="right"]:hover::before, [data-direction="right"]:hover::after {
                                transform: translateY(-50%) translateX(0);
                            }

.page-overlay {
    position:absolute;
    z-index:11;
    opacity:0;
    transition:all .7s;
}

.page-overlay.active {
    opacity:1;
    height:100vh;
    width:100vw;
    background-color: #f2f7e5fa;
    cursor: pointer;
}

/* ==================================================
   PATHWAY INTRODUCTION
   ================================================== */

.pathway-introduction {
    min-height: 100vh;
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    padding-top:0;
    opacity: 1;
    transition: all 1s;
    background-image: url(https://www.youthjustice.qld.gov.au/__data/assets/image/0023/135851/Sentencing-pathway-hero-img.png);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 60%;
}

.pathway-introduction__content {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
}

.pathway-introduction__title,
.pathway-introduction__subtitle,
.pathway-introduction__how-to,
.pathway-introduction__actions {
    max-width: 40rem;
}

.pathway-introduction__title {
    margin: 0;

    font-size: var(--text-h2);
    font-weight: 600;

    color: var(--primary);
}

.pathway-introduction__subtitle {
    margin-top: var(--space-xl);

    font-size: var(--text-h4);

    color: var(--primary);
}

.pathway-introduction__title:before,
.pathway-introduction__subtitle:before {
    display: none;
}

.htmx-swapping .pathway-introduction {
    opacity: 0;
}

.pathway-introduction:after {
    opacity: 0;
}

#start-pathway {
    margin-top: 0;
    padding-right: 3em;
    background-size: 20px;
    background-position: right 1.25rem center;
}

#start-pathway:after {
    display: none
}

.pathway-introduction__actions {
    margin-top: var(--space-2xl);
    transition: all .3s;
    display: block;
    display: flex;
    gap: var(--space-md)
}


.pathway-introduction__actions .continue, .continue, .option {
    transition: all .2s ease;
    margin-top: 0;
    font-weight: bold;
    color: white;
    background-color: var(--primary);
    margin-top: var(--space-xl);
    padding: var(--space-sm) var(--space-md);
}

.pathway-introduction__actions .continue:focus, .continue:focus, .option:focus {
    background-color: var(--primary-dark);
}

.continue.selected {
    display:none;
}

.pathway-introduction__actions .continue:hover, .continue:hover, .option:hover {
    background-color: var(--primary-dark)
}

.continue-container, .options  {
    display: none !important;
}

.journey-step.active + .continue-container, .journey-step.active + .options {
    display: flex !important;
}

.journey-step.active + .continue-container.is-hidden {
    display: none !important;
}

.selected {
    background-color: var(--primary-dark);
}


.option {
    position: relative;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    max-width: 240px;
    text-wrap: auto;
    text-align: center;
}

#print-pathway {
    background-color: var(--accent-complete);
    border-color: var(--accent-complete);
    background-image: url('https://www.victimscommissioner.qld.gov.au/pathways/sentencing/images/print.svg');
    background-position: right .75rem center;
    background-size:25px
}

.continue {
    position: relative;
    padding-right: 3rem;
    background-image: url(https://www.youthjustice.qld.gov.au/__data/assets/file/0009/111123/Angle-down.svg);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
}

.option:after, .continue:after {
    content: '';
    position: absolute;
    top: calc(-1 * var(--space-xl) - 3px);
    left: calc(var(--space-2xl) + 1rem);
    width: 3px;
    background-color: var(--primary-light);
    height: var(--space-xl)
}

.selected:before {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-xl) - 3px);
    left: calc(var(--space-2xl) + 1rem);
    width: 3px;
    background-color: var(--primary-light);
    height: var(--space-xl)
}


@media (max-width: 900px) {
    .pathway-introduction {
        background-size: 180%;
        background-image: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)), url(https://www.youthjustice.qld.gov.au/__data/assets/image/0023/135851/Sentencing-pathway-hero-img.png);

    }
}

/* Core Container Setup */

#container-inner {
    display:flex;
    gap: var(--space-lg)
}

.stage-wrapper {
width: 100%;
padding-bottom: 10rem;
padding-top: 13rem;
scrollbar-width: none;
-ms-overflow-style: none;
}

.stage-wrapper::-webkit-scrollbar {
display: none;
}

.journey-step {background-color: white;border-radius: var(--space-lg);border: 3px solid var(--primary-light);padding: var(--space-xl) var(--space-lg);margin-top: var(--space-xl);transition: background-color 0.4s ease, padding .5s ease, border-color 0.4s ease;position: relative;scroll-margin-top: 17rem;}

.stage-wrapper .journey-step:first-child:before {
display: none;
}

.journey-step.seen:after, .journey-step.active[data-completed="true"]:after {
content: '';
position: absolute;
bottom: calc(-1 * var(--space-xl) - 2.5px);
left: calc(var(--space-2xl) + 1rem);
width: 3px;
background-color: var(--primary-light);
height: var(--space-xl);
}

.journey-step.seen.pending:after {
    display: none
}

.stage-wrapper > .journey-step:first-child {
margin-top: 0;
}

.journey-step.seen {
padding: var(--space-lg) var(--space-lg);
background-color: var(--neutral-mid);
}

.journey-step.seen:hover {
background-color: white;
}


.journey-step p img, #disclaimer img {
width: 100% !important;
height: auto !important;
margin: var(--space-md) auto;
max-width: 350px;
display: block;
}

.option-multi {
display: flex;
gap: var(--space-md);
}

.journey-step.pending {
display: none !important;
}

.journey-step.seen {
display: block !important;
}



.journey-step.seen .step-header {
opacity: 0.65;
transition: opacity 0.2s ease, color 0.2s ease;
}

.journey-step.seen:hover .step-header {
opacity: 1;
}

.journey-step.seen:hover {
cursor: pointer;
}

.journey-step.collapsed .summary-badge {
display: inline-block;
background-color: #2B3977;
color: #fff;
padding: 0.35rem 0.85rem;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;

vertical-align: middle;
}

/* ==================================================
   SMOOTH ACCORDION HEIGHT & TOOLTIP OVERFLOW HANDLING
   ================================================== */
 
/* Base step-body (Closed & Collapsing State) */
.journey-step .step-body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    0;
    overflow: hidden; /* Kept hidden while closing or closed */
    transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                margin-top 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                overflow 0s 0s; /* Flips back to hidden INSTANTLY on collapse */
}
 
/* Prevent content clipping inside CSS Grid interpolation */
.journey-step .step-body > * {
    min-height: 0;
}
 
/* Active step-body (Open State) */
.journey-step.active .step-body {
    grid-template-rows: 1fr;
    opacity: 1;
    var(--space-sm);
    overflow: visible; /* Allows tooltips to pop outside container */
    transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                margin-top 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                overflow 0s 0.5s; /* 0.5s DELAY: waits for expand animation to finish before going visible */
}
 
/* Override old display:none rules */
.journey-step.collapsed .step-body, 
.journey-step.seen .step-body {
    display: grid !important;
}



.journey-step.active .step-header {
color: var(--primary);
font-weight: 700;
}

.journey-step.active .summary-badge {
display: none !important;
}


.step-header {display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;gap: 0.75rem;}

.step-header h2.step-title {margin: 0 !important;padding-top: 0 !important;font-size: var(--text-h4);}

.journey-step.seen .step-header h2.step-title {
font-size: var(--text-lg);
color: var(--primary);
}

.journey-step details {
border-bottom: 1.5px solid var(--primary-light);
border-top: 1.5px solid var(--primary-light);
}

.journey-step details + details {
border-top: none;
}

details:open {
padding-bottom:var(--space-md)
}

.journey-step details:first-child {
margin-top:var(--space-lg)
}

.journey-step p + details {
margin-top: var(--space-xl);
}

.journey-step summary {position: relative;color: var(--primary);padding-right: var(--space-xl);}

.journey-step summary h3 {
margin: 0;
font-weight: 600;
padding: var(--space-md) 0;
}

.journey-step summary:hover h3,.journey-step summary:hover:after {
    color: var(--primary-dark)
}

.journey-step summary:hover {
cursor: pointer;
}

.journey-step summary::after {
content: '+';
position: absolute;
right: var(--space-sm);
top: 50%;
transform: translateY(-50%);
font-weight: 300;
font-size: var(--text-xl);
}

.journey-step details:open summary::after {
content: '-';
}

.journey-step summary::marker {
content: '';
display: none;
}

.journey-step h4, #disclaimer h4 {color: var(--primary);font-weight: 600;font-size: var(--text-md);margin-bottom: var(--space-xs);margin-top: var(--space-md);}

.end-of-pathway {
    background-color: var(--accent-complete-light);
    border-radius: var(--space-md);
    margin-top: var(--space-xl);
    padding: var(--space-xs) var(--space-md);
    border: 2px solid var(--accent-complete-mid)
}

.end-of-pathway h4 {
    color: var(--accent-complete);
    font-size: var(--text-lg)
}


@keyframes activeBorderPulse {
0% {
border-color:var(--primary-light);
}
25% {
border-color: var(--primary-70);
}
100% {
border-color: var(--primary-light);
}
}

.journey-step.active {
animation: activeBorderPulse .5s ease forwards;
}




/* Clean override ensuring nested headings inside accordions don't trigger massive line decorations */
.step-header h2.step-title:before {
    display: none !important;
}

.side-tray {
    margin-top: 13rem;
    padding:var(--space-lg);
    background-color:var(--primary-light);
    flex-grow:0;
    flex-basis: 35%;
    border-radius: var(--space-lg);
    align-self: baseline;
    position: sticky;
    top: 13rem;
    z-index: 2;
    filter: drop-shadow(0px 0px 6px #f3f5ff);
    display: none;
}

@media (min-width:901px) {
    .side-tray {
    display: block;
}
}

#additional-info__exit {display: none;}

.side-tray h3 {
    margin-top: 0;
    font-size: var(--text-xl);
    color: var(--primary);
    padding-left: var(--space-xl);
    background-image: url(https://www.victimscommissioner.qld.gov.au/pathways/sentencing/images/additional-info.svg);
    background-repeat: no-repeat;
    background-position: 0% 50%;
    background-size: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.side-item {
    position: relative;
    margin: 0;
    padding: 0;
    color: var(--primary);
    overflow: visible;
    transition: all 0.3s ease;
    border-bottom: 1.5px solid var(--neutral-dark)
}

.side-item:last-child {
    margin-bottom: 0;
}
 
.resource-summary {
    font-size: var(--text-md);
    padding: 0;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 700;
    list-style: none; 
    cursor: pointer; 
    transition: background 0.2s ease;  cursor: pointer; 
}
.side-item summary {
    position: relative;
    overflow:visible
}

.side-item summary:hover {
    
}
.side-item summary:before {
    opacity: 0;
    content: '';
    position: absolute;
    z-index: -1;
    width: 106%;
    left: -3%;
    height: 100%;
    border-radius: 10px;
    background-color:#eaeffd;
    transition: all .5s;
}

.side-item summary:hover:before {
    opacity: 1
}

.side-item summary:after {
    content: '+';
    position: absolute;
    right: var(--space-sm);
    top:50%;
    transform: translateY(-50%);
    font-weight:300;
    font-size:var(--text-xl);
    transition: all .2s;
}

.side-item:open summary:after {
    content: '-';
}

.side-item summary h4 {
        transition: all .2s;
        font-weight: 600;
}
.resource-summary:hover h4, .resource-summary:hover:after {
    color: var(--primary-dark)
}


  
.resource-summary::-webkit-details-marker { 
  display: none; 
}

.resource-summary::marker {
    content: '';
    display: none;
}

.resource-inner {
    padding: 0;
    /* background-color: white; */
}


.acc-icon {
  color: var(--primary); 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  font-weight: 900;
}


@media screen and (max-width:900px) {
    .side-tray {
        position: fixed;
        transform: translateX(100%);
        right: 0;
        transition: all .3s ease;
        width: 100vw;
        height: calc(100vh - 50px);
        top: 56px;
        margin-top: 0;
        z-index: 1000;
        border-radius: 0;
        overflow: scroll;
        padding: 0;
        display: block;
        visibility: hidden;
    }

    .side-tray > * {
        padding-inline: var(--space-lg)
    }

    .side-tray.mobile-active {
        transform: translateX(0%);
        background-color: var(--neutral-80);
        backdrop-filter: blur(2px);
        visibility: visible;
    }
     .side-tray.mobile-active:after {
         content:'';
         width: 100%;
         height: inherit;
         bottom: 0;
         top: 0;
         display: block;
         left:0;
         position: sticky;
         z-index: -1;
         background-color:var(--primary-light);
         opacity:.8
     }

 .side-tray h3 {
     font-size:var(--text-h2);
     margin-left: var(--space-lg);
     margin-top:var(--space-xl);
     padding-left: var(--space-2xl);
     background-size: 30px
 }

.step-header h2.step-title {
   font-size: var(--text-h3)
}
    .side-item  h4 {
        font-size: var(--text-lg);
        font-weight:600
    }

    .side-item summary h4 {
        font-size: var(--text-xl)
    }

#mobile-how-to {
    display: block !important;
}

.breadcrumb {
    display: none;
}

    .stage-wrapper {
        flex-basis: 100%;
        padding-top: 6rem;
    }
    .page-layout__body {
        padding-inline: 0
    }
    .journey-step {
        padding: var(--space-xl) var(--space-md)
    }
    .continue {
        width: 100%
    }
.option:after, .continue:after {
    left: 50%;
    transform: translateX(-50%)
}

.option-multi {
    flex-direction: column;
    margin-left: calc(var(--space-3xl) + 3px);
    border-left: 3px solid var(--primary-light);
    padding-left: var(--space-xl);
}

.stage-wrapper {
    padding-inline: var(--space-sm)
}

#quick-exit {
    position: fixed;
    top:0;
    left:0;
    border-radius: 0;
    width:100%;
    padding: var(--space-xl);
    font-size: var(--text-lg);
    z-index:9999;
}

#quick-exit img {
    height: 1.75rem;
    width: 1.75rem;
}

#additional-info__exit {
    display: block;
    position: absolute;
    top:var(--space-2xl);
    right: 1.25rem;
    width:1.45rem;
    height:1.45rem;
    border: none;
    background-color:transparent;
    text-indent: -999rem;
    background-image: url(https://www.youthjustice.qld.gov.au/_victimscommisioner/pathways/sexual-violence/images/icon/cross-blue.svg);
    background-repeat: no-repeat;
    background-position: center
}

.pathway-header {
    position: relative;
    top: 56px;
    left:0;
    border-radius: 0;
    width:100%;
}

.pathway-header .pathway-header__title, .pathway-header .pathway-header__title span {
    font-size: var(--text-h4);
}

.side-item summary:after {
    font-size: var(--text-h2)
}

#start-pathway {
    width: 100%
}

#disclaimer h2 {
    text-align: left;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-xl)
}

.pathway-introduction__title,
.pathway-introduction__subtitle,
.pathway-introduction__how-to,
.pathway-introduction__actions {
    max-width: 100%;
    text-align: center;
    flex-direction: column;
}

.pathway-progress__stage button {
    text-indent: -999rem
}

.pathway-header__actions-divider {
    display: none;
}

.pathway-progress {
    position: fixed;
    bottom: 0;
    left:0;
    right:0;
   height:1rem;
    border-radius:0;
    background-color: var(--neutral-dark)
}

.pathway-progress__list {
     background-color: var(--primary);
    border-radius: 0 
}

.pathway-progress__step button, .pathway-progress__step.active button, .pathway-progress__step.active ~ .pathway-progress__step button {
    background-color: var(--primary)
}

.pathway-header__how-to {
        position: fixed;
        transform: translateX(100%);
        right: 0;
        bottom: 2rem;
        transition: all .3s ease
}

.pathway-header .pathway-header__logo {
    width:var(--space-4xl);
    position: relative;
    top: 7px;
}

.pathway-header__branding {
    justify-content: center;
    gap: var(--space-xl)
}

.pathway-header--active {
    padding-bottom: 0;
}

.pathway-introduction__content{
    padding: var(--space-md)
}

.pathway-introduction__actions .continue, .continue, .option, .pathway-introduction__how-to  {
    flex: 1 0 100%;
    padding: var(--space-md);
    font-size: var(--text-lg);
    align-self: end;
    width: 100%;
    max-width: unset;
}

.journey-step.seen {
    padding: var(--space-lg) var(--space-md)
}

.page__curtain {
    /* display: none; */
    top: unset;
    bottom: 0px;
    height: 7rem;
    background: linear-gradient(180deg, rgba(241, 232, 227, 0) 0%,  var(--primary-light) 100%);
}

[data-tooltip]::before {
    max-width: 150px;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-md)
}

footer {
    width: 100vw;
    gap: var(--space-lg);
    padding: var(--space-xl);
    transform: translateX(100%);
    right: 0;
}

.option:after {
    top:unset;
    width:var(--space-xl);
    height: 3px;
    left: calc(-3px + var(--space-xl) * -1);
    transform: unset
}

.selected:before {
    display: none;
}

.option-multi > .option:last-child:before {
    content: '';
    display: block;
    height: 50%;
    background-color: var(--neutral-light);
    width: 6px;
    position: absolute;
    bottom: -1px;
    left: calc(var(
    --space-xl) * -1 - 6px);
}


#additional-info__mobile {
    position:fixed;
    bottom:var(--space-2xl);
    right:var(--space-2xl);
    background-image: url(https://www.victimscommissioner.qld.gov.au/pathways/sentencing/images/additional-info.svg);
    height: 3.75rem;
    width: 3.75rem;
    background-repeat: no-repeat;
    background-size:contain;
    border:  none;
    text-indent: -999em;
    background-color: transparent;
    filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .2));
    z-index: 9998;
    opacity: 0;
    transition: all .2s ease;
}
.pathway-header--active ~ #additional-info__mobile {
    opacity: 1;
    display: block;
}

 #additional-info__mobile.is-hidden {
    opacity:0; 
}


}