/* ========================
   Table of Contents:
   1. Variables
   2. Reset / Base
   3. Typography
   4. Layout / Sections
   5. Components
      5b. Custom KMR Stuff
   6. Utilities
   ======================== */

/* --- 1. VARIABLES --- */

:root {





    --spacing-base: 1rem;
    --container-max-width: 1024px;

    /* KMR Colours */
    --kmr-purple: rgb(35.7% 6.67% 42%);
    --kmr-off-white: rgb(97.3% 96.1% 93.7%);
    --kmr-black: rgb(0% 0% 0%);
    --kmr-red-100: rgb(100% 73.7% 63.1%);
    --kmr-red-300: rgb(96.9% 62% 44.3%);
    --kmr-red-500: rgb(92.2% 43.1% 14.5%);
    --kmr-red-700: rgb(77.6% 26.3% 3.53%);
    --kmr-red-900: rgb(48.6% 13.7% 0%);
    --kmr-purple-100: rgb(91% 80% 92.9%);
    --kmr-purple-300: rgb(86.7% 71% 88.6%);
    --kmr-purple-500: rgb(73.3% 47.5% 78.8%);
    --kmr-purple-700: rgb(49% 21.2% 53.7%);
    --kmr-purple-900: rgb(35.7% 6.67% 42%);
    --kmr-blue-100: rgb(71.8% 84.7% 95.3%);
    --kmr-blue-300: rgb(47.8% 72.5% 92.9%);
    --kmr-blue-500: rgb(23.8% 51.7% 79.6%);
    --kmr-blue-700: rgb(7.45% 35.7% 63.9%);
    --kmr-blue-900: rgb(0% 26.3% 43.9%);
    --kmr-green-100: rgb(59.4% 89.4% 70.4%);
    --kmr-green-300: rgb(40% 74.9% 51.8%);
    --kmr-green-500: rgb(18.4% 61.3% 34.2%);
    --kmr-green-700: rgb(10.6% 45.9% 23.5%);
    --kmr-green-900: rgb(0% 32.7% 11.1%);
    --kmr-pink-100: rgb(100% 76.1% 82.4%);
    --kmr-pink-300: rgb(97.6% 54.1% 65.5%);
    --kmr-pink-500: rgb(87.8% 29.8% 45.1%);
    --kmr-pink-700: rgb(71% 18.8% 30.2%);
    --kmr-pink-900: rgb(53.7% 6.27% 18.4%);

    /* Modern Color Palette */
    --kmr-brand: var(--kmr-purple-900);
    --kmr-brand-light: var(--kmr-purple-100);
    --kmr-orange-100: #FFF9F0;
    --kmr-yellow: #FEC000;

    --kmr-brand-rgb: 254, 106, 0;
    --kmr-yellow-rgb: 254, 192, 0;


    --body-bg: var(--kmr-off-white);
    --card-bg: var(--kmr-off-white);

    --body-color: black;
    --heading-color: black;

    --link-color: var(--kmr-purple-700);
    --link-hover-color: var(--kmr-purple-900);

    /* Typography */
    --font-family-sans: 'InclusiveSans', "DM Sans", 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-semibold: 600;
    --font-weight-extrabold: 800;
    --line-height-xs: 1;
    --line-height-sm: 1.2;
    --line-height-md: 1.4;

    --fs-50: 0.75rem;
    /* p extra-small 0.75rem */
    --fs-100: 0.875rem;
    /* p small 0.875rem */
    --fs-200: 1rem;
    /* base font size */
    --fs-300: 1.125rem;
    /* h6 1.125rem */
    --fs-400: 1.25rem;
    /* h5 1.25rem */
    --fs-500: 1.5rem;
    /* h4 1.5rem */
    --fs-600: 1.75rem;
    /* h3 1.75rem */
    --fs-700: 2.125rem;
    /* h2 2.25rem */
    --fs-800: 2.75rem;
    /* h1 2.75rem */
    --fs-900: 3rem;
    --fs-1000: 4rem;

    /* Gradients */
    --gradient-kmr-brand: linear-gradient(135deg, var(--kmr-purple-900) 0%, var(--kmr-purple-700) 100%);
    --gradient-kmr-brand-light: linear-gradient(135deg, var(--kmr-purple-100) 0%, var(--kmr-purple-300) 100%);
    --gradient-kmr-yellow-light: linear-gradient(to right, rgba(var(--kmr-yellow-rgb), 0.2) 0%, rgba(var(--kmr-yellow-rgb), 0.6) 100%);

    --gradient-kmr-purple: linear-gradient(to bottom, var(--kmr-purple-100), var(--kmr-off-white));
    --gradient-kmr-red: linear-gradient(to bottom, var(--kmr-red-100), var(--kmr-off-white));
    --gradient-kmr-pink: linear-gradient(to bottom, var(--kmr-pink-100), var(--kmr-off-white));
    --gradient-kmr-blue: linear-gradient(to bottom, var(--kmr-blue-100), var(--kmr-off-white));
    --gradient-kmr-green: linear-gradient(to bottom, var(--kmr-green-100), var(--kmr-off-white));
}

/* Resets */
hr {
    background: var(--kmr-purple-100);
    height: 2px;
}

/* --- MISC --- */


/* InclusiveSans */

@font-face {
    font-family: 'InclusiveSans';
    src: url('/fonts/InclusiveSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InclusiveSans';
    src: url('/fonts/InclusiveSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InclusiveSans';
    src: url('/fonts/InclusiveSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InclusiveSans';
    src: url('/fonts/InclusiveSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InclusiveSans';
    src: url('/fonts/InclusiveSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


::-moz-selection {
    /* Code for Firefox */
    color: var(--kmr-purple-100);
    background: var(--kmr-purple-900);
}

::selection {
    color: var(--kmr-purple-100);
    background: var(--kmr-purple-900);
}

/* ACCESSIBILITY */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: black;
    color: white;
    padding: 0.75rem 1rem;
    z-index: 100;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 88px;
    outline: 3px solid var(--kmr-purple-700);
    outline-offset: 2px;
}

/* Visually hidden utility class for screen reader only content */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--kmr-purple-700);
    outline-offset: 2px;
    border-radius: 2px;
}

a.btn:focus-visible,
button.btn:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

a.btn.kmr-primary:focus-visible,
button.kmr-primary:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

a.btn.kmr-primary-light:focus-visible,
button.kmr-primary-light:focus-visible {
    outline: 3px solid var(--kmr-purple-700);
    outline-offset: 2px;
}



/* --- 2. RESET / BASE --- */

/* Base styles */
body {
    padding: 0;
    max-width: none;
    margin: 0 auto;
    transition: none;
    animation: none;
    font-family: var(--font-family-sans), system-ui, sans-serif;
    font-feature-settings: "ss01" 1;
    font-variant-ligatures: common-ligatures;
}

/* Classless Button Reset */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    min-height: 2.5rem;
    font-weight: var(--font-weight-bold);
    padding: calc(var(--spacing-base) * 0.5) calc(var(--spacing-base) * 1.25);
}

.pushable {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 6px;
    /* a bit more breathing room */
    transition: transform 150ms, filter 250ms;
    font: inherit;
    /* keep typography consistent */
}

a.pushable-lg .front,
button.pushable-lg .front {
    padding: 12px 40px;
    font-size: 1.25rem;
}

a.pushable-secondary .front,
button.pushable-secondary .front {
    color: var(--kmr-brand);
    background: var(--kmr-purple-100);
}

a.pushable-secondary .edge,
button.pushable-secondary .edge {
    background: linear-gradient(to left,
            hsl(289deg 75% 66%) 0%,
            hsl(289deg 61% 75%) 8%,
            hsl(289deg 61% 75%) 92%,
            hsl(289deg 75% 66%) 100%)
}

a.pushable,
button.pushable {
    display: inline-block;
    /* anchors are inline by default */
    text-decoration: none;
    /* kill underline */
    color: inherit;
}

button.pushable {
    overflow: visible;
    /* override classless.css overflow:hidden so .front/.shadow transform isn't clipped */
}

a.pushable:not(nav a):before,
button.pushable:before {
    content: none;
}

.shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(to left,
            hsl(289deg 100% 16%) 0%,
            hsl(289deg 90% 25%) 8%,
            hsl(289deg 90% 25%) 92%,
            hsl(289deg 100% 16%) 100%);
}

.pushable:hover {
    filter: brightness(110%);
}

.pushable:hover .front {
    transform: translateY(-6px);
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .front {
    transform: translateY(-2px);
    transition: transform 34ms;
}

.pushable:hover .shadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

.pushable:focus:not(:focus-visible) {
    outline: none;
}






/* Explicit keyboard focus ring */
.pushable:focus-visible {
    outline: 3px solid currentColor;
    /* or a token colour */
    outline-offset: 6px;
    outline-offset: 6px 12px 6px 6px
}

/* Make the fill slightly darker than hsl(345 100% 47%) to clear 4.5:1 */
.front {
    display: block;
    position: relative;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 1.125rem;
    color: #fff;
    font-weight: var(--font-weight-semibold);
    background: var(--kmr-purple-700);
    /* darker than 47% */
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .pushable,
    .shadow,
    .front {
        transition: none !important;
    }
}

button.btn-lg,
a.btn-lg,
input[type="button"] .btn-lg,
input[type="reset"] .btn-lg,
input[type="submit"] .btn-lg {
    height: 3.5rem;
    font-size: var(--fs-400);
    line-height: 1.8;
}

a.btn-responsive {
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    a.btn-responsive {
        width: auto;
    }
}

/* Classless Images Reset */
img {
    border-radius: 0;
    transition: none;
    box-shadow: none;
}

img:hover {
    transform: none;
    box-shadow: none;
}

/* Classless Cards Reset */
article,
section,
aside {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    border: none;
}

article:hover,
section:hover,
aside:hover {
    box-shadow: none;
}

/* Inline Text Link Style */
a.link-text {
    color: var(--kmr-blue-700);
}

a.link-text:hover {
    color: var(--kmr-blue-900);
}

a.link-text:focus-visible {
    outline: 3px solid var(--kmr-blue-700);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Suppress external link arrow indicator for inline text links */
a[target="_blank"]::after {
    content: none;
    display: none;
}

a.link-text[target="_blank"]::after {
    content: "↗";
    display: inline-block;
    margin-left: 0.25em;
    font-size: 0.8em;
    font-weight: var(--font-weight-semibold);
    vertical-align: super;
}





/* --- 3. TYPOGRAPHY --- */

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0;
    font-weight: var(--font-weight-extrabold);
}

h1 {
    font-size: var(--fs-800);
}

:where(h1) {
    font-size: var(--fs-800);
}

h2 {
    font-size: var(--fs-700);
}

h3 {
    font-size: var(--fs-600);
}

h4 {
    font-size: var(--fs-500);
}

.f-1000 {
    font-size: var(--fs-1000);
}

.f-900 {
    font-size: var(--fs-900);
}

.f-800,
.f-h1 {
    font-size: var(--fs-800);
}

.f-700,
.f-h2 {
    font-size: var(--fs-700);
}

.f-600,
.f-h3 {
    font-size: var(--fs-600);
}

.f-500,
.f-h4 {
    font-size: var(--fs-500);
}

.f-400,
.f-h5 {
    font-size: var(--fs-400);
}

.f-300,
.f-h6 {
    font-size: var(--fs-300);
}

.f-200 {
    font-size: var(--fs-200);
}

.f-100 {
    font-size: var(--fs-100);
}

.f-50 {
    font-size: var(--fs-50);
}

h2:after {
    background: transparent;
}

p {
    letter-spacing: 0.015em;
}




/* --- 4. LAYOUT / SECTIONS --- */

/* LAYOUT CLASSES */



/* HOME PAGE */

.kmr-hero-logo {
    max-width: 28rem;
    margin-top: 2rem;
}

.kmr-hero-mnemonic {
    max-width: 28rem;
    margin-bottom: 2rem;
}

.kmr-hero-logo,
.kmr-hero-mnemonic {
    width: 100%;
}

/* MNEMONIC */

.kmr-mnemonic-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.kmr-mnemonic-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    text-align: left;
    width: 100%;
}

.kmr-mnemonic-item img {
    max-height: 10rem;
}

@media (min-width: 768px) {
    .kmr-mnemonic-wrapper {
        flex-direction: row;
    }

    .kmr-mnemonic-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ACKNOWLEDGEMENTS */

.kmr-acknowledgements-logo {
    max-height: 4rem;
    width: auto;
}

@media (min-width: 768px) {
    .kmr-acknowledgements-logo {
        max-height: 6rem;
    }
}

/* LEARNING EXPERIENCE */

.kmr-learning-experience-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kmr-learning-experience-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    text-align: left;
    gap: 1.5rem;
}

.kmr-learning-experience-item img {
    max-height: 5rem;
}

/* AUDIENCE CARDS */

.audience-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audience-cards li {
    list-style: none;
    margin: 0;
    flex: 1;
}

ul.audience-cards {
    padding: 0;
}

.audience-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 1.5rem;
    border: 2px solid var(--kmr-purple-300);
    padding: 1rem 1rem 0 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audience-card::before {
    content: none;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--kmr-purple-500);
    text-decoration: none;
}

.audience-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.audience-card>*:first-child {
    margin-top: 0;
}

.audience-card h3 {
    font-size: var(--fs-300);
    text-align: left;
    text-wrap: balance;
    line-height: var(--line-height-md);
}

.audience-card-img {
    max-height: 8rem;
}

#main-content {
    min-height: calc(100dvh - 5rem);
}

@media (min-width: 1024px) {

    .audience-cards {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: auto 1fr;
        /* row 1 = h3, row 2 = image */
        grid-auto-flow: column;
    }

    .audience-cards li {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
    }

    .audience-card {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
        justify-content: center;
    }

    .audience-card h3 {
        align-self: center;
        text-align: center;
        line-height: var(--line-height-sm);
    }

    .audience-card-img {
        max-height: 12rem;
        align-self: end;
        justify-self: center;
    }
}


/* SECTIONS */

.kmr-section {
    padding: 2rem 1rem;
    display: grid;
    place-items: center;
}

.kmr-section-padding-small {
    padding: 1.75rem 1rem;
}

@media (min-width: 768px) {
    .kmr-section {
        padding: 4rem 1rem;

    }

    .kmr-section-padding-small {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .kmr-section {
        padding: 6rem 1.5rem;

    }

    .kmr-section-padding-small {
        padding: 3rem;
    }
}

.kmr-section .kmr-container {
    padding: 0;
    max-width: var(--container-max-width);
    width: 100%;
}

.kmr-section .kmr-container.kmr-container-wide {
    padding: 0;
    max-width: 90rem;
    width: 100%;
}

.kmr-section .kmr-container.kmr-container-center {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kmr-section.kmr-section-hero {
    background: var(--gradient-kmr-purple);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.kmr-section.kmr-section-hero-center {
    display: flex;
    min-height: calc(100dvh - 8.75rem);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kmr-section.kmr-section-participant {
    background: var(--gradient-kmr-red);
}

.kmr-section.kmr-section-provider {
    background: var(--gradient-kmr-purple);
}

.kmr-section.kmr-section-carer {
    background: var(--gradient-kmr-pink);
}

.kmr-section.kmr-section-healthcare {
    background: var(--gradient-kmr-blue);
}

.kmr-section.kmr-section-intellectual-disability {
    background: var(--gradient-kmr-green);
}

.kmr-section-gradient {
    background: radial-gradient(85.07% 69.88% at 86.46% 0%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.00) 100%), radial-gradient(46.58% 28.41% at 56.15% 0%, rgba(255, 216, 132, 0.20) 0%, rgba(255, 216, 132, 0.00) 100%), radial-gradient(91.88% 76.75% at 12.08% -31.48%, rgba(255, 154, 164, 0.20) 0%, rgba(255, 154, 164, 0.00) 100%), radial-gradient(101.58% 86.86% at 0% 100%, rgba(255, 191, 154, 0.30) 0%, rgba(255, 191, 154, 0.00) 100%), radial-gradient(138.08% 79.26% at 100% 100%, rgba(255, 210, 154, 0.20) 0%, rgba(255, 210, 154, 0.00) 100%), linear-gradient(180deg, rgba(255, 242, 232, 0.00) 53.26%, #FFECDB 100%), linear-gradient(180deg, rgba(255, 242, 232, 0.00) 0%, #FFF2E8 100%), linear-gradient(0deg, #FFF8E8 0%, #FFF8E8 100%), #FFF;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.kmr-prelaunch-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.kmr-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.kmr-back-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.kmr-module-hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
}

/* Share control in top-right of hero (focus order: Back → Share → h1); in-flow so no overlap */
.kmr-module-hero-share {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    grid-column: 1;
    grid-row: 1;
}

.kmr-module-hero-share .kmr-share-btn {
    min-width: 44px;
    min-height: 44px;
}

.kmr-module-hero-share .kmr-share-status {
    margin-left: 0;
    text-align: right;
}

.kmr-module-hero-content {
    width: 100%;
    grid-column: 1;
    grid-row: 2;
}

.kmr-module-card-thumbnail {
    grid-column: 1;
    grid-row: 3;
}

.kmr-module-hero-content h1 {
    margin-top: 0;
}

.kmr-module-duration {
    margin: 0;
}

.kmr-module-cta-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* Share button styling */
button.kmr-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.kmr-share-btn.pushable {
    display: inline-block;
    box-shadow: none;
    overflow: visible;
}

button.pushable:hover,
button.pushable:focus {
    box-shadow: none;
}

/* Share status text */
.kmr-share-status {
    font-size: var(--fs-100);
    color: var(--kmr-purple-700);
    min-height: 1.5em;
    display: inline-block;
}

.kmr-module-cta-buttons .kmr-share-status {
    margin-left: 0.5rem;
}

.kmr-share-status:empty {
    display: none;
}

@media (min-width: 1024px) {
    .kmr-module-hero {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .kmr-module-hero-share {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .kmr-module-hero-content {
        grid-column: 1;
        grid-row: 2;
    }

    .kmr-module-card-thumbnail {
        grid-column: 2;
        grid-row: 2;
    }
}

.kmr-about-hero-img {
    max-width: 16rem;
    width: 100%;
    height: auto;
}

@media (min-width: 1024px) {

    .kmr-section.kmr-section-hero {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .kmr-prelaunch-hero {
        flex-direction: row-reverse;
        gap: 4rem;
    }

    .kmr-about-hero-img {
        max-width: 20rem;
    }
}



/* --- 5. COMPONENTS --- */

/* KMR Buttons */

button.kmr-primary,
input[type="button"].kmr-primary,
input[type="submit"].kmr-primary {
    background: var(--gradient-kmr-brand);
}

button.kmr-primary-light,
input[type="button"].kmr-primary-light,
input[type="submit"].kmr-primary-light {
    background: var(--gradient-kmr-brand-light);
    color: var(--kmr-brand);
    border: rgba(var(--kmr-brand-rgb), 0.3) 2px solid;

}

/* Added Button Link Style */

a.btn {
    vertical-align: middle;
    min-height: 2.5rem;
    min-width: 6.5rem;
    padding: calc(var(--spacing-base) * 0.5) calc(var(--spacing-base) * 1.5);
    margin: 0.125rem 0.125rem 0.125rem 0;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}



a.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: var(--transition-base);
}

a.btn:hover:after {
    background-color: rgba(255, 255, 255, 0.1);
}

a.btn:hover {
    box-shadow: var(--shadow-md);
}

a.btn.kmr-primary {
    background: var(--gradient-kmr-brand);
    color: white;
    border: none;
    border: var(--kmr-purple-500) 4px solid;
    border-top: none;
    border-left: none;
}

a.btn.kmr-primary-light {
    background: var(--gradient-kmr-brand-light);
    color: var(--kmr-brand);
    border: var(--kmr-purple-300) 2px solid;
}

a.btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a.btn.kmr-btn-ausmed {
    background: linear-gradient(300deg, #D70E4B 0%, #B20C3E 100%);
    border: #FA888E 4px solid;
    border-top: none;
    border-left: none;
}

/* HUBSPOT FORM */

.hsfc-Step .hsfc-Step__Content {
    padding: 0 !important;
}

/* Header / Navigation */

.topnav {
    overflow: visible;
    background-color: var(--kmr-off-white);
    height: 5rem;
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 1rem;
    border-bottom: 2px solid var(--kmr-purple-100);
}

.topnav-wrapper {
    max-width: var(--container-max-width);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topnav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kmr-nav-logo {
    line-height: 0;
}

.nav-items {
    display: flex;
    gap: 0.5rem;
}

.topnav .nav-items a {
    color: var(--kmr-purple-700);
    text-align: center;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 1rem;
    height: 40px;
    border-radius: 99rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
}

.topnav .nav-items a:hover {
    background-color: var(--kmr-purple-100);
    color: var(--kmr-purple-900);
}

.topnav .nav-items a.active,
.topnav .nav-items button.active {
    background-color: var(--kmr-purple-100);
    color: var(--kmr-purple-900);
    gap: 0.5rem;
}

.nav-item-dropdown {
    position: relative;
    display: inline-block;
}


/* Mobile hamburger nav */

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1100;
    color: var(--kmr-purple-700);
}

.nav-toggle:hover {
    color: var(--kmr-purple-900);
}

.hamburger {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cta-buttons {
    display: flex;
    width: auto;
}

.kmr-nav-logo-full {
    margin-top: 0.25rem;
    display: block;
    max-width: 180px;
}

.kmr-nav-logo-mark {
    display: none;
}

@media (max-width: 960px) {

    .cta-buttons {
        width: 100%;
        justify-content: end;
    }

    .kmr-nav-logo-full {
        max-width: 10rem;
        display: none;
    }

    .kmr-nav-logo-mark {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
        max-width: 5rem;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        height: 40px;
        min-width: 40px;
        padding: 0.5rem;
        margin: 0;
    }

    .topnav-actions {
        margin-left: auto;
    }

    .nav-items {
        flex-direction: column;
        gap: 1rem;
        background: var(--kmr-off-white);
        padding: 1rem;
        position: absolute;
        top: 5rem;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 8px 12px rgba(0,0,0,0.08);
        border-bottom: 2px solid var(--kmr-purple-100);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .nav-items.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .topnav .nav-items a {
        font-size: 1rem;
        justify-content: center;
        width: 100%;
    }

}

.hamburger rect {
    transition: transform 0.3s ease, opacity 0.3s ease, rotate 0.3s ease;
    transform-origin: center;
}

.hamburger.open rect:nth-child(1) {
    transform-origin: 12px 4px;
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open rect:nth-child(2) {
    opacity: 0;
    transform: scale(-0.5, 1);
    transform-origin: center;
    rotate: 180deg;
}

.hamburger.open rect:nth-child(3) {
    transform-origin: 12px 20px;
    transform: translateY(-8px) rotate(-45deg);
}





/* --- CUSTOM KMR STUFF --- */

.brand-outline-light {
    border: rgba(var(--kmr-brand-rgb), 0.3) 2px solid;
}

/* Home */
.kmr-logomark-hero {
    position: absolute;
    bottom: 0;
    right: 3%;
    height: 90%;
    width: auto;
    mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.kmr-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem 3rem;
}

.kmr-logos .ia-logo {
    max-width: 7rem;
    width: 100%;
}

.kmr-logos .ndis-logo {
    max-width: 26rem;
    width: 100%;
}

.kmr-logos .ausmed-logo {
    max-width: 14rem;
    width: 100%;
}

.kmr-logos a[target="_blank"]:after {
    content: '';
    display: none;
    width: 100%;
    height: 100%;
}

.kmr-hero-img {
    display: none;
}

@media (min-width: 768px) {
    .kmr-hero-img {
        display: block;
        position: absolute;
        bottom: 0;
        right: 5%;
        height: 80%;
        width: auto;
    }
}

.home-hero-h1 {
    max-width: 13ch;
    text-wrap: balance;
}

.value-prop-wrapper {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-inline: auto;
    max-width: 1200px;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .value-prop-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .value-prop-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* .value-prop-img {
    aspect-ratio: 1/1;
    width: 4rem;
    background: var(--gradient-kmr-brand);
    border-radius: var(--border-radius-lg);
    margin: auto;
} */

svg.value-prop-img {
    aspect-ratio: 1/1;
    width: 4rem;
    stroke: var(--kmr-brand);
    border-radius: var(--border-radius-lg);
    margin: auto;
}

.value-prop-copy {
    font-weight: var(--font-weight-medium);
    text-wrap: balance;
    line-height: var(--line-height-md);
    text-align: center;
}

.value-prop-access-wrapper {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-inline: auto;
    max-width: 1200px;
    padding: 3rem 0;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .value-prop-access-wrapper {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .value-prop-access-wrapper {
        justify-content: center;
    }
}

.value-prop-access-container {
    text-align: center;
    max-width: 18rem;
}

.value-prop-access-img {
    aspect-ratio: 1/1;
    width: 100%;
    background: var(--gradient-kmr-yellow-light);
    border-radius: var(--border-radius-xl);
    margin: auto;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.kmr-home-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}

.kmr-section .kmr-alert-light {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background-color: var(--kmr-orange-100);
}

.kmr-badge-light {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    background-color: var(--kmr-off-white);
    border: var(--kmr-purple-300) 2px solid;
    color: var(--kmr-purple-900);
    margin-left: -0.5rem;
    width: max-content;
    transition: margin-left 0.3s ease;
}

@media (min-width: 1024px) {
    .kmr-badge-light {
        margin-left: -1.5rem;
    }
}

.kmr-section .kmr-alert-dark {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background-color: var(--kmr-purple-900);
    color: var(--kmr-off-white);
    border: var(--kmr-purple-300) 2px solid;
    border-radius: 2rem;
    padding: 1.5rem;
}

.kmr-section .kmr-alert-dark h2,
.kmr-section .kmr-alert-dark p {
    color: var(--kmr-off-white);
}

.kmr-section .kmr-alert-light>*:first-child,
.kmr-section .kmr-alert-dark>*:first-child {
    margin-top: 0;
}

.kmr-section .kmr-container>h1:first-child,
.kmr-section .kmr-container>h2:first-child,
.kmr-section .kmr-container>h3:first-child,
.kmr-section .kmr-container>h4:first-child,
.kmr-section .kmr-container>h5:first-child,
.kmr-section .kmr-container>h6:first-child,
.kmr-section .kmr-container>p:first-child {
    margin-top: 0;
}

.kmr-section .kmr-container>h1:last-child,
.kmr-section .kmr-container>h2:last-child,
.kmr-section .kmr-container>h3:last-child,
.kmr-section .kmr-container>h4:last-child,
.kmr-section .kmr-container>h5:last-child,
.kmr-section .kmr-container>h6:last-child,
.kmr-section .kmr-container>p:last-child {
    margin-bottom: 0;
}

/* Learning Topics */

.kmr-standard-h2:has(+ p) {
    margin-bottom: 0;
}

#standard-1>.kmr-standard-h2 {
    margin-top: 0;
}

.kmr-resource-cards-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.kmr-resource-card {
    padding: calc(var(--spacing-base) * 0.5);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--light);
    align-items: center;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    background: white;
}

a.kmr-resource-card[target="_blank"]:after {
    font-size: 1em;
}

.kmr-resource-thumbnail {
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 1;
    height: 3rem;
    width: 3rem;
    border-radius: var(--border-radius);
    background: var(--kmr-purple-100);
    display: grid;
    place-items: center;
    color: var(--kmr-purple-900);
}

.kmr-resource-thumbnail img {
    color: var(--kmr-purple-700);
}

.kmr-resource-thumbnail-sm {
    height: 2rem;
    border-radius: var(--border-radius);
}

.kmr-resource-info>* {
    display: inline;
    alignment-baseline: baseline;
}

.kmr-resource-info {
    line-height: 1.2;
}

.kmr-resource-card .kmr-resource-title {
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    font-size: var(--fs-200);
    padding-right: 0.5rem;
}

.kmr-resource-info p {
    font-weight: var(--font-weight-normal);
    color: var(--secondary);
    font-size: var(--fs-200);
}

.kmr-learning-topics-wrapper {
    display: flex;
    gap: 3rem;
}

.kmr-standard-wrapper {
    margin-left: 2rem;
}

.kmr-learning-topics-container {
    flex-grow: 1;
}

.kmr-learning-topics-scrollspy {
    position: sticky;
    display: block;
    top: 5rem;
    height: min-content;
}

.kmr-learning-topics-scrollspy>* {
    display: block;
}

.kmr-scrollspy-link {
    margin-bottom: 0.5rem;
}

[id^="standard-"] {
    scroll-margin-top: 6rem;
    /* Adjust based on your sticky nav height */
}

/* Contact Us */

.form-grid-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-layout {
        grid-template-columns: repeat(2, 1fr);

    }
}

.placeholder-img-section {
    border-radius: var(--border-radius-xl);
    background: var(--gradient-kmr-yellow-light);
}


/* Footer CTA */

.kmr-footer-cta-img {
    max-width: 8rem;
}

.kmr-alert-img-scorm {
    max-width: 14rem;
}

.kmr-alert-img-calendar {
    max-width: 8rem;
}

@media (min-width: 768px) {
    .kmr-footer-cta-img {
        max-width: 12rem;
        margin-inline: 2rem;
    }

    .kmr-alert-img-scorm {
        max-width: 16rem;
        margin-inline: 2rem;
    }

    .kmr-alert-img-calendar {
        max-width: 12rem;
        margin-inline: 2rem;
    }
}


/* LMS host-in-your-lms info blocks: section + image side-by-side on desktop, stacked on mobile */

.kmr-lms-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kmr-lms-info-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    background: white;
    border: 2px solid var(--kmr-purple-100);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .kmr-lms-info-block {
        padding: 2.5rem;
    }
}

.kmr-lms-info-block-content {
    flex: 1;
    min-width: 0;
}

.kmr-lms-info-block-content h2:first-child {
    margin-top: 0;
}

.kmr-lms-info-block-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kmr-lms-info-block-img img {
    width: 100%;
    max-width: 20rem;
    height: auto;
    object-fit: contain;
}

/* Two-column layout (no image): 50/50 on desktop, stacked on mobile */
.kmr-lms-info-block-two-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.kmr-lms-info-block-col {
    min-width: 0;
}

.kmr-lms-info-block-col h2:first-child,
.kmr-lms-info-block-col h3:first-child {
    margin-top: 0;
}

@media (min-width: 768px) {
    .kmr-lms-info-block-two-col {
        flex-direction: row;
        gap: 3rem;
    }

    .kmr-lms-info-block-col {
        flex: 1 1 50%;
    }
}

@media (min-width: 768px) {
    .kmr-lms-info-block:not(.kmr-lms-info-block-two-col-only) {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .kmr-lms-info-block-img {
        flex: 0 0 min(40%, 18rem);
    }

    .kmr-lms-info-block-img img {
        max-width: 100%;
    }
}


/* Footer */

.kmr-section-footer {
    background: var(--kmr-purple-100);
    border-radius: 4rem 4rem 0 0;
    padding: 3rem;
}

.footer-links-wrapper {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-inline: auto;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-links-wrapper {
        grid-template-columns: repeat(2, 1fr);

    }
}

@media (min-width: 1024px) {
    .footer-links-wrapper {
        grid-template-columns: repeat(4, 1fr);
        padding: 6rem 0;
    }
}

.social-logo-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-logo-wrapper a {
    color: transparent;
    text-decoration: none;
    transition: none;
    position: relative;
    height: min-content;
    line-height: 0;
}

.social-logo-wrapper a:hover {
    color: transparent;
}

.social-logo-wrapper a:before {
    content: none;
}

.social-logo-wrapper a:hover:before {
    transform: none;
}




/* --- 6. UTILITIES --- */

/* Typography */

.text-wrap-balance {
    text-wrap: balance;
}

.text-center {
    text-align: center;
}

.max-ch {
    max-width: 65ch;
}

/* Font Weight */

.fw-light {
    font-weight: var(--font-weight-light);
}


.fw-normal {
    font-weight: var(--font-weight-normal);
}

.fw-medium {
    font-weight: var(--font-weight-medium);
}

.fw-semibold {
    font-weight: var(--font-weight-semibold);
}

.fw-bold {
    font-weight: var(--font-weight-bold);
}

/* Font Color */
.text-muted {
    color: var(--secondary);
}

.text-brand {
    color: var(--kmr-purple);
}

/* Line Height */

.lh-xs {
    line-height: var(--line-height-xs);
}

.lh-md {
    line-height: var(--line-height-md);
}

.lh-rg {
    line-height: var(--line-height-lg);
}

.lh-lg {
    line-height: var(--line-height-base);
}






/* Display */

.d-flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.d-block {
    display: block;
}

.position-relative {
    position: relative;
}

/* Margins */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-6 {
    margin-top: 4rem;
}

/* Padding */

.pb-0 {
    padding-bottom: 0;
}

/* Colours */
.bg-kmr-orange-100 {
    background-color: var(--kmr-orange-100);
}


.kmr-section .kmr-ausmed-section {
    background: radial-gradient(53.01% 204.37% at 50% 204.37%, var(--Product-Navy-800, #0E3789) 0%, #001540 100%);
    padding: 2rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .kmr-section .kmr-ausmed-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.kmr-ausmed-section div {
    color: white;
}

.kmr-ausmed-section div h2 {
    margin-top: 0;
}

.kmr-ausmed-section h2 {
    color: white;
}

.kmr-ausmed-section img {
    max-width: 16rem;
}

.kmr-section .kmr-footer-cta {
    background: var(--gradient-kmr-purple);
    padding: 2rem;
    border-radius: 2rem;
    border: var(--kmr-purple-100) 2px solid;
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    text-wrap: balance;
}

.kmr-section .kmr-footer-cta div *:first-child {
    margin-top: 0;
}

.kmr-section .kmr-footer-cta div *:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .kmr-section .kmr-footer-cta {
        flex-direction: row;
        text-align: left;
    }
}

/* Modules */
.kmr-module-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--kmr-off-white);
    border: 2px solid var(--kmr-purple-300);
    border-bottom: 4px solid var(--kmr-purple-300);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
}

.kmr-module-card:first-child {
    margin-top: 0;
}

.kmr-module-card:last-child {
    margin-bottom: 0;
}

.kmr-module-card h2 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: var(--fs-500);
}

.kmr-module-card p {
    margin-bottom: 0;
    margin-top: 0;
}

.kmr-module-card-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.kmr-module-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kmr-module-card-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.kmr-module-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}


.kmr-module-card-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    max-width: 8rem;
    border: 2px solid var(--kmr-purple-500);
}

@media (min-width: 768px) {
    .kmr-module-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .kmr-module-card-thumbnail {
        max-width: 12rem;
    }

    .kmr-module-card-content-wrapper {
        flex-direction: column;
    }
}


.kmr-module-card-buttons {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* When wrapped (small screens): buttons stretch to fill card width */
.kmr-module-card-buttons > a {
    flex: 1 1 100%;
    min-width: 0;
}

/* Center button labels (fixes left-aligned text when Start button stretches) */
.kmr-module-card-buttons .pushable .front {
    text-align: center;
}

/* When horizontal (enough space): Start button grows, About stays natural width */
@media (min-width: 30rem) {
    .kmr-module-card-buttons > a {
        flex: 0 1 auto;
    }

    .kmr-module-card-buttons > a:first-child {
        flex-grow: 1;
    }
}

/* Cohort badges */

.badge {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: var(--fs-100);
    font-weight: var(--font-weight-bold);
    width: max-content;
}

.badge-lg {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: var(--fs-200);
}

.badge-participant {
    background-color: var(--kmr-red-100);
    color: var(--kmr-red-900);
}

.badge-provider {
    background-color: var(--kmr-purple-100);
    color: var(--kmr-purple-700);
}

.badge-carer {
    background-color: var(--kmr-pink-100);
    color: var(--kmr-pink-900);
}

.badge-healthcare {
    background-color: var(--kmr-blue-100);
    color: var(--kmr-blue-900);
}

.badge-intellectual-disability {
    background-color: var(--kmr-green-100);
    color: var(--kmr-green-900);
}

/* FAQs */

.kmr-faq-container {
    background-color: var(--kmr-purple-900);
    color: var(--kmr-off-white);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 0.75rem;
}

.kmr-faq-container h3 {
    color: var(--kmr-off-white);
    font-size: var(--fs-400);
}

.kmr-faq-container> :first-child {
    margin-top: 0;
}

.kmr-faq-container> :last-child {
    margin-bottom: 0;
}

/* Footer */

.kmr-footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kmr-footer-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: baseline;
}

.kmr-footer-links a {
    height: min-content;
}

@media (min-width: 768px) {
    .kmr-footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .kmr-footer-links {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Footer Top Layout (3-column: brand + 2 navs) */
.kmr-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.kmr-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kmr-footer-brand .lottie {
    width: 256px;
    aspect-ratio: 840 / 500;
    height: auto;
}

.kmr-footer-brand a {
    text-wrap: nowrap;
}

.kmr-footer-top-navs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.kmr-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kmr-footer-nav h3 {
    margin: 0 0 0.5rem 0;
}

.kmr-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kmr-footer-nav li {
    margin: 0;
}

.kmr-footer-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--kmr-purple-900);
    min-height: 1.75rem;
    gap: 0.75rem;
}

.kmr-footer-nav-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    object-fit: contain;
}

.kmr-footer-nav a:hover {
    text-decoration: underline;
}

/* Footer Bottom (copyright + policy links) */
.kmr-footer-bottom {
    border-top: 2px solid var(--kmr-purple-300);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    align-items: baseline;
}

.kmr-footer-bottom .kmr-footer-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    /* width: 100%; */
}

.kmr-footer-bottom .kmr-footer-links a {
    display: block;
    /* padding: 0.5rem 0; */
    /* min-height: 2.5rem; */
    display: flex;
    align-items: center;
}

/* Medium screens: nav groups side by side */
@media (min-width: 640px) {
    .kmr-footer-top {
        gap: 2.5rem;
    }

    .kmr-footer-top-navs {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Large screens: brand + 2 navs horizontally */
@media (min-width: 1024px) {
    .kmr-footer-top {
        grid-template-columns: 1fr auto auto;
        gap: 3rem;
        align-items: start;
    }

    .kmr-footer-top-navs {
        display: contents;
    }

    .kmr-footer-brand {
        max-width: 100%;
    }

    .kmr-footer-nav {
        min-width: 150px;
    }

    .kmr-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 2rem;
    }

    .kmr-footer-bottom .kmr-footer-links {
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
    }

    .kmr-footer-bottom .kmr-footer-links a {
        display: inline;
        padding: 0;
        min-height: auto;
    }
}

/* ========================
   Journey Layout
   ======================== */

/* Main journey container - two column layout on desktop */
.kmr-journey-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: var(--container-max-width);
    width: 100%;
}

@media (min-width: 768px) {
    .kmr-journey-container {
        flex-direction: row;
        gap: 3rem;
        align-items: flex-start;
    }
}

/* Left column - the pathway with steps */
.kmr-journey-pathway {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Right column - character illustration */
.kmr-journey-character {
    display: none;
}

@media (min-width: 768px) {
    .kmr-journey-character {
        display: block;
        flex: 0 0 14rem;
    }

    .kmr-journey-character img {
        width: 100%;
        height: auto;
        max-width: 14rem;
    }
}

@media (min-width: 1024px) {
    .kmr-journey-character {
        flex: 0 0 18rem;
    }

    .kmr-journey-character img {
        max-width: 18rem;
    }
}

/* Individual journey step */
.kmr-journey-step {
    display: flex;
    gap: 1rem;
    position: relative;
}

/* Step indicator column (number + line) */
.kmr-journey-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 3rem;
}

/* The numbered circle */
.kmr-journey-step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-extrabold);
    font-size: var(--fs-500);
    background: var(--kmr-purple-900);
    color: white;
    flex-shrink: 0;
    z-index: 1;
}

/* Connecting line between steps */
.kmr-journey-step-line {
    width: 4px;
    flex: 1;
    background: var(--kmr-purple-300);
    min-height: 2rem;
}

/* Hide line on last step */
.kmr-journey-step:last-child .kmr-journey-step-line {
    display: none;
}

/* Step content card */
.kmr-journey-step-content {
    flex: 1;
    background: white;
    border: 2px solid var(--kmr-purple-300);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kmr-journey-step-content:hover {
    border-color: var(--kmr-purple-500);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kmr-journey-step-content h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: var(--fs-500);
    color: var(--kmr-purple-900);
}

.kmr-journey-step-content p {
    margin: 0;
    color: var(--kmr-purple-700);
}

.kmr-journey-step-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.kmr-journey-step-duration {
    font-size: var(--fs-100);
    color: var(--kmr-purple-700);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.kmr-journey-step-duration svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: currentColor;
}

.kmr-journey-step-cta {
    margin-top: 1rem;
}

/* Journey intro/header section */
.kmr-journey-header {
    text-align: center;
    margin-bottom: 2rem;
}

.kmr-journey-header h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.kmr-journey-header p {
    margin: 0;
    font-size: var(--fs-400);
    /* color: var(--kmr-purple-700); */
}

/* Mobile: show character at top */
.kmr-journey-character-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.kmr-journey-character-mobile img {
    max-width: 10rem;
    height: auto;
}

@media (min-width: 768px) {
    .kmr-journey-character-mobile {
        display: none;
    }
}

/* Step state variations */
.kmr-journey-step--completed .kmr-journey-step-number {
    background: var(--kmr-green-500);
}

.kmr-journey-step--completed .kmr-journey-step-line {
    background: var(--kmr-green-300);
}

/* Cohort-specific step number colors */
.kmr-journey-step--participant .kmr-journey-step-number {
    background: var(--kmr-red-500);
}

.kmr-journey-step--participant .kmr-journey-step-line {
    background: var(--kmr-red-300);
}

.kmr-journey-step--provider .kmr-journey-step-number {
    background: var(--kmr-purple-700);
}

.kmr-journey-step--provider .kmr-journey-step-line {
    background: var(--kmr-purple-300);
}

.kmr-journey-step--healthcare .kmr-journey-step-number {
    background: var(--kmr-blue-500);
}

.kmr-journey-step--healthcare .kmr-journey-step-line {
    background: var(--kmr-blue-300);
}

.kmr-journey-step--carer .kmr-journey-step-number {
    background: var(--kmr-pink-500);
}

.kmr-journey-step--carer .kmr-journey-step-line {
    background: var(--kmr-pink-300);
}

.kmr-journey-step--intellectual .kmr-journey-step-number {
    background: var(--kmr-green-500);
}

.kmr-journey-step--intellectual .kmr-journey-step-line {
    background: var(--kmr-green-300);
}

/* Provider Training Compliance & Quality Mapping */
.kmr-provider-map {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kmr-provider-info-module-card {
    background: white;
    border: 2px solid var(--kmr-purple-100);
    border-radius: 1.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kmr-module-card-title {
    font-size: var(--fs-500);
    font-weight: var(--font-weight-semibold);
    color: var(--kmr-purple-900);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--kmr-purple-100);
}

.kmr-objective-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kmr-objective {
    background: white;
    border: 2px solid var(--kmr-purple-100);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kmr-objective-title {
    font-size: var(--fs-400);
    font-weight: var(--font-weight-semibold);
    color: var(--kmr-purple-900);
    margin: 0;
}

.kmr-objective-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kmr-objective-why {
    font-size: var(--fs-200);
    line-height: var(--line-height-md);
    color: var(--body-color);
    margin: 0;
}

.kmr-objective-why strong {
    color: var(--kmr-purple-700);
    font-weight: var(--font-weight-semibold);
}

.kmr-objective-supports {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.kmr-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--kmr-purple-100);
    color: var(--kmr-purple-700);
    border-radius: 0.5rem;
    font-size: var(--fs-100);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .kmr-provider-map {
        gap: 2rem;
    }

    .kmr-module-card {
        padding: 2rem;
    }

    .kmr-objective {
        padding: 1.5rem;
    }

    .kmr-objective-content {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1.5rem;
        align-items: start;
    }

    .kmr-objective-supports {
        justify-content: flex-end;
        min-width: fit-content;
    }
}

@media (max-width: 767px) {
    .kmr-module-card {
        padding: 1.25rem;
    }

    .kmr-objective {
        padding: 1rem;
    }

    .kmr-objective-title {
        font-size: var(--fs-300);
    }
}