/* Font */
.kanit-thin {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.kanit-extralight {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.kanit-light {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.kanit-regular {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.kanit-medium {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.kanit-semibold {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.kanit-bold {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.kanit-extrabold {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.kanit-black {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.kanit-thin-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.kanit-extralight-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.kanit-light-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.kanit-regular-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.kanit-medium-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.kanit-semibold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.kanit-bold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.kanit-extrabold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.kanit-black-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* Utilities */
.color-primary {
    color: #1B1B37 !important;
}

.color-secondary {
    color: #D54E7E !important;
}

.color-white {
    color: #fff !important;
}

.bg-light {
    background-color: #F1EDF5;
}

.bg-primary {
    background-color: #1B1B37;
}

.bg-secondary {
    background-color: #D54E7E;
}

.size-1 {
    font-size: .875rem;
}

.size-2 {
    font-size: 1rem;
}

.size-3 {
    font-size: 1.125rem;
}

.size-4 {
    font-size: 1.25rem;
}

.size-5 {
    font-size: 1.375rem;
}

.size-6 {
    font-size: 1.625rem;
}

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

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

/* Base */
html {
    font-size: unset;
}

body {
    font-family: Kanit, Arial, Helvetica, sans-serif;
    font-weight: 300;
}

hr {
    border-bottom-color: #1B1B37;
    width: 140px;
}

table {
    color: #1B1B37;
}

thead {
    font-weight: 500;
}

thead tr {
    border-bottom-color: #1B1B37;
}

td {
    text-align: left;
}

thead th {
    background-color: transparent;
    text-align: left;
    color: #1B1B37;
}

thead th img {
    display: block;
    margin-bottom: 0.5rem;
}

tbody tr {
    border-bottom-color: #1B1B37;
}

table th,
table td {
    padding: .5rem;
}

tbody th,
tfoot th {
    text-align: left;
    font-weight: 400;
}

tbody td {
    font-size: 1.375rem;
    font-weight: 300;
}

tfoot tr {
    border-bottom-color: #1B1B37;
}

tfoot th,
tfoot td {
    background-color: #F1EDF5 !important;
}

tfoot td {
    font-size: 1.375rem;
    font-weight: 600;
}

.table-color head th:nth-child(2) {
    color: #1B1B37;
}

.table-color thead th:nth-child(3) {
    color: #D54E7E;
}

.table-color thead th:nth-child(4) {
    color: #9B3761;
}

.table-color tbody tr:first-of-type {
    border-top-color: #1B1B37;
}

.table-color tbody td:nth-child(2),
.table-color tfoot td:nth-child(2) {
    color: #1B1B37;
}

.table-color tbody td:nth-child(3),
.table-color tfoot td:nth-child(3) {
    color: #D54E7E;
}

.table-color tbody td:nth-child(4),
.table-color tfoot td:nth-child(4) {
    color: #9B3761;
}

.table-blocks {
    border-collapse: separate;
    border-spacing: 13px;
}

.table-blocks tr {
    border: none !important;
}

.table-blocks thead th {
    text-align: center;
}

.table-blocks tbody td {
    background-color: #D54E7E;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: .75rem 1.5rem
}

:target {
    scroll-margin-block: 7ex;
}

::selection {
    background-color: #D54E7E;
    color: #fff;
}

a:hover {
    text-decoration: underline;
}

/* Overwrites */
.section__title {
    color: #fff;
    letter-spacing: -.02px;
    margin-bottom: 2.5rem;
    font-size: 3.125rem;
    text-align: center;
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    line-height: 1;
}

.counter__number {
    color: #fff;
    font-size: 4.375rem;
    letter-spacing: -0.7px;
    line-height: 1;
}

.counter__text {
    color: #fff;
    font-size: 1.125rem;
    letter-spacing: -0.18px;
    max-width: none;
}

img.foto {
    width: 100%;
    height: 593px;
    object-fit: cover;
}

/* Header */
.header {
    background-color: transparent;
    /* background-color: #666; */
    /* position: static; */
    /* outline: 2px solid red; */
}

.header::after {
    content: '';
    display: block;
    width: 100%;
    height: 75px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, transparent 100%);
    opacity: .2;
}

.header.active .header__container {
    background-color: #1B1B37;
    transition: background-color 0.3s ease;
}


.header__inner {
    align-items: flex-end;
    flex-wrap: wrap;
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 2rem;
}

/* Main nav */
.main-nav {
    display: none;
}

@media print, screen and (min-width: 50em) {
    .main-nav {
        display: block;
        flex-grow: 1;
        flex-basis: min-content;
    }
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    justify-content: center;
}

.main-nav ul a {
    color: #fff;
}

.hamburger {
    position: relative;
    z-index: 8;
}


@media print, screen and (min-width: 40em) {
    .position-right {
        width: 60%;
    }
}

@media print, screen and (min-width: 64em) {
    .position-right {
        width: 40%;
    }
}

/* off canvas */
.off-canvas {
    background-color: #1B1B37;
}

.off-canvas.is-transition-overlap {
    z-index: 7;
}

.off-canvas__inner {
    padding: 10rem 2.5rem;
}

.off-canvas__menu {
    width: max-content;
}

.off-canvas__menu li+li {
    margin-top: 0;
}

.off-canvas__menu li:last-child img {
    height: 18px;
    margin-left: -6px;
}

.off-canvas__menu a {
    background-color: #D54E7E;
    display: block;
    border-radius: 4px;
    padding: 1rem 1rem;
    margin-top: 5px;
}

.off-canvas__menu a img {
    margin-right: 13px;
}

/* Slider */
.slider {
    background: #D54E7E url('../../../uploads23/files/content/imatge-principal@1x.jpg') no-repeat;
    /* background-color: #333; */
    background-size: cover;
    height: 37rem;
    /* outline: 2px solid yellow; */
}

.slider__box {
    background: none;
    text-align: left;
    margin-top: 0;
    /* padding: 4vh 5vh 10vh; */
    padding: 14rem 0 5rem
}

.slider__title {
    font-size: 3.125rem;
    font-weight: bold;
    font-family: "Kanit", sans-serif;
    color: #fff;
    line-height: 1;
}

.slider__title+p {
    font-size: 1.5rem;
    max-width: 20ch;
}

.slider__title span {
    font-size: 2.875rem;
    font-weight: 300;
    font-style: italic;
    display: block;
}

.button {
    border-color: #fff;
    color: #fff;
    border-radius: 4px;
    transition: none;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.26px;
}

.button:hover,
.button:focus {
    color: #fff;
    text-decoration: underline;
}

/* Xifres */
.bg-xifres {
    background: #1B1B37 url('../../../uploads23/files/content/fons-2023-xifres.svg') no-repeat 100% 0;
    background-size: cover;
}

/* Contribucions */
.bg-contributions {
    background: url('../../../uploads23/files/content/imatge-fons-contributions.jpg') no-repeat 100% 0;
    background-size: cover;
}

/* Callout */
.callout {
    background: #9B3761 url('../../../uploads23/files/content/fons-become-friend.jpg') no-repeat 100% 0;
    background-size: cover;
}

.callout__inner {
    max-width: none;
}

.callout__title {
    text-wrap: balance;
    font-weight: 500;
    letter-spacing: -0.26px;
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}

/* Core facilities */
@media print, screen and (min-width: 64em) {
    .core-facilities .fotos {
        margin-right: -1.675px;
        margin-left: -1.675px;
    }

    .core-facilities .fotos .columns {
        flex: 0 0 20%;
        max-width: 20%;
        padding-right: 1.675px;
        padding-left: 1.675px;
    }
}

.service a {
    display: block;
    transition: background-color .125s ease-in;
}

.service a:hover,
.service a:focus {
    background: #D54E7E;
}

.service a:hover img,
.service a:focus img {
    mix-blend-mode: multiply;
}

.service img {
    border-radius: 0;
    height: 175px;
}

.service__title {
    text-transform: none;
    text-align: left;
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #1B1B37;
    margin-top: 12px;
}


.communication h2,
.research-activity h2,
.research-areas h2,
.fundraising h2 {
    margin-bottom: .5rem;
}

.communication .section__text,
.research-activity .section__text,
.research-areas .section__text {
    margin-top: 0;
}

/* research activity */
.research-activity h2+p {
    text-wrap: balance;
}

.research-activity table {
    margin-top: 3.5rem;
}

/* communication */
.communication h2+p {
    text-wrap: balance;
    max-width: 60ch;
    margin: 0 auto 3.5rem;
}

.communication img {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    display: block;
}

/* chart */
.meter-group__title p {
    color: #1B1B37;
    font-weight: normal;
}

.legend__text {
    font-size: .875rem;
    font-weight: 600;
}

.legend li:first-child .legend__text {
    color: #1B1B37;
}

.legend li:last-child .legend__text {
    color: #D54E7E;
}

.progress {
    height: 2.5rem;
    /* margin-bottom: 1rem; */
    border-radius: 4px;
    background-color: #fff;
}

.progress-meter-text {
    position: static;
    /* top: 50%;
    left: 50%; */
    transform: none;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    /* white-space: nowrap; */
    border-radius: 0;
    line-height: 2.5rem;
    padding-left: 1.5rem;
}

.chart__title {
    color: #1B1B37;
    font-size: 1.25rem;
    font-weight: 500;
}

.chart__subtitle {
    color: #1B1B37;
}

/* footer */
.footer {
    color: #fff;
    background: #1B1B37 url('../../../uploads23/files/content/fons-2023-xifres.svg') no-repeat 100% 0;
    background-size: cover;
    padding: 3rem;
}

.footer img {
    margin-bottom: 3rem;
}

.footer a {
    color: #fff;
}

address {
    font-style: normal;
    margin-bottom: 5rem;
}