/**
Theme Name: samhallsportalen_2024
Theme URI:
Author: Axess Lab
Author URI: https://axesslab.com/
Description: Sammhallsportalens WordPress-tema.
Version: 1.0
License:
License URI:
Tags: darkblue,yellow
Text Domain: samhallsportalen_2024
*/

:root {
    --color-dark: #000;/*#151515;*/
    --color-light: #DCF1F7; /*#efefef;*/
    --color-rgba-light: 220, 241, 247;/*240,240,240;*/
    --color-primary-light: #DCF1F7;
    --color-primary: rgb(23, 34, 64); /* rgb(110, 122, 102);*/ /*rgb(176, 0, 89)*/   /*#B00059*/
    --color-rgba-primary: 23, 34, 64;
    --color-secondary: #7047D6;
    --color-rgba-secondary: 112, 71, 214;
    --color-secondary-light: #E1D5CA;
    --color-standout: #F5BA03;
    --color-rgba-standout: 245, 186, 3;
    --color-error: #DA0000;
    --color-link: var(--color-secondary,#B00159);
    --color-hover: #172240;
    --color-button-bg: var(--color-primary);
    --color-button-text: #fff;
    --size-step-0: clamp(1rem, calc(0.96rem + 0.22vw), 1.13rem);
    --size-step-1: clamp(1.25rem, calc(1.16rem + 0.43vw), 1.5rem);
    --size-step-2: clamp(1.56rem, calc(1.41rem + 0.76vw), 2rem);
    --size-step-3: clamp(1.95rem, calc(1.71rem + 1.24vw), 2.66rem);
    --size-step-4: clamp(2.44rem, calc(2.05rem + 1.93vw), 3.55rem);

    --space-zero: clamp(0rem,-0.02rem + 0.11vw,0.0625rem);
    --space-3xs: clamp(0.3125rem,0.29rem + 0.11vw,0.375rem);
    --space-2xs: clamp(0.5625rem,0.49rem + 0.34vw,0.75rem);
    --space-xs: clamp(0.875rem,0.78rem + 0.46vw,1.125rem);
    --space-s: clamp(1.125rem,0.98rem + 0.69vw,1.5rem);
    --space-m: clamp(1.6875rem,1.47rem + 1.03vw,2.25rem);
    --space-l: clamp(2.25rem,1.97rem + 1.38vw,3rem);
    --space-xl: clamp(3.375rem,2.95rem + 2.07vw,4.5rem);
    --space-2xl: clamp(4.5rem,3.93rem + 2.76vw,6rem);
    --space-3xl: clamp(6.75rem,5.90rem + 4.14vw,9rem);
    --space-4xl: clamp(9rem,7.86rem + 5.52vw,12rem);
    --space-3xs-2xs: clamp(0.3125rem,0.15rem + 0.80vw,0.75rem);
    --space-2xs-xs: clamp(0.5625rem,0.35rem + 1.03vw,1.125rem);
    --space-xs-s: clamp(0.875rem,0.64rem + 1.15vw,1.5rem);
    --space-s-m: clamp(1.125rem,0.70rem + 2.07vw,2.25rem);
    --space-m-l: clamp(1.6875rem,1.19rem + 2.41vw,3rem);
    --space-l-xl: clamp(2.25rem,1.40rem + 4.14vw,4.5rem);
    --space-xl-2xl: clamp(3.375rem,2.38rem + 4.83vw,6rem);
    --space-2xl-3xl: clamp(4.5rem,2.79rem + 8.28vw,9rem);
    --space-3xl-4xl: clamp(6.75rem,4.76rem + 9.66vw,12rem);
    --space-s-l: clamp(1.125rem,0.41rem + 3.45vw,3rem);
    --space-s-xl: clamp(1.125rem,-0.16rem + 6.21vw,4.5rem);
    
    --width-inner: clamp(16rem,var(--wrapper-max-width,100vw),85rem);/*maybe 80rem fits beter?*/
    --width-article: 65ch;

    /* --gutter: var(--space-xs-xs); */
    --gutter: var(--space-s-l);

    --transition-base: 250ms ease;
    --transition-movement: 200ms linear;
    --transition-fade: 300ms ease;
    --transition-bounce: 500ms cubic-bezier(0.5,0.05,0.2,1.5);

    --box-shadow-primary: 0 1px 1px rgba(0,0,0,.075), 0 2px 2px rgba(0,0,0,.075), 0 4px 4px rgba(0,0,0,.075), 0 8px 8px rgba(0,0,0,.075), 0 16px 16px rgba(0,0,0,.075);

    /* set to 0 for no radius, remove to add */
    --is-border-radius: 0;
    --border-radius: var(--is-border-radius,calc(var(--gutter)*0.25));
    /* --border-radius--pill: var(--is-border-radius,100vh); */
    --border-radius--pill: 100vh;

    --light-opacity: 1;
    --colored-opacity: 1;
}


/* @media (min-width: 350px) {
    :root{
        --gutter: var(--space-xs-s);
    }
}

@media (min-width: 600px) {
    :root{
        --gutter: var(--space-s-l);
    }
} */


html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

*, :after, :before {
    box-sizing: border-box;
    outline-offset: 7px;
    max-width: min(100vw,100%);
}


img,svg,video,picture{
    max-width: 100%;
    height: auto;
}

:focus-visible{
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    transition: outline-offset .2s ease-in;
}

::selection{
    background-color: rgba(5, 126, 197,8);
    color: #000;
}

@supports (-webkit-overflow-scrolling: touch) {
    html {
        font: -apple-system-body;
    }
}

body {
    /* background: var(--color-light) url(images/samhall-blurry.svg) no-repeat center center; */
    background: var(--color-primary);
    background-size: cover;
    color: var(--color-dark);
    font-family: sans-serif;
    font-size: var(--size-step-0);
    line-height: 1.5;
    margin:0;
    min-height: 100vh;
    overflow-wrap: break-word;
}

.svg-bg{
    opacity:var(--bg-opacity,.75);
    position: fixed;
    inset:0;
    min-width: 100vw;
    min-height: 100vh;
    display: none;
    user-select: none;
    pointer-events: none;
    max-width: initial;
}

.svg-symbols{
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 0;
    display: none;
}

.sr-only.site-skip:focus{
    all:unset;
    clip: revert;
    clip-path: revert;
    height: revert;
    overflow: revert;
    position: relative;
    white-space: revert;
    width: revert;
    margin-inline: auto;
    display: block;
    text-align: center;
    padding: var(--size-step-0);
    width: 100%;
    z-index: 1500;
    background: var(--color-link);
    color: #fff;
}

.footer{
    background-color: rgba(var(--color-rgba-primary),var(--light-opacity,.25));
    background-size: cover;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.footer > div{
    gap: var(--gutter);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

footer .svg-bg-footer{
    position: absolute;
    z-index: -1;
    opacity: var(--bg-opacity,.75);
    top: 0;
    left:0;
    display: block;
    user-select: none;
    pointer-events: none;
    max-width: initial;
    object-fit: cover;
}

.more-logo{
    display: flex;
    gap: var(--gutter);
    justify-content: space-between;
    flex-wrap: wrap;
}

.more-logo > *{
    flex:1 1 20rem;
}

.more-logo__image{
    display: flex;
    justify-content: center;
    align-items: center;
}
.more-logo__image svg{
    transform: scale(.75);
}




.sr-only {
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
}

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


.inner{
    max-width: var(--width-inner);
    margin-inline:auto;
}
.section{
    padding:var(--gutter);
}
.section > * + *{
    margin-top:var(--gutter);
}
.section--top{
    background-color: rgba(var(--color-rgba-primary),var(--colored-opacity,.9));
    color: var(--color-light);
    width:100%;
    padding-top: calc(var(--gutter)*0.5);
    padding-bottom: 0;
    transition: height .15s ease-in-out, outline-offset .25s ease-in,transform .15s linear;
    
}
.section--top a,
.section--top a:hover,
.section--top a:focus,
.section--top button,
.section--top button:hover,
.section--top button:focus,
.education-navigation a,
.education-navigation a:hover,
.education-navigation a:focus,
.education-navigation button,
.education-navigation button:hover,
.education-navigation button:focus{
    color:currentColor;
}

.sticky-top{
    width: 100%;
    height: calc(var(--gutter)*0.5);
    border-bottom-left-radius: var(--border-radius,calc(var(--gutter)*0.25));
    border-bottom-right-radius: var(--border-radius,calc(var(--gutter)*0.25));
    background-color: rgba(var(--color-rgba-primary),var(--colored-opacity,.9));
    box-shadow: var(--box-shadow-primary);
    /*position: sticky;*/
    top:0;
    z-index: 10;
    border-bottom: 1px solid var(--color-primary-light);
}

.top{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* gap:calc(var(--gutter)/4); */
    gap: var(--size-step-0);
}

.top > *{
    flex: 1 1 15rem;
    margin:auto;
    justify-content: center;
}

.top__navigation{
    display: flex;
    flex-wrap: wrap;
    /* gap: calc(var(--gutter)*1); */
    gap: var(--size-step-0);
    color: currentcolor;
    align-items: center;
    flex: 1 1 23.5rem;
    container-type: inline-size
}



.top__navigation ul{
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--gutter)*.25);
    justify-content: center;
    flex: 1 1 20rem;
    background: rgba(0,0,0,0.25);
    border-radius: 1rem;
}

 .site-search,
.top__navigation a{
    display: flex;
    line-height: 1;
    gap: calc(var(--gutter)*.25);
    flex-direction: column;
    align-items: center;
    font-size: var(--size-step-0);
    padding: calc(var(--gutter)*.33);
    width: 100%;
}
.top__logo a{
    padding: calc(var(--gutter)*.25);
    display: flex;
    margin:auto;
}

.top__logo a,
.top__navigation .search-wrapper,
.top__navigation a{
    border-radius: calc(var(--gutter)/4);
    text-decoration: none;
    font-weight: bold;
    outline-offset: -4px;
    border: 1px solid transparent;
    outline-color: currentcolor;
    transition: background .15s ease-in-out, outline-offset .25s ease-in,transform .15s linear,border-color .15s ease-in;
}

.top__logo a:focus-visible,
.top__logo a:hover,
.top__navigation a:focus-visible,
.top__navigation a:hover{
    transform: scale(1.05);
    background-color: var(--color-primary);
    border-color: currentColor;
}

@container (max-width: 20rem) {
    .top__navigation > *{
        width:100%;
    }
    .top__navigation ul{
        flex-direction: column;
        width:100%;
    }
    .top__navigation a{
    flex-direction: row;
    }
  }

.top__navigation .search-wrapper:hover,
.top__navigation .search-wrapper:focus-within{
    background-color: var(--color-primary);
}

.top__logo a:active,
.top__navigation a:active{
    transform: scale(0.98);
}

.site-search{
    /* justify-content: center; */
    align-items: center;
    display: flex; 
}
.site-search{
    /* justify-content: center; */
    align-items: center;
    display: flex;
}
.search-wrapper{
    /* justify-content: center; */
    align-items: center;
    display: flex;
    position: relative;
    width: 100%;
    color:#000;
}

.search-form{
    width:100%;
}


.search-wrapper > label{
    /* order: 1; */
    margin-inline-end: auto;
}
.search-wrapper > input{
    font-size: inherit;
    border-radius: 100vh;
    border: 0;
    padding: 0.25em 1em;
    padding-inline-end: 3.5em;
    outline-color:#fff;
    transition: width .15s ease-in-out;
}

.search-wrapper:focus-within > input{
}


.justify--space-between{
    justify-content: space-between;
}

.justify--start{
    justify-content: start;
}

.flex-cards,
.grid-cards{
    display: flex;
    flex-wrap: wrap;
    gap:var(--gutter);
}

.card,
.more-logo,
.news-card,
.mini-card,
.education-section,
.flex-cards > *,
.grid-cards > *{
    padding: var(--gutter);
    border-radius: var(--border-radius,calc(var(--gutter)*0.25));
    background: rgba(var(--color-rgba-light),var(--light-opacity,.65));
    /* min-height:25rem; */
    flex:1 1 20rem;
    grid-column:1/2;
    color:rgba(20,20,20,var(--light-opacity,.8));
    box-shadow: var(--box-shadow-primary);
}

.bg--primary,
.mini-card.bg--primary,
.flex-cards > .bg--primary,
.grid-cards > .bg--primary{
background: rgba(var(--color-rgba-primary),var(--colored-opacity,.9));
color: rgba(255,255,255,.9);
}
.bg--secondary,
.mini-card.bg--secondary,
.flex-cards > .bg--secondary,
.grid-cards > .bg--secondary{
background: rgba(var(--color-rgba-secondary),var(--colored-opacity,.75));
color: rgba(255,255,255,1);
}

.bg--standout,
.mini-card.bg--standout,
.flex-cards > .bg--standout,
.grid-cards > .bg--standout{
background: rgba(var(--color-rgba-standout),var(--colored-opacity,.75));
color: rgba(0,0,0,1);
}

.bg--secondary-light,
.mini-card.bg--secondary-light,
.flex-cards > .bg--secondary-light,
.grid-cards > .bg--secondary-light{
    background: var(--color-secondary-light);
    color: #000;
}

.news-cards.is-page{
    padding: var(--gutter);
    padding-top: 0;
}

.news-card,
.mini-card{
    padding: calc(var(--gutter)*0.5) var(--gutter) ;
    /* margin-bottom: calc(var(--gutter)*0.5); */
    display:flex;
    gap: calc(var(--gutter)*.5);
    flex-wrap: wrap;
}

.news-card > *,
.mini-card > *{
    margin:0;
    flex:1;
}
.mini-card.mini-card--icon{
    flex-basis: 25rem;
    flex-wrap: wrap;
    padding: calc(var(--gutter)*0.5) ;
}
.mini-card .mini-card__icon{
    justify-content: center;
    align-items: center;
    display: flex;
}

.flex-cards .wrap-25{
    flex-basis:25rem;
}

.stack{
    flex: 4 1 10rem;
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    gap: calc(var(--gutter)*0.25);
}
.contact-cards{
    align-content: start;
}
.contact-cards .mini-card .stack *{
    margin:0;
    line-height: 1.1;
}

.contact-cards a{
    align-items: center;
    max-height: fit-content;
}



.mini-card__icon svg{
    font-size: var(--size-step-4);
    width: 1em;
    height: 1em;
}

.contact-type{
    font-weight: normal;
    font-size: var(--size-step-2);
}
.contact-value{
    font-weight: bolder;
    font-size: var(--size-step-1);
}

a.mini-card{
    text-decoration: none;
    color:currentcolor;
    border:1px solid transparent;
    border-radius: calc(var(--gutter)/4);;
    text-decoration-color: currentColor;
    transition: background .15s ease-in-out, outline-offset .25s ease-in,transform .15s linear,border-color .15s linear;
}

a.mini-card.bg--primary:focus-visible,
a.mini-card.bg--primary:hover{
    border-color: var(--color-rgba-light);
    transform: scale(1.05);
    background-color: var(--color-primary);
}

a.mini-card.bg--primary:active{
    transform: scale(0.98);
}


a.mini-card .contact-value{
    text-decoration: underline;
    /* text-decoration-color: var(--color-primary); */
    text-decoration-thickness: 0.15ex;
    text-underline-offset: 0.3ex;
}

.mini-card.section-heading{
    width: max-content;
    max-width: 100%;
    flex:0;
    margin-top: var(--gutter);
}
.mini-card.no-radius,
.mini-card.section-heading{
    display: none;
}

.news-cards{
    margin-block: calc(var(--gutter)*1);
}


.news-cards{
    justify-content: flex-start;
}

.flex-cards > .news-card{
    max-width: 23rem;
    padding: 0 0 calc(var(--gutter)*0.5) 0;
    overflow: hidden;
    flex: 1 1 20rem;
    background-color: rgba(var(--color-rgba-light),var(--light-opacity,.85));
    border: 2px solid #5e5e5e;
    border-radius: calc(var(--gutter)/4);
    text-decoration: none;
    color: var(--color-dark);
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, transform .15s ease-in-out;
}

.flex-cards > .news-card:focus-visible,
.flex-cards > .news-card:hover{
    background: rgba(255,255,255,.45);
    border-color: var(--color-dark);
    transform: scale(1.025);
}

.flex-cards > .news-card:focus-visible .news-card__heading,
.flex-cards > .news-card:hover .news-card__heading{
    text-decoration: underline;
}

.flex-cards > .news-card > *{
    flex:0;
    width: 100%;
}

.flex-cards > .news-card > *:not(.news-card__image){
    padding: 0 calc(var(--gutter)*0.5);
}

.news-card__heading{
    font-size: var(--size-step-2);
}

.news-card__content > *{
    margin:0;
}

.lede-content .date,
.news-card__date{
    font-style: italic;
    font-weight: light;
    color:#5E5E5E;
}


.news-card__image{
    order:-1;
    display:flex;
    aspect-ratio: 16/9;
    max-width: 100%;
}
.news-card__image img{
    object-fit: cover;
    opacity: .9;
    flex:1;
    width: 100%;
    max-height: 100%;
}
.news-card__read-more{
    display: flex;
    margin-block-start: auto;
}

.news-card__read-more > div{
    margin-inline-start: auto;
    align-items: center;
    display: flex;
    white-space: nowrap;
}
.news-card__read-more svg{
    font-size: 2em;
    margin-inline-start: .25em;
}




.flex-cards > div.no-card,
.grid-cards > div.no-card{
    padding:0;
    background: none;
    box-shadow: none;
    gap: calc(var(--gutter)*0.5);
    display:flex;
    flex-wrap: wrap;
}
.flex-cards > div.no-card > .media,
.grid-cards > div.no-card > .media{
    background: none;
}

.grid-cards {
    --auto-grid-min-size: min(20rem,100%);
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
   grid-gap: var(--gutter);
 }

 .media{
    border-radius: var(--border-radius,calc(var(--gutter)*0.25));
    box-shadow: var(--box-shadow-primary);
    overflow:hidden;
    background: rgba(var(--color-rgba-light),var(--light-opacity,.65));
    width:100%;
    aspect-ratio: 16/9;
    height: max-content;
 }

 .media iframe{
    width:100%;
    height:auto;
    aspect-ratio: 16/9;
    opacity: .95;
    transition: opacity .15s ease-in-out;
 }
 .media iframe:focus-within,
 .media iframe:focus-visible,
 .media iframe:hover{
    opacity: 1;
}

.top__logo__heading{
    /* display: flex; */
    /* height: fit-content; */
    /* max-height: 2.375rem; */
    /* width: var(--space-4xl); */
    max-width: 95vw;
}
.top__logo__heading__image{
    display:inline-block;
    width:100%;
    max-width: 30rem;
    height: auto;
    max-height:fit-content;
}

.educations > *{
    flex-direction: column;
}
.flex-cards .no-card.education-sections{
    flex-direction: column;
    flex-wrap: nowrap;
}

.educations h3,
.educations h2:not(.icon-heading){
    font-size: var(--size-step-2);
    margin: 0;
    scroll-margin-top: calc((var(--gutter)*.85));
}

.educations > .no-top-gutter{
    padding-top:0;
}

.education-section{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gutter);
    padding: calc(var(--gutter)*0.5);
    border: 2px solid var(--color-dark);
}

.education-navigation{
    flex:1 1 20rem;
    max-width: 20rem;
    height: max-content;
    max-height: calc(100vh - var(--gutter));
    position: sticky;
    top: var(--gutter);
    color:var(--color-dark);
    border: 2px solid var(--color-dark);
}

.education-card{
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--gutter)*.5);
    border: 2px solid #5e5e5e;
    border-radius: calc(var(--gutter)/4);
    overflow: hidden;
    background: rgba(250,250,250,.35);
    /* box-shadow: var(--box-shadow-primary); */
    padding: calc(var(--gutter)*.25);
    color: var(--color-dark);
    text-decoration: none;
    transition: border-color .15s ease-in,background .15s ease-in, transform .15s ease-in;
}

.education-card:focus-visible,
.education-card:hover{
    border-color:#000;
    transform: scale(1.025);
    color: var(--color-dark);
    background:#fff;
}
.education-card:focus-visible .education-card__heading,
.education-card:hover .education-card__heading{
    text-decoration: underline;
}


.education-card-text-wrapper{
    /* background: rgba(200,200,200,.5); */
    border-radius: var(--border-radius,calc(var(--gutter)*0.25));
    /* padding: calc(var(--gutter)*.5); */
}

.education-card__heading{
    margin: 0;
    font-size: var(--size-step-1);
}

.education-card__content > *{
    margin-bottom: 0;
    text-wrap: balance;
}
.education-card__content > *:last-child{
    /* margin-bottom: calc(var(--gutter)*.5); */
}

.education-card__image{
    order: -1;
    /* aspect-ratio: 4/3; */
    /* padding: calc(var(--gutter)*.5); */
    display: flex;
    align-items: start;
    justify-content: center;
    /* background: rgba(200,200,200,.5); */
    border-radius: calc(var(--gutter)/4);
    flex: 1 1 20%;
    min-width: 8.75rem;
}
.education-card__image img{
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/3;
    margin: 0;
    border-radius: calc(var(--gutter)/4);
}

.education-card__cta{
    margin-top: auto;
    /* margin-bottom: calc(var(--gutter)*.25); */
}

.education-navigation-wrapper{
    max-width: 20rem;
    background: none;
    box-shadow: none;
}
.education-navigation{
    background: var(--color-primary-light);
}

.education-navigation__heading{
    padding: calc(var(--gutter)*.5);
}
.education-navigation > div{
    padding-bottom: calc(var(--gutter)*.5);
}
.education-navigation ul{
    display:flex;
    flex-direction: column;
    max-height: calc(100vh - (var(--size-step-2) + (var(--gutter)*3)));
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--gutter)*.5);
}
.education-navigation li{
    display: flex;
    flex:1;
}
.education-navigation a{
    --border: 2px solid rgba(var(--color-rgba-primary),.45);
    flex:1;
    padding: calc(var(--gutter)*.25) calc(var(--gutter)*.5);
    border-top: var(--border);
    text-decoration: none;
    font-size: var(--size-step-1);
    font-weight: bold;
    transition: all .2s linear;
}
.education-navigation li:last-child a{
    border-bottom: var(--border);
}

.education-navigation a:focus-visible,
.education-navigation a:hover{
    transform: scale(1.05);
    color:#000;
    box-shadow: var(--box-shadow-primary);
    outline-offset: -12px;
    background:#fff;
    text-decoration: underline;
    box-shadow: inset 0 0 0 2px #000;
}




.no-radius{
    border-radius: 0;
}

.no-padding{
    padding: 0;
}

nav ul,
nav ol{
    margin:0;
    padding: 0;
    list-style: none;
}

.icon-link{
    display: flex;
    gap: calc(var(--gutter)*.25);
    justify-content: center;
    align-items: center;
}

.link__text{
    flex: 1;
    line-height: 1.2;
}

.icon-heading{
    display: flex;
    gap: calc(var(--gutter)*.25);
    justify-content: center;
    align-items: center;
    max-width: max-content;

}


.button{
    padding: calc(var(--gutter)*.25) calc(var(--gutter)*.5);
    background: var(--color-button-bg);
    color: var(--color-button-text);;
    /* text-decoration-color: currentColor; */
    text-decoration: none;
    border-radius: var(--border-radius--pill,100vh);
    border:2px solid transparent;
    font-weight: bold;
    display: flex;
    gap: calc(var(--gutter)*.25);
    max-width: max-content;
    justify-content: center;
    align-items: center;
    transition: background .15s ease-in-out, outline-offset .25s ease-in, transform .15s linear;
}

.button:focus-visible,
.button:hover{
    transform: scale(1.05);
    background-color: var(--color-hover);
    color:#fff;
}

.button:active{
    transform: scale(0.98);
}

.button.button--full{
    width:100%;
    max-width: 100%;
}
.button.button--full .button__text{
    flex:unset;
}


.button__text{
    flex: 1;
    text-align: center;
    line-height: 1.2;
}

.heading__icon,
.link__icon,
.button__icon{
    width: 1em;
    height: 1em;
    font-size: 1.5em;
    vertical-align: middle;
}

.margin--bottom{
    margin-bottom: var(--gutter);
}
.margin--bottom h2{
    margin: 0;
}

h1{
    margin:0;
}

.flow a:not(.button){
    border-radius: var(--border-radius,calc(var(--gutter)*0.25));
}

a{
    color: var(--color-link,currentColor);
    text-decoration-color: currentColor;
    text-decoration-thickness: 0.3ex;
    text-underline-offset: 0.3ex;
    transition: color .15s ease-in-out, outline-offset .25s ease-in;
}

a:not([target="_blank"]) .new-tab{
    display: none;
}
a[target="_blank"]:not(.button) svg{
    font-size: .8em;
    margin-inline-start: 0.2em;
    vertical-align: text-top;
}
a:hover,
a:focus-visible{
    color: var(--color-hover);
}

h1,
h2,
h3 {
    font-family: Inter, sans-serif;
    font-weight: 800;
    line-height: 1.1;
    text-wrap: balance;
    letter-spacing: .01em;
}

h1 {
    font-size: var(--size-step-4);
}

h2 {
    font-size: var(--size-step-3);
}

h3 {
    font-size: var(--size-step-2);
}

ul,
ol {
    padding-inline-start: 1em;
}

blockquote {
    margin-inline:0;
    padding-inline-start: 1em;
    border-inline-start: 0.3em solid;
    font-style: normal;
    font-weight: bold;
    font-size: var(--size-step-1);
}

blockquote p {
    max-width: 50ch;
    text-wrap: balance;
}

figure{
    margin-inline:0;
}

figcaption,blockquote cite{
    font-style: italic;
    font-size: var(--size-step-0);
    color:#5E5E5E;
    max-width: 50ch;
    text-wrap: balance;
}

.content li::marker{
    color: var(--color-primary);
}

.content li + li{
    margin-block-start: calc(var(--flow-space, 1em)/2);
}
/* Utilities */
blockquote > * + *,
.flow > * + * {
    margin-block-start: var(--flow-space, 1em);
}

blockquote > *:first-child,
    .flow > *:first-child {
    margin-top: 0;
}

/* Flow and rythm */
:is(h1, h2, h3, blockquote) {
    --flow-space: 1.5em;
}

:is(h1, h2, h3) + * {
    --flow-space: 0.5em;
}

/* Line lengths */
.content {
    max-width: 65ch;
    /* margin-inline: auto; */
}

/* .content *{
    overflow-wrap: break-word;
} */

blockquote {
    max-width: 55ch;
}

h1 {
    max-width: 25ch;
}

h2,
h3 {
    max-width: 35ch;
}

p,li,blockquote{
    max-width: 65ch;
}

.block-gutter{
    padding-block: var(--gutter);
}

/* Blocks */
.lede {
    font-size: var(--size-step-1);
    font-weight: bold;
    max-width: 50ch;
    text-wrap: balance;
}

.lede + * {
    --flow-space: 2em;
}

.article-wrapper{
    padding:0;
}

.lede-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
    /* background: var(--color-secondary-light); */
    justify-content: center;
}

.lede-wrapper:not(.lede-page) > *{
    flex:1 1 25rem;
    width:50%;
}

.lede-page{
    background:none;
}
.lede-content.content{
    max-width: 100%;
}

.lede-content{
    padding: var(--gutter);
}

.lede-media{
    display: flex;
    justify-content: center;
    max-width: 100%;
    aspect-ratio: 16/9;
}
.lede-media img{
    object-fit: cover;
    max-height: 100%;
}

.content-wrapper{
    padding:var(--gutter);
    background: #fff;
}

.wp-block-embed__wrapper iframe,
.embed > *{
    aspect-ratio: 16/9;
    max-width: 100%;
    height: auto;
}

.wp-block-table {
    width: 100%;
    overflow-x: auto;
}

.content table{
    min-width: 20rem;
    max-width: 100%;
    width:100%;
    border-spacing:0;
    border-collapse:collapse;
    background-color: #FBF8F5;
  }
  .content table th,
  .content table td{
    padding:calc(var(--gutter)/2) calc(var(--gutter)/4);
  }

  .content table thead th{
    text-align: start;
    font-weight: bold;
    border-bottom: 2px solid var(--color-primary);
  }
  .content table tbody tr{
    border-bottom: 2px solid var(--color-light);
  }

/*CHeck if there are 3 or more rows and add odd/even styling */
.content table:has(tbody tr:nth-child(3)) tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}


.feed-wrapper{
    max-width: 50rem;
    margin-inline:auto;
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--gutter));
    padding-bottom: var(--gutter);
}
.feed-wrapper .feed{
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
}






/* Search */
  
  
  ::placeholder{
    color:#767676;
  }
  
  .visually-hidden{
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
  }

  .search-wrapper{
    flex-wrap: wrap;
  }
  
  .search__label{
    display:block;
    margin-bottom:.25rem;
    flex-basis: 100%;
  }
  .search__field{
    padding-block:.25rem;
    padding-inline-start: .75rem;
    padding-inline-end: .5rem;
    font-size:inherit;
    border:2px solid black;
    border-radius:5rem;
    width:100%;
    -moz-appearance:none;
    -webkit-appearance:none;
  }
  .search__field::-webkit-calendar-picker-indicator,
  .search__field::-webkit-search-decoration,
  .search__field::-webkit-search-cancel-button,
  .search__field::-webkit-search-results-button,
  .search__field::-webkit-search-results-decoration{
    display: none;
    color:transparent;
    opacity:0;
    pointer-events:none;
  }
  
  .search-button-wrapper{
    position:absolute;
    inset-inline-end:.25rem;
    inset-block:0;
    height:100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .search__button{
    all:unset;
    color:#000;
    border:none;
    background:transparent;
    height:100%;
    width:auto;
    aspect-ratio:1/1;
    cursor:pointer;
    font-size:inherit;
    border-radius:50%;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    position:relative;
    outline:none;
    z-index:999;
  }
  
  .search__button--reset span,
  .search-button-divider{
    opacity:0.66;
    transition:opacity .1s ease-in;
    animation: .25s linear forwards scale-up;
  }
  
  .search__button--reset span{
    animation: .25s linear forwards scale-up;
  }
  
  .search-button-divider{
    transform:scale(0);
    animation: .25s linear .1s forwards scale-up;
  }
  .search__button--send{
    animation: .25s linear forwards fade-in-from-66;
  }
  
  
  
  .search__button--reset:hover span,
  .search__button--reset:focus-visible span{
    opacity:1;
  }
  
  .search__button::before{
    content:"";
    display:block;
    height:100%;
    width:100%;
    position:absolute;
    z-index:-1;
  }
  .search__button:hover::after,
  .search__button:focus-visible::after{
    content:"";
    display:block;
    height:75%;
    width:75%;
    aspect-ratio:1/1;
    border-radius:50%;
    background:var(--color-secondary-light);
    z-index:-1;
    position:absolute;
  }
  .search__button:focus-visible::after{
    outline:2px solid var(--color-link);
  }
  
  .search__button:hover .tooltip{
    all:unset;
    color:#fff;
    font-size:1rem;
    position:absolute;
    text-align:center;
    bottom:-2rem;
    padding:.25rem .5rem;
    border-radius:5rem;
    background:rgba(0,0,0,.8);
  }
  
  .search__button:hover .tooltip::before{
    content:"";
    width:90%;
    position:absolute;
    top:-.5rem;
    padding:.5rem;
    left:50%;
    transform:translatex(-50%);
    z-index:-1;
  }
  .search__button:hover .tooltip::after{
    content:"";
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0,0,0,.8);
    position:absolute;
    bottom:100%;
    left:50%;
    transform:translatex(-50%);
  }
  
  
  /*
  .search__button.search__button--disabled{
    cursor:not-allowed;
    color:#767676;
    background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0cm9rZT0iY3VycmVudENvbG9yIiBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggaWQ9InNlYXJjaC1idXR0b24taWNvbiIgZD0iTTE1IDE1TDIxIDIxTTEwIDE3QzYuMTM0MDEgMTcgMyAxMy44NjYgMyAxMEMzIDYuMTM0MDEgNi4xMzQwMSAzIDEwIDNDMTMuODY2IDMgMTcgNi4xMzQwMSAxNyAxMEMxNyAxMy44NjYgMTMuODY2IDE3IDEwIDE3WiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=");
    background-size:24px 24px;
    background-position:center center;
    background-repeat:no-repeat;
    opacity:0.66;
  }
  */
  button.search__button.search__button--disabled{
    background-image:none;
    opacity:1;
    color:inherit;
    cursor:not-allowed;
  }
  button.search__button.search__button--disabled svg{
    opacity:0.66;
  }
  
  .search__button.search__button--disabled:hover::after{
    background:none;
  }
  
  .search__button--reset,
  .search__button--send{
    display:none;
  }
  .search__field:not(:placeholder-shown) ~ .search-button-wrapper .search__button--reset,
  .search__field:not(:placeholder-shown) ~ .search-button-wrapper .search__button--send,
  .search__field:not(:placeholder-shown) ~ .search-button-wrapper .search-button-divider{
    display:flex;
  }
  .search__field:not(:placeholder-shown) ~ .search-button-wrapper .search-button-divider{
    opacity:1;
  }
  .search__field:not(:placeholder-shown) ~ .search-button-wrapper .search__button--disabled{
    display:none;
  }
  .search-button-divider{
    opacity:0.66;
    display:none;
    user-select:none;
    height:100%;
    align-items:center;
  }
  .search-button-divider::after{
    content:"";
    display:block;
    width:2px;
    height:75%;
    background:#000;
    border-radius:4px;
  }
  
  .search__suggestions-wrapper{
    position:absolute;
    top: 100%;
    width:100%;
    z-index: 10;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-in-out;
  }
  
  .search__suggestions-wrapper.search__suggestions-wrapper--open{
    grid-template-rows: 1fr;
  }
  
  .search__suggestions{
    background:#fff;
    border-radius:1rem;
    width:100%;
    list-style:none;
    padding: 0;
    margin: 0;
    overflow:hidden;  
  }
  .search__suggestions-wrapper.search__suggestions-wrapper--open .search__suggestions{
    padding: .5rem 0;
  }
  
  
  .search__suggestions .search-item,
  .no-results{
    display:block;
    width:100%;
    padding:.5rem 1rem;
    color:inherit;
    text-decoration:none;
    font-size:1.1rem;
    cursor:pointer;
  }

  .no-results{
    color:#5e5e5e;
  }

  .search__suggestions a,
  .search__suggestions a:visited{
    unset:all
  }
  .search__suggestions .search-item--focus,
  .search__suggestions .search-item:hover,
  .search__suggestions .search-item:focus-visible{
    background:var(--color-link);
    color:#fff;
  }
  
  .pagination-heading{
    font-size: 1.1rem;
    font-weight: bold;
  }
  
  .pagination-list-wrapper{
    display: flex;
    align-items: start;
    gap: 1rem;
  }
  
  .pagination-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .pagination-list-wrapper li{
    margin:0;
  }
  
  .pagination-link{
    display:flex;
    justify-content: center;
    align-items: center;
    padding: .75rem;
    background: lightblue;
    color:#000;
    border: 1px solid #000;
    border-radius: .25rem;
    text-decoration: none;
    position: relative;
  }
  
  .pagination-link__current{
    background: #fff;
    border: none;
  }
  
  .pagination-link__current::before{
    content: '';
    display: block;
    inline-size: .5rem;
    block-size: .5rem;
    background: #000;
    border-radius: 50%;
    position:absolute;
    inset-block-end:0;
  }
  
  .pagination-link:not(.pagination-link__current):is(:hover,:focus-visible){
    transform: scale(1.1);
    transition: all .25s ease;
  }
  
  
  .pagination-link__next{
    order: 3;
  }
  
  
  @keyframes scale-up {
    0%{
      transform:scale(0);
    }
    100%{
      transform:scale(1);
    }
  }
  @keyframes fade-in-from-66 {
    0%{
      opacity:0.66;
    }
    100%{
      opacity:1;
    }
  }
  
  
  
  
