

/* CSS reset */
/* Box sizing rules */
/*
--TODO: disabled as this affects the article automatic layout
*,
*::before,
*::after {
box-sizing: border-box;
}*/

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    margin: 0;
    padding: 0;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block: 0;
}

dt {
    margin-bottom: 1rem;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

ul > li > strong {
    color: var(--color-motion-orange);
}

/* Set core body defaults */
body {
    font-family: "Montserrat",'Open Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    line-height: 1.8;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    text-decoration: none;
    color: currentColor;
}


/* Make images easier to work with */
img {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font-family: inherit;
    font-size: inherit;
}

    /* Make sure textareas without a rows attribute are not tiny */
    textarea:not([rows]) {
        min-height: 10em;
    }

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}


/*************************************/
/* Styles below this */
/*************************************/

html {
    background-color: light-dark(var(--color-light), var(--color-dark)) !important;
    color: light-dark(var(--color-motion-grey), var(--color-light));
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

footer,
header,
main,
nav {
    display: block;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: "Montserrat",'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.8;
    font-size: var(--s1);
    background: radial-gradient(circle at 80% 50%, rgba(0, 128, 145, 0.3), transparent 30%), radial-gradient(circle at 10% 30%, rgba(250, 105, 20, 0.3), transparent 28%), linear-gradient(180deg, light-dark(var(--color-light), var(--color-dark)) 0%, light-dark(var(--color-light), var(--color-dark)) 100%);
    /*    background-image: url('../images/MA_Site_BG.svg');
    background-repeat: repeat-y;
    background-size: contain;
    background-position: center center;*/
}

.container {
    -webkit-backdrop-filter: blur(250px);
    backdrop-filter: blur(250px);
}

hero + section {
    display: inline;
}

    hero + section div:first-child {
        margin-top: 2vh;
    }

    hero + section article:first-child {
        margin-block-start: 10vh;
    }

section {
    margin: 0 auto;
    margin-block: 2vh; /* var(--s5); */
}

    section.markets {
        margin-block: 0;
    }

    section.metrics {
        background-size: cover;
        background-repeat: no-repeat;
        background-blend-mode: overlay;
        background-position: center center;
        background-attachment: fixed;
        padding-block: 20vh;
        margin-block: 10vh;
    }

.dark-bg {
    background-color: var(--color-motion-grey);
}

li p {
    margin-block: auto;
}

p {
    color: light-dark(var(--color-motion-grey), var(--color-light));
    max-width: var(--measure);
    line-height: 1.8rem;
}

    p + p {
        margin-block: 2rem;
    }

    p.highlight,
    span.highlight, .highlight {
        color: var(--color-motion-orange);
    }

.video {
    min-width: 80%;
    width: 80%;
    justify-self: center;
    padding: 2rem;
}


hr {
    width: 90vw;
    max-width: var(--grid-max);
    border-width: 0;
    border-top-width: 1px;
    border-style: solid;
    border-image-source: linear-gradient(90deg, rgba(232, 111, 58, 0) 0%, var(--color-motion-orange) 53.5%, rgba(232, 111, 58, 0) 100%);
    border-image-slice: 1;
    margin-block: 10vh;
}


/* Heading styling */
h1, h2, h3, h4 {
    font-family: "Montserrat",'Gabarito';
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    margin-block: 1rem;
    max-width: var(--measure);
    color: light-dark(var(--color-motion-grey), var(--color-light));
}

h1 {
    font-size: var(--s5);
    color: var(--color-light);
    text-shadow: 1px 1px 2px black;
}

h2 {
    font-size: var(--s3);
}

h3 {
    font-size: var(--s2);
}

h4 {
    font-size: var(--s1);
}

p.large {
    font-size: var(--s4);
    font-weight: 200;
    margin-block: 2rem;
}

time {
    font-style: italic;
    font-size: var(--s0);
    margin-bottom: 2rem;
}

.header-grid h1 {
    color: var(--color-light) !important;
}

.page-content {
    position: relative;
    z-index: 10;
}
    /* Hyperlinks */
    a.link, .page-content a, .bento-card a {
        color: light-dark(var(--color-motion-teal), var(--color-motion-light-blue));
        text-decoration: underline;
        text-underline-offset: 0.4rem;
    }

        a.link:hover, .page-content a:hover, .bento-card a:hover {
            background-color: var(--color-link-hover-bg);
            color: var(--color-light);
            text-decoration-color: var(--color-link-hover-bg);
        }

address {
    margin-top: var(--s1);
}

/* Inputs */
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: light-dark(var(--color-motion-grey), var(--color-light));
    border: none;
    box-shadow: inset 0 -1px 0 light-dark(var(--color-motion-grey), var(--color-light));
    padding: 1.5rem;
    font-size: var(--s0);
    width: 100%;
}

    input[type="search"]:focus {
        border: 0;
        outline: 0;
        box-shadow: inset 0 -1px 0 light-dark(var(--color-motion-grey), var(--color-light));
    }


/* Tables */
.table-wrapper {
    overflow: auto;
}

table {
    text-align: left;
    border-collapse: collapse;
    caption-side: bottom;
    width: min(65rem, 100%);
    table-layout: fixed;
    margin: 1rem 0;
}

thead,
tfoot {
    border-block-end: 2px solid light-dark(var(--color-table-light-border), var(--color-table-dark-border));
    background: light-dark(var(--color-table-light), var(--color-table-dark));
    color: light-dark(var(--color-dark), var(--color-light));
}

th,
td {
    border: 1px solid light-dark(var(--color-table-light-border), var(--color-table-dark-border));
    padding: 0.35rem 0.75rem;
}

th {
    padding: 0.75rem;
}

th,
caption {
    text-align: start;
}

thead th:not(:first-child),
td:not(:first-child) {
    text-align: end;
}

tbody tr:nth-child(even) {
    background: color-mix(in srgb, light-dark(var(--color-table-light), var(--color-table-dark)), transparent 60%);
}

th:first-of-type,
td:first-of-type {
    border-left: none;
}

th:last-of-type,
td:last-of-type {
    border-right: none;
}

tr:first-of-type th,
tr:first-of-type td {
    border-top: none;
}

tr:last-of-type th,
tr:last-of-type td {
    border-bottom: none;
}

/*th:first-child {*/
/*position: sticky;*/
/*left: 0;
border-inline-end: none;
}

td:first-of-type,
:where(thead, tfoot) th:nth-child(2) {
border-inline-start: none;
}


th:first-child::after {
content: '';
position: absolute;
inset-block-start: 0;
inset-inline-end: 0;
width: 1px;
height: 100%;
background: lightgrey;
}*/


model-viewer {
    width: 100%;
    height: 100%;
    margin: 0 auto;
}





/* Error */
.error {
    color: var(--color-error);
}

/* Linkbutton */
.linkbutton {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: none;
    font-family: Montserrat;
    font-weight: 300;
    font-style: normal;
    font-size: var(--s0);
    line-height: var(--s2);
    border-radius: 10px;
    padding: 1rem;
    text-decoration-line: none;
    vertical-align: middle;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: light-dark(var(--color-dark), var(--color-light));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    &::before

{
    content: '';
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 0;
    border-width: 1px;
    border-style: solid;
    border-image-source: linear-gradient(90deg, rgba(232, 111, 58, 0) 0%, rgba(250, 255, 255, 0.1) 53.5%, rgba(232, 111, 58, 0) 100%);
    border-image-slice: 1;
    z-index: 2;
    padding: 0;
    margin: 0;
}

&::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-width: 1px;
    border-style: solid;
    border-image-source: linear-gradient(90deg, rgba(232, 111, 58, 0) 0%, rgba(250, 255, 255, 0.1) 53.5%, rgba(232, 111, 58, 0) 100%);
    border-image-slice: 1;
    z-index: 2;
}

}

.hero .linkbutton {
    padding: 1.5rem 4rem;
    color: var(--color-light);
}

.linkbutton:hover {
    background: linear-gradient(90deg, rgba(232, 111, 58, 0) 0%, rgba(250, 255, 255, 0.1) 53.5%, rgba(232, 111, 58, 0) 100%), rgba(255,255,255,0.1);
    transition: background 0.5s ease-in-out, box-shadow 0.2s ease, color 0.1s ease-in-out;
}

.linkbutton.padded {
    padding: 1rem 5rem;
    align-self: end;
    justify-self: center;
}

.linkbutton.inverse {
    background-color: light-dark(var(--color-light), var(--color-motion-grey)) !important;
    color: light-dark(var(--color-motion-grey), var(--color-light));
}

    .linkbutton.inverse:hover {
        /*background-color: light-dark(var(--color-motion-light-grey), var(--color-dark)) !important;
color: var(--color-light) !important;*/
        background-color: var(--color-link-hover-bg) !important;
        color: var(--color-light) !important;
        transition: none;
    }

.linkbutton svg {
    width: 34px;
    height: 34px;
    margin-left: 2rem;
    margin-right: 0;
}

.linkbutton:first-child svg {
    width: 34px;
    height: 34px;
    margin-left: 0;
    margin-right: 2rem;
}
/* 
.linkbutton.back::before, button.back::before
{
display: inline-block;
width: var(--s2);
height:var(--s2);
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5" /></svg>');
} */

/*    .linkbutton.forward::after, button.forward::after {
        display: inline-block;
        width: var(--s2);
        height: var(--s2);
        content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" /></svg>');
    }

    .linkbutton.search::after, button.search::after {
        background: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" /></svg>') center center no-repeat;
        content: '';
        display: inline-block;
        width: var(--s2);
        height: var(--s2);
        margin-left: 1rem;
    }*/


.linkbutton.withIcon {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

    .linkbutton.withIcon svg {
        width: var(--s2);
        height: var(--s2);
        margin: 0;
        flex-shrink: 0;
    }

    .linkbutton.withIcon span {
        color: inherit;
    }



/* Button styling */
button {
    display: grid;
    column-gap: 1rem;
    /*    grid-template-columns: 1fr 36px;*/
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    background-color: #eee5;
    border: none;
    font-family: 'Montserrat';
    font-weight: 300;
    font-size: var(--s0);
    border-radius: 5px;
    color: #fff;
    margin-top: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
}

    button > svg:only-child {
        grid-column: 1 / -1;
        width: 36px;
        height: 36px;
        margin: 0;
    }

    button > span:only-child {
        grid-column: 1 / -1;
    }

    button > svg:not(:only-child) {
        width: var(--s2);
        height: var(--s2);
    }

        button > svg:not(:only-child):first-child {
            justify-self: start;
        }

        button > svg:not(:only-child):last-child {
            justify-self: end;
        }

    button:hover {
        background-color: var(--color-light);
        color: var(--color-motion-grey);
    }


.clearSearchButton {
    display: inline !important;
    align-items: center;
    text-align: center;
    background-color: transparent !important;
    border: none;
    font-family: 'Gabarito';
    font-weight: bold;
    font-size: var(--s1);
    font-weight: 300;
    color: #fff;
    margin-left: 1rem;
    margin-top: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

    .clearSearchButton:hover {
        color: var(--color-motion-orange);
    }



/* Base image */
img {
    aspect-ratio: 16/9;
    object-fit: scale-down;
    width: 100%;
}

    img.cover {
        object-fit: cover;
    }


/* Brand colours */
.motion-grey-bg {
    background-color: var(--color-motion-grey) !important;
    color: var(--color-light) !important;
}

    .motion-grey-bg * {
        color: var(--color-light) !important;
    }

.motion-orange-bg {
    background-color: var(--color-motion-orange) !important;
    color: var(--color-dark) !important;
}

.light-bg {
    background-color: #ffffff !important;
    color: var(--color-dark) !important;
}

.motion-grey * {
    color: var(--color-light);
}

.motion-orange {
    color: var(--color-motion-orange);
}

.motion-base {
    color: light-dark(var(--color-motion-grey), var(--color-light));
}

.light {
    color: #ffffff;
}

.header-brand-logo {
    height: 130px;
    max-width: 90vw;
    fill: var(--color-light);
    filter: drop-shadow(1px 1px 2px rgb(0 0 0 / .5));
}

    .header-brand-logo.inverse {
        height: 130px;
        max-width: 90vw;
        fill: light-dark(var(--color-motion-grey), var(--color-light));
    }

.menu-brand-logo {
    height: 25px;
    max-width: 45vw;
    fill: var(--color-light);
}

.sub-brand-logo {
    width: 100%;
    margin-block: .5rem;
    fill: light-dark(var(--color-motion-grey), var(--color-light));
}

    .sub-brand-logo.inverse {
        fill: light-dark(var(--color-light),var(--color-motion-grey));
    }


    .sub-brand-logo.dark * {
        fill: var(--color-motion-grey);
    }

    .sub-brand-logo.light * {
        fill: var(--color-light);
    }


/* Figure and Figcaption */
figure {
    margin: 0;
    width: 100%;
    margin-block: 3rem;
}

    figure img {
        object-fit: cover;
    }

figcaption {
    color: light-dark(var(--color-motion-grey), var(--color-light));
    font-size: small;
}

.people figure img {
    aspect-ratio: 4/3;
    object-fit: initial;
}

.people h3 {
    color: var(--color-motion-orange);
}

/* Padding, Margins and Justifications */
.pad-l {
    padding: 20vh 0;
}

.pad-m {
    padding: 10vh 0;
}

.pad-s {
    padding: 5vh 0;
}

.pad-xs {
    padding: 2vh 0;
}

.pad-no {
    padding: 0;
}

.justify-start {
    justify-self: start;
}

.justify-center {
    justify-self: center;
}

.justify-end {
    justify-self: end;
}

.align-start {
    align-self: start;
}

.align-center {
    align-self: center;
}

.align-end {
    align-self: end;
}


/* Scroll watcher */
.scroll-watcher {
    height: 5px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: var(--color-motion-orange);
    width: 100%;
    scale: 0 1;
    transform-origin: left;
    animation: scroll-watcher linear;
    animation-timeline: scroll(y);
}

@keyframes scroll-watcher {
    to {
        scale: 1 1;
    }
}

/* Product filter styles */

.filters ul {
    list-style-type: none;
    font-size: var(--s0);
    padding: 0px;
    color: light-dark(var(--color-motion-grey), var(--color-light));
}

    .filters ul li {
        margin: 3rem 1rem;
        line-height: 1.5rem;
    }

        .filters ul li label input {
            margin-right: 1rem;
        }

.filters form {
    padding: 0 0 3rem 0;
}


/* Page article */

article.page-content {
    margin: 0 auto;
    padding-block-end: var(--s4);
    width: 90vw;
    max-width: var(--grid-max);
    column-width: var(--measure);
    column-gap: var(--s2);
    /*column-rule: 1px solid var(--color-motion-orange); */
}

    article.page-content > * + * {
        margin-block-start: var(--prose-flow, 1em);
    }

    article.page-content .pre-title {
        color: var(--color-motion-orange);
    }

        article.page-content .pre-title + h1 {
            padding-top: var(--s-5);
        }

    article.page-content p {
        orphans: 3;
    }

body
/* indent first character of new paragraph where more than one paragraph exists */
article.page-content p + p {
    margin-block: 2rem;
}

article.page-content > img {
    aspect-ratio: initial;
    border-width: 0;
    content-visibility: auto;
    max-inline-size: 100%;
    block-size: auto;
    margin-bottom: 1rem;
}

/*article.page-content>figure 
{
margin: var(--s1) 0;
padding: 0;
break-after: column; 
}*/

article.page-content > figure {
    margin: var(--s5) auto;
    column-span: all;
}

article.page-content h1 + figure {
    margin-top: 0;
}

article.page-content > figure > figcaption {
    text-indent: 2ch;
    font-size: var(--s0);
}

article.page-content > figure > img {
    margin: 0;
    padding: 0;
    /*aspect-ratio: 16/9;*/
    aspect-ratio: 16/9 auto;
    object-fit: contain;
}

article.page-content .back {
    column-span: all;
    margin: var(--s4) auto;
}

article.page-content hr {
    clear: both;
    display: block;
    height: 1px;
    margin-block: var(--s2);
    margin-inline: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--color-motion-orange);
}



/*    article.page-content h1,
    article.page-content h2,*/
article.page-content blockquote,
.umb-block-grid__block--view blockquote {
    /*padding: var(--s2) 0;*/
    column-span: all;
    margin-block: var(--s4);
}

article.page-content h2 {
    /* border-top: solid 1px var(--color-motion-orange); */
    border-width: 0;
    border-top-width: 1px;
    /*border-style: solid;
        border-image-source: linear-gradient(90deg, rgba(232, 111, 58, 0) 0%, var(--color-motion-orange) 53.5%, rgba(232, 111, 58, 0) 100%);
        border-image-slice: 1;
        padding: var(--s3) 0;*/
}

article.page-content p + h3 {
    margin-block-start: var(--s4);
}

article.page-content h3, article.page-content ul, article.page-content ol {
    break-after: avoid-column;
    break-inside: avoid;
}

article.page-content blockquote,
.umb-block-grid__block--view blockquote {
    align-content: center;
}


article.page-content blockquote {
    clear: both;
    margin: 0 auto;
    margin-block: var(--s5);
    margin-inline: 0;
    padding: 0;
    column-span: all;
    text-align: center;
}

    article.page-content blockquote p {
        font-size: var(--s2);
        line-height: 1.2;
        font-style: italic;
        margin: 0 auto;
        color: var(--color-motion-orange);
    }

    article.page-content blockquote cite,
    blockquote cite {
        color: light-dark(var(--color-motion-grey), var(--color-light));
        display: block;
        font-style: normal;
        margin-top: var(--s-2);
    }

article.page-content li + li {
    padding-top: var(--s0);
}

article.page-content picture > * {
    margin-bottom: 75px;
    aspect-ratio: auto !important;
}


.video.center {
    column-span: all;
    margin-block: var(--s4);
    align-content: center;
}

/* 

 article.page-content:has(> figure) 
 {
display: flex;
flex-wrap: wrap;
gap: 0 var(--s2); 
}

 article.page-content:has(> figure) main {
flex: 1;
margin-block-end: var(--s2);
margin-inline: 0;
padding-block-start: var(--s2);
min-width: min(100%, 30rem); } 


article.page-content:has(> figure) figure {
flex: 4;
min-width: min(100%, 30rem);
margin: 0; 
} */
/* History page */
.history {
    border-left: 4px solid var(--color-motion-orange);
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    background: transparent;
    color: light-dark(var(--color-motion-grey), var(--color-light));
    margin: 50px auto;
    letter-spacing: 0.5px;
    position: relative;
    line-height: 1.4em;
    font-size: 1.03em;
    padding: 50px;
    list-style: none;
    text-align: left;
    font-weight: 100;
    max-width: var(--grid-max);
}

    .history > .event {
        border-bottom: 1px dashed fade( light-dark(var(--color-motion-grey), var(--color-light)), 10%);
        padding-bottom: calc(50px * 0.5);
        padding-top: calc(50px * 0.5);
        margin-bottom: 50px;
        position: relative;
    }

        .history > .event > h2 {
            color: var(--color-motion-orange);
        }

.person-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--s5);
    margin-bottom: var(--s5);
    justify-items: center;
}

    .person-profile > .image > img {
        aspect-ratio: initial;
        object-fit: cover;
        max-width: 350px;
        border-radius: 50%;
    }

    .person-profile > .profile {
        padding-left: 2rem;
    }

        .person-profile > .profile > p {
            margin-block: 2rem;
        }




/* Contact */
.contact {
    border: 1px solid light-dark(var(--color-motion-medium-grey), var(--color-motion-light-grey));
    padding: var(--s2) var(--s1);
    margin: var(--s1) 0;
    max-width: var(--grid-max);
    display: grid;
    grid-gap: var(--grid-gap);
    grid-template-columns: 1fr;
}

    .contact input[type=submit] {
        padding: 1em 2em;
        width: fit-content;
    }

        .contact input[type=submit]:hover {
            cursor: pointer;
        }

        .contact input[type=submit]:disabled {
            background-color: var(--color-disabled) !important;
            cursor: wait;
        }

    .contact .right {
        justify-self: flex-end;
    }



    .contact input[type=text], input[type=email], select, textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        resize: vertical;
    }

    /* Style the label to display next to the inputs */
    .contact label {
        padding: 12px 12px 12px 0;
        display: inline-block;
    }


.tags {
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    font-size: var(--s-2);
    background-color: var(--color-motion-teal); /* light-dark(var(--color-light), var(--color-motion-grey)); */
    color: var(--color-motion-white);
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 400;
    text-decoration: none;
}

    .tag:hover {
        background-color: var(--color-motion-orange);
        color: var(--color-motion-grey);
    }

.tag-large {
    background-color: light-dark(var(--color-light), var(--color-motion-grey)) !important;
    color: light-dark(var(--color-motion-grey), var(--color-light));
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

/*.tag a{
    color: light-dark(var(--color-motion-grey), var(--color-light));
}

.tag a:hover {
    color: var(--color-motion-grey);
}*/


.search-with-button {
    display: flex;
    border: .5px solid light-dark(var(--color-table-light-border), var(--color-table-dark-border));
    overflow: hidden;
    transition: border-color 0.3s ease;
    padding: 1rem;
    margin-block: 3rem;
    background: light-dark(var(--color-table-light-border), var(--color-table-dark-border));
    border-radius: 15px;
}

.search-results {
    padding: 2rem;
    margin-block: 1rem;
}

.search-with-button:focus-within {
    border-color: var(--color-motion-orange);
}

.button-search {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

.search-btn {
    padding: 12px 20px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0;
    color: light-dark(var(--color-motion-grey), var(--color-light));
}



/* SVG Schematics */
.schematic-container {
    /* position: relative; */
    width: 100vw;
    background: #fff;
    /* border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; */
    /* transform: rotate(2deg); */
}

.top-skew {
    width: 0;
    height: 0;
    border-right: 100vw solid transparent;
    border-bottom: 10vw solid #fff;
    margin-bottom: -50px;
    margin-top: 10vh;
}

.bottom-skew {
    width: 0;
    height: 0;
    border-left: 100vw solid transparent;
    border-top: 10vw solid #fff;
    margin-bottom: 0;
}

.schematic-container svg {
    border-radius: 50px;
}

.hotspot {
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

    .hotspot:hover {
        r: 12;
        filter: drop-shadow(0 0 8px #fa6914);
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}


.popover-button {
    background: #fa6914;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

    .popover-button::hover {
        box-shadow: 0 8px 32px hsl(0 0% 0% / 0.12);
        background: #fa6914;
    }

.hotspot-popover {
    background-color: var(--color-motion-grey) !important;
    border-left: 5px solid var(--color-motion-grey);
    border-bottom: 5px solid var(--color-motion-grey);
    border-top: none;
    border-right: none;
    border-radius: 10px;
    outline: 5px solid #fa6914;
    outline-offset: 15px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    inline-size: min(90vw,28rem);
    opacity: 0;
    translate: 0 20px;
    transition-property: display, overlay, opacity, translate;
    transition-duration: .5s;
    transition-behavior: allow-discrete;
    &:popover-open

{
    opacity: 1;
    translate: 0px 0px;

    @starting-style {
        opacity: 0;
        translate: 0 20px;
    }
}

@supports(anchor-name: --anchor) {
    margin: 0;
    inset: auto;
    position-area: center self-y-end;
    position-try: flip-block;
}

}

.hotspot-popover h4 {
    margin: 0 0 8px 0;
    color: #fa6914;
}

.hotspot-popover p {
    margin: 0;
    color: var(--color-light);
}

.hotspot-popover a {
    margin: 0;
    color: var(--color-motion-light-blue);
}

/*
    .hotspot-popover.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
    }

    .hotspot-popover.visible {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        transition: opacity 0.3s ease 0s, transform 0.3s ease 0s;
    }




    .hotspot-popover .close-btn {
        position: absolute;
        top: 10px;
        right: 25px;
        background: none;
        border: none;
        font-size: 25px;
        color: #999;
        cursor: pointer;
        line-height: 0;
        padding: 0;
        width: 20px;
        height: 10px;
    }

        .hotspot-popover .close-btn:hover {
            color: #fa6914;
        }

.hotspot-line {
    transition: stroke-dashoffset 0.5s ease-out;
}


.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.popover-content {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.popover-text {
    flex: 1;
}

.popover-product {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 50%;
    padding: 1rem;
}

    .popover-product img {
        border-radius: 25px;
    }

    */

/* -------------------------------------------------- */
/* ---------------   CONTACT FORM   ----------------- */
/* -------------------------------------------------- */

/* Add to your site.css or form-specific stylesheet */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 3fr;
}

    .form-group span {
        grid-area: 2 / 2 / 3 / 3;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: light-dark(var(--color-motion-grey), var(--color-light));
    }

.hint-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.optional-text {
    font-weight: 400;
    font-size: 0.875rem;
}

.error[role="alert"] {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-error);
    font-size: 0.875rem;
}

.form-error-summary {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fdecea;
    border-left: 4px solid #d32f2f;
}

    .form-error-summary strong {
        display: block;
        margin-bottom: 0.5rem;
    }

.required-fields-note {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--color-error);
    border-width: 2px;
}

label span[aria-label="required"] {
    color: var(--color-error);
}

/* -------------------------------------------------- */
/* ---------------   MEDIA QUERIES   ---------------- */
/* -------------------------------------------------- */
@media (width <= 50em) {
    .page-content, hero + section {
        /*margin-top: 25vh !important; */
    }

    h1 {
        font-size: var(--s4);
    }
}

@media screen and (width < 1500px) {
    article .page-content {
        column-width: 40ch;
    }
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {

    .contact {
        grid-template-columns: 1fr;
        row-gap: var(--s0);
    }

    section.metrics {
        background-attachment: unset;
    }

    article.page-content .articleImage > source, .articleImage > img {
        margin-top: 0;
    }
}

@media screen and (max-height: 720px) {

    article.page-content .articleImage > source, .articleImage > img {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion:no-preference) {
    html:focus-within {
        scroll-behavior: smooth;
    }
}


/* fallback for light-dark */
@media (prefers-color-scheme: dark) {
    html {
        background-color: var(--color-dark);
        color: var(--color-light);
    }

    a.link, .page-content a {
        color: var(--color-motion-light-blue);
    }

    input[type="search"] {
        color: var(--color-light);
        box-shadow: inset 0 -1px 0 var(--color-light);
    }

        input[type="search"]:focus {
            box-shadow: inset 0 -1px 0 var(--color-light);
        }

    /*    .linkbutton {
        background-color: var(--color-light) !important;
        color: var(--color-motion-grey);
    }*/

    .linkbutton.inverse {
        background-color: var(--color-motion-grey) !important;
        color: var(--color-light);
    }

    .sub-brand-logo {
        width: 100%;
        margin-block: .5rem;
        fill: var(--color-light);
    }

        .sub-brand-logo.inverse {
            fill: var(--color-motion-grey);
        }
}

@media (prefers-color-scheme: light) {
    html {
        background-color: var(--color-light) !important;
        color: var(--color-motion-grey);
    }

    a.link {
        color: var(--color-motion-teal);
    }

    input[type="search"] {
        color: var(--color-motion-grey);
        box-shadow: inset 0 -1px 0 var(--color-motion-grey);
    }

        input[type="search"]:focus {
            box-shadow: inset 0 -1px 0 var(--color-motion-grey);
        }

    .linkbutton {
        /*background-color: var(--color-motion-grey) !important;
        color: var(--color-light);*/
    }

        .linkbutton.inverse {
            background-color: var(--color-light) !important;
            color: var(--color-motion-grey);
        }

    .sub-brand-logo {
        width: 100%;
        margin-block: .5rem;
        fill: var(--color-motion-grey);
    }

        .sub-brand-logo.inverse {
            fill: var(--color-light);
        }
}


/*position: sticky;
width: 90vw;
max-width: var(--grid-max);
top: 110%;
overflow-x: auto;
overflow-y: hidden;
margin: 0 auto;*/




section.vehicleSchematic {
    height: 500vh;
    position: relative;
}

    section.vehicleSchematic div.schematic-video {
        position: sticky;
        top: 0;
        height: 100vh;
        width: 100vw;
    }

    section.vehicleSchematic video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* Add at the end of your existing site.css, after the vehicleSchematic section */

/* Callouts horizontal scrolling container */

.callouts-container {
    width: 100vw;
    height: 500vh;
    position: absolute;
    top: 25vh;
    left: 0;
    animation: fade-in 0.5s forwards;
    animation-timeline: view();
    animation-range: entry 5% contain 6%;
    opacity: 0;
}

@keyframes fade-in {
    to {
        opacity:1;
    }
}



.callouts-scroll-container {
    position: sticky;
    top: 15vh;
    width: 90vw;
    max-width: 1900px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 100;
    padding: 1rem 0;
    /* Smooth scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    /* Hide scrollbar but keep functionality */
    .callouts-scroll-container::-webkit-scrollbar, .callouts-scroll-container::-webkit-scrollbar-track, .callouts-scroll-container::-webkit-scrollbar-thumb {
        display: none;
    }

.callouts-scroll-track {
    display: flex;
    gap: 1rem;
    min-width: min-content;
    padding: 0 1rem;
}


/* Individual callout item */
.schematic-callout-item {
    flex: 0 0 auto;
    width: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}


/* Summary (collapsed state) */
.callout-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    user-select: none;
    font-size:var(--s-1);
}

    /* Hide default disclosure markers for all browsers */
    .callout-summary::-webkit-details-marker {
        display: none;
    }

    .callout-summary::marker {
        display: none;
    }

.callout-number {
    color: var(--color-motion-orange);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.callout-name {
    flex: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.callout-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.schematic-callout-item[open] .callout-chevron {
    transform: rotate(180deg);
}

.schematic-callout-item::details-content {
    block-size: 0;
    overflow:hidden;
    transition: block-size .5s;
}

.schematic-callout-item[open]::details-content {
    block-size: auto;
}

/* Expanded product card */
.schematic-product-card {
    padding: 1rem;
    padding-top: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

    .card-image img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-motion-grey);
    padding: 1rem;
    border-radius: 10px;
}

.product-description {
    color: var(--color-light);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-motion-orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
    justify-self: end; 
     align-self: end;
}

    .card-link:hover {
        gap: 0.75rem;
    }

    .card-link svg {
        width: 16px;
        height: 16px;
    }