@font-face {
    font-family: 'Roboto Slab';
    src: url('../fonts/Roboto_Slab/static/RobotoSlab-Light.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'Roboto Slab';
    src: url('../fonts/Roboto_Slab/static/RobotoSlab-Regular.ttf');
    font-weight: 400;
}
@font-face {
    font-family: 'Roboto Slab';
    src: url('../fonts/Roboto_Slab/static/RobotoSlab-Bold.ttf');
    font-weight: 700;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/Ubuntu/Ubuntu-Light.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/Ubuntu/Ubuntu-Regular.ttf');
    font-weight: 400;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/Ubuntu/Ubuntu-Medium.ttf');
    font-weight: 500;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter-Light.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter-Regular.ttf');
    font-weight: 400;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter-Medium.ttf');
    font-weight: 500;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter-Bold.ttf');
    font-weight: 700;
}


:root {
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    --font: 'Inter', sans-serif;
    --brand: #2481EB;
    --warning: hsl(40, 80%, 40%);
    --brand-light: #5f9add;
    --brand-lightest: #ffffff;
    --text: #393939;
    --h-color: var(--brand);
    color: var(--text);
    --content-width: 1080px;
}
@media screen and (max-width: 768px) {
    :root {
        font-size: 16px;
    }
}

* { box-sizing: border-box;}

body {
	interpolate-size: allow-keywords;
    /* padding: 100px !important; */
    padding: 0;
    margin: 0rem 0 0 0;
}

body.mobile #footer .col {
    padding: 1rem;
}
body.large .hide-mobile { display: none;}

.futuremap {
    font-weight: 300;
    color: var(--brand-light);
}

.futuremap .bold {
    font-weight: 500;
    color: inherit;
}
.brand-lightest {
    color: var(--brand-lightest);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', sans-serif;
    font-weight: 500;
    color: var(--h-color);
    text-wrap: balance;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { 
    color: var(--text); 
    text-wrap: pretty;
    max-width: 66ch;
    line-height: 1.6;
    font-size: 1.05rem;
}

p .futuremapBranding {
    color: var(--brand-light);
    font-weight: 300;
}
p .futuremapBranding span {
    color: var(--brand-light);
    font-weight: 500;
}
a.inline-link {
    text-decoration: underline;
    color: var(--brand);
    cursor: pointer;
}
a.inline-link:hover {
    text-decoration: underline;
    color: var(--warning);
}
a.inline-link-inverted {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}
a.inline-link-inverted:hover {
    color: #EECC00;
    text-decoration: underline;
    font-weight: 500;
}

.panel ol { margin-left: 1rem; }

.panel ol li {
    list-style: decimal;
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 500;
}
.panel ol li p {
    font-size: 1rem;
}
.panel ol li p.fee {
    font-weight: 400;
    color:#636363;
    font-size: 0.925rem;
}
.panel ol li p.fee span {
    color: var(--brand);
    text-transform: uppercase;
}

#youtube-video {
    max-width: 50ch;
    margin-bottom: 2rem;
}
#youtube-video iframe {
    width: 50ch;
    height: calc(50ch * 0.5625);
}


.fees {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: 1rem;
    padding: 2rem 0;
    width: 76ch;
}

@media screen and (max-width: 768px) {
    .fees {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-rows: fit-content;
        gap: 1rem;
        padding: 2rem 0;
        width: 100%;
    }
    
}
/* .fees[data-showfee=1] .fee-item:nth-child(2) { grid-row: 1 / 2; } */

.fee-item {
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    grid-column: 2 / 3;
    grid-row: 1 / -1;
}
.fee-titles {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.fee-titles .fee-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
}



.fee-titles .fee-title:hover h3,
.fees[data-showfee="1"] .fee-title:nth-child(1) h3,
.fees[data-showfee="2"] .fee-title:nth-child(2) h3,
.fees[data-showfee="3"] .fee-title:nth-child(3) h3,
.fees[data-showfee="4"] .fee-title:nth-child(4) h3 {
    background-color: white;
    pointer-events: all;
}

.fee-title h3 {
    display: block;
    width: 100%;
    margin: 0;
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}
.fee-item .fee-title { display: none; }

/* .fee-titles .fee-title:nth-child(1) { grid-row: 1 / 2; }
.fee-titles .fee-title:nth-child(2) { grid-row: 2 / 3; }
.fee-titles .fee-title:nth-child(4) { grid-row: 3 / 4; }
.fee-titles .fee-title:nth-child(3) { grid-row: 4 / 5; } */

.fee-item .fee-content {
    grid-column: 2 / 3;
    grid-row: 1 / -1;

    background-color: #f9f9f9;
    padding: 2rem;
}

.fees .fee-item {
    transform-origin: top left;
    z-index: 1;
    transition: scale 0.5s;
    transition-delay: 0.2s;
}
.fees .fee-item .fee-content {
    margin: 1rem;
    background-color: antiquewhite;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: background-color 0.5s;
    height: fit-content;
}

.fees .fee-item:nth-child(2) { scale: 0.5; transform-origin: top left;}
.fees .fee-item:nth-child(3) { scale: 0.5; transform-origin: top right; }
.fees .fee-item:nth-child(4) { scale: 0.5; transform-origin: bottom left; }
.fees .fee-item:nth-child(5) { scale: 0.5; transform-origin: bottom right; }

.fees[data-showfee="1"] .fee-item:nth-child(2) { scale: 1; z-index: 2; }
.fees[data-showfee="2"] .fee-item:nth-child(3) { scale: 1; z-index: 2; }
.fees[data-showfee="3"] .fee-item:nth-child(4) { scale: 1; z-index: 2; }
.fees[data-showfee="4"] .fee-item:nth-child(5) { scale: 1; z-index: 2; }

.fees[data-showfee="1"] .fee-item:nth-child(2) .fee-content { background-color: white; }
.fees[data-showfee="2"] .fee-item:nth-child(3) .fee-content { background-color: white; }
.fees[data-showfee="3"] .fee-item:nth-child(4) .fee-content { background-color: white; }
.fees[data-showfee="4"] .fee-item:nth-child(5) .fee-content { background-color: white; }



.intro-panel h3 {
    margin-bottom: 3rem;
}
.intro-panel p:last-of-type {
    margin-bottom: 3rem;
}
@media screen and (max-width: 768px) {
    .fees {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .fee-titles {
        display: none !important;
    }
    .fees .fee-item {
        display: flex;
        flex-direction: column;
    }
     
    .fees .fee-item:nth-child(2), 
    .fees .fee-item:nth-child(3), 
    .fees .fee-item:nth-child(4),
    .fees .fee-item:nth-child(5)
    {
        grid-column: 1 / 2;
        scale: 1;
        position: relative;
    }
    .fee-item .fee-title {
        display: block;
        margin: 1rem 0;
        padding-left: 1rem;
        border-left: 5px solid var(--color);
    }
    .fee-title h3 {
        font-size: 1.2rem;
        border-radius: 4px;
        padding: 0;
    }
    .fee-content {
        margin: 0 1rem 0 0;
    }
    .fees .fee-item .fee-content {
        padding: 2rem 1rem 2rem 2rem;
        margin: 0;
        background-color: white;
    }
    .fees[data-showfee="1"] .fee-item:nth-child(2) .fee-content { background-color: transparent; }
    .fees[data-showfee="2"] .fee-item:nth-child(3) .fee-content { background-color: transparent; }
    .fees[data-showfee="3"] .fee-item:nth-child(4) .fee-content { background-color: transparent; }
    .fees[data-showfee="4"] .fee-item:nth-child(5) .fee-content { background-color: transparent; }
    
}

main {
    padding: 0 0rem 2rem 0rem;
    display: grid;
    grid-template-columns: [main-start] 1fr [content-start] auto [content-end] 1fr [main-end];
    width: 100vw;
    overflow-x: hidden;
}

.panel-wrap {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: main;
    background-color: #fff;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media screen and (min-width: 1400px) {
    .panel-wrap {
        padding-top: 4rem;
        padding-bottom: 4rem;

    }
    
}


.panel-wrap[data-color="lightgrey"] {
    background-color: #f9f9f9;
}
.panel-wrap[data-color="blue"] {
    background-color: var(--brand);
    --text: white;
    --h-color: white;
}
.panel-wrap[data-color="pamMap"] {
    background-color: rgb(103, 92, 79);
    background-image: url(../img/Pam-Tile-Darker.jpg);
    background-repeat: repeat;
    background-position: center;
    display: grid;
    grid-template-columns: subgrid;
    grid-column: main;
    padding-bottom: 200px;
}
.panel-wrap[data-color="offwhite"] {
    background-color: #faf2e8;
}

@media screen and (max-width: 768px) {
    .panel-wrap[data-color="pamMap"] {
        padding-bottom: 0;
        margin-top: 0;
        margin-top: -59px;
    }
    
}

.panel-wrap[data-color="pamMap"] .panel {
    padding: 4rem 1rem 4rem 1rem;
    grid-column: main;
    display: grid;
    grid-template-columns: subgrid;
    max-width: var(--content-width);
}
.panel-wrap[data-color="pamMap"] .panel h2,
.panel-wrap[data-color="pamMap"] .panel h3 {
    color: rgb(241, 232, 220);
}

.panel {
    grid-column: content;
    padding: 2rem 1rem;
    /* border-radius: 8px; */
    /* box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1); */
    margin: 0;
    max-width: var(--content-width);
}

.panel.panel-two-columns {
    grid-column: main;
    display: grid;
    grid-template-columns: subgrid;
    gap: 0rem;
    padding: 0;
}
.panel.panel-two-columns .panel-two-column-item-wrap {
    grid-column: content;
    display: grid;
    grid-template-columns: subgrid;
    padding: 2.4rem 2.4rem;
    max-width: var(--content-width);
}
@media screen and (max-width: 768px) {
    .panel.panel-two-columns .panel-two-column-item-wrap {
        padding: 1.2rem 1.2rem;
    }
}
.panel.panel-two-columns .panel-two-column-items {
    grid-column: content;
    max-width: var(--content-width);
    display: grid;
    grid-template-columns: 4fr 1rem 7fr;
}

.panel.panel-two-columns .panel-two-column-item-wrap:has(.panel-two-column-sub-items) {
    padding-bottom: 1.2rem;
}
.panel.panel-two-columns .panel-two-column-sub-items {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 4fr 1rem 7fr;
    /* opacity: 0.8; */
    /* background-color: #ffffff88; */
    padding: 1.2rem 0 0.25rem 0;
    margin-bottom: 0.25rem;
}

.panel.panel-two-columns .panel-two-column-sub-items span {
    opacity: 0.8;
    background-color: #ffffff33;
    padding: 0.15rem 0.6rem;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.panel.panel-two-columns .panel-two-column-sub-items span:hover {
    opacity: 1;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
}

#funding-types .panel.panel-two-columns .panel-two-column-item-wrap:nth-child(2n-1) {
    background-color: hsl(212, 86%, 43%);
    border-radius: 0.6rem;
}
#investment-stages .panel.panel-two-columns .panel-two-column-item-wrap:nth-child(2n-1) {
    background-color: hsl(212, 10%, 95%);
    border-radius: 0.6rem;
}
.panel.panel-two-columns h3 {
    grid-column: 1 / 2;
    margin: 0;
    /* padding-left: 1rem; */
}
.panel.panel-two-columns p,
.funding-types-hover {
    grid-column: 3 / 4;
    margin: 0;
    padding-right: 1rem;
}

#investment-stages.panel.panel-two-columns .panel-two-column-sub-items h3 {
    font-size: 0.8rem;
    font-family: 'Ubuntu', sans-serif;
    margin-top: 0.5rem;
    text-align: right;
    color: #777;
    opacity: 0.8;
}
#investment-stages.panel.panel-two-columns .panel-two-column-sub-items p { display: none;}
#investment-stages.panel.panel-two-columns .panel-two-column-sub-items [role="tooltip"] p { display: flex;}

.panel-two-column-sub-items .keywords {
    grid-column: 3 / 4;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.panel-two-column-sub-items:has(.keywords span:hover) {
    z-index: 7;
}
.panel-two-column-sub-items .keywords span:hover {
    cursor: pointer;
    text-decoration: underline;
}
[aria-describedby]:hover,
[aria-describedby]:focus {
  position: relative;
  color: green;
}



.keywords .funding-type-tooltip {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 2rem;
    right: 0rem;
    margin: 0 -4rem;
    min-width: 260px;
    background-color: #000000bb;
    color: white;
    transition: opacity 0.3s;
    padding: 1.25rem;
    border-radius: 4px;
    z-index: 9;
    backdrop-filter: blur(4px);
    text-shadow: 0 0 4px #000;
  
}

.keywords [data-relevant-funding-type] {
    position: relative;
}
.keywords [data-relevant-funding-type]:hover .funding-type-tooltip,
.keywords [data-relevant-funding-type]:focus .funding-type-tooltip {
    opacity: 1;
}
.funding-types-hover span {
    position: relative;
    margin-left: 1rem;
}

.funding-types-hover span:first-of-type {
    margin-left: 0;
}

@media screen and (max-width: 768px) {

    .panel.panel-two-columns .panel-two-column-sub-items span:hover {
        opacity: inherit;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
    }
    .panel-two-column-sub-items .keywords span:hover {
        text-decoration: none;
        cursor: inherit;
        color: inherit;
        background-color: inherit;
        opacity: 0.8;
    }
    .keywords .funding-type-tooltip {
        display: none;
    }
    .panel {
        padding-left: 0;
        padding-right: 0;
    }
    .panel.panel-two-columns .panel-two-column-items {
        grid-template-columns: 1fr;
    }
    .panel.panel-two-columns .panel-two-column-sub-items {
        grid-template-columns: 1fr;
    }
    .panel.panel-two-columns p,
    .funding-types-hover {
        grid-column: 1 / 2;
        margin: 0;
        padding-right: 1rem;
    }
    .panel-two-column-sub-items .keywords {
        grid-column: 1 / 2;
    }
    .panel.panel-two-columns h3 {
        padding-left: 0;
        margin-bottom: 0.5rem;
    }
    #investment-stages.panel.panel-two-columns .panel-two-column-sub-items h3 {
        text-align: left;
        margin-top: 1rem;
        margin-bottom: 0;;
    }
}

#investormap-fees {
    background-color: #faf2e8;
    background-color: #f0d5b3;
    background-image: linear-gradient(180deg, #f0d5b3 20px, #faf2e8 80px);
}
#funding-types {
    background-color: #2481EB;
    background-color: #106ed8;
    background-image: linear-gradient(180deg, #106ed8 40px, #2481EB 110px);
    padding-top: 4rem;
}

#enterprise-investment-scheme .panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#enterprise-investment-scheme .panel .panel-two-column-item-wrap {
    margin-bottom: 2rem;
}

#enterprise-investment-scheme ol {
    list-style: number;
    padding-left: 1rem;
}
#enterprise-investment-scheme ul {
    list-style: disc;
    padding-left: 1rem;

}
#enterprise-investment-scheme li {
    margin-bottom: 1rem;
    font-weight: 500;
}
#enterprise-investment-scheme li span {
    font-weight: 500;
    color: var(--brand);
}

#enterprise-investment-scheme ol li {
    font-size: 1rem;
    color: var(--text);
}
#enterprise-investment-scheme a {
    color: var(--brand);
}
#enterprise-investment-scheme a:hover {
    color: var(--warning);
}


/*  DIVIDERS  */

div:has(#fundingtypes) {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: main;
    margin-top: -200px;
}

#fundingtypes {
    /* margin-top: -200px; */
    /* transform: translateY(-150px); */
}
#fundingtypes + .panel-wrap {
    transform: translateY(-1px);
}
#howinvestormapworks,
#howinvestormapworks {
    z-index: 100;
}

.panel.full-width {
    grid-column: main;
    display: grid;
    grid-template-columns: subgrid;
}

 .divider {
    --divider-height: 120px;
    display: flex;
    grid-column: main;
    overflow: visible;
    min-height: 0px;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 100svh;
    padding: 0 0 0 0;
    margin: 0;
    height: fit-content;
}

.divider-img, .divider-image {
    position: absolute;
    top: calc((var(--divider-height) / 2) * -1);
    left: 0;
    right: 0;
    aspect-ratio: 1014 / 78;
    min-width: 100%;
    min-height: var(--divider-height);
    display: grid;
    place-items: center;
    z-index: 3;
    overflow: hidden;
}

@media screen and (min-width: 1500px) {
    .divider-img, .divider-image {
        --divider-height: 180px;
    }
}
.divider-img > *, .divider-image > * {
    object-fit: cover;
    object-position: center;
}

.st0, .st1 { fill: none; } 
.divider-group {  isolation: isolate; } 
.st2 { fill: #4c9ded; } 
.st4 { fill: none; } 
.st5 { fill: #faebd7; } 
.st6 { fill: #2481eb; }


/* SVG STYLES */
svg  [data-svgopacity="0"] path { opacity: 0; }
svg  [data-svgopacity="25"] path { fill: color-mix(in srgb, var(--svg-color) 25%, var(--svg-background) 75%); }
svg  [data-svgopacity="50"] path { fill: color-mix(in srgb, var(--svg-color) 50%, var(--svg-background) 50%); }
svg  [data-svgopacity="100"] path { fill: var(--svg-color) }

svg .svg-pins[data-svgopacity="100"] path {
    fill: red;
    fill: var(--svg-color);
    transform: translateY(-10rem);
    opacity: 0;
    transition: transform 0.5s, opacity 0.25s;
}
svg .svg-pins[data-svgopacity="100"] path.bounce {
    animation: svg-pin-bounce 0.5s forwards 1;
    fill: color-mix(in srgb, var(--svg-color) 100%, var(--svg-background) 0%);
    transition: fill 0.25s;
}

svg .svg-pins[data-svgopacity="100"] path.svg-pin-animate {
    transform-origin: bottom center;
    transform: translateY(0rem);
    opacity: 1;
}

@keyframes svg-pin-bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2rem); }
    100% { transform: translateY(0); }
}

#first-panel { position: relative; }
.bg-icon {
    position: absolute;
    z-index: 1;
    grid-column: main;
    width: 200px;
    height: 200px;
    background-position: 0 0;
    background-size: cover;
    /* filter: saturate(0) brightness(1) contrast(2); */
    /* opacity: 1; */
    transition: opacity 1s;
}

#first-panel > :not(.bg-icon) { z-index: 2; }


/* MEDIA QUERIES */
@media screen and (max-width: 768px) {


:root {
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    --font: 'Inter', sans-serif;
    --brand: #2481EB;
    --brand-light: #5f9add;
    --brand-lightest: #ffffff;
    --text: #393939;
    --h-color: var(--brand);
    color: var(--text);
    --content-width: calc(100vw - 2rem);
}


    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    p { 
        color: var(--text); 
        text-wrap: pretty;
        max-width: 60ch;
        line-height: 1.6;
        font-size: 0.9rem;
    }

    main {
        grid-template-columns: [main-start] 1rem [content-start] auto [content-end] 1rem [main-end];

        max-width: 100%;
    }
    .panel-wrap {
        max-width: 100vw;
        padding: 1rem 1rem;
    }
    #youtube-video {
        max-width: calc(100vw - 2rem);
        overflow-x: hidden;
    }

    #youtube-video * {
        max-width: 100%;
    }
}