/* Scorecard AJAX Page */

.ajax-page #main {
    position: absolute;
    top: 67px;
    width: 100%;
}

.ajax-page.forward #main {
    left: 100%;
}

.ajax-page.backward #main {
    right: 100%;
}

.wrapper.ajax-page {
    transition: transform 0.7s ease-in-out;
    transform: translateX(0);
    z-index: 10;
}

.wrapper.ajax-page.ajax-animate.forward {
    transform: translateX(-100%);
}

.wrapper.ajax-page.ajax-animate.backward {
    transform: translateX(100%);
}

.wrapper {
    position: relative;
}

.read-more-toggle {
    display: none;
}

/* Compare Button + Dropdown */

.btn.dropdown-toggle .icon-compare {
    flex-shrink: 0;
    width: 16px;
    margin-right: 8px;
}

.dropdown-menu-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid var(--black);
    text-align: center;
    padding: 10px 40px;
    position: relative;
}

.dropdown-menu-header h3 {
    color: var(--black);
    font-size: 1.6rem;
    margin-bottom: 0;
}

.dropdown-menu-header .btn-close {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
}

.dropdown-menu-header .btn-close svg {
    width: 20px;
}

.companies-head {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.companies-head .icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.companies-head .btn.dropdown-toggle,
.section-compare-header .btn.dropdown-toggle {
    padding-right: 24px;
}

.companies-head .dropdown .dropdown-menu:before,
.section-compare-header .dropdown .dropdown-menu:before {
    height: 43px;
}

.dropdown .sortby-items {
    padding: 13px;
}

.dropdown .sortby-items label.custom-radio span {
    font-size: 1.6rem;
}

.dropdown .sortby-items label.custom-radio span:before {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.dropdown .sortby-items label.custom-radio span:after {
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
}

/* END: Compare Button + Dropdown */

/* SECTIONS */
.scorecard-section-head {
    margin-bottom: 20px;
}

.scorecard-section-title {
    font-size: 3rem;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: -0.03em;
}

/* Scorecard Intro Section */

.section-scorecard-intro {
    margin-bottom: 40px;
}

.section-scorecard-intro__image {
    min-height: 420px;
    max-height: 640px;
    position: relative;
    padding-top: 8vw;
    display: flex;
    box-sizing: border-box;
    margin-bottom: -5vw;
}

.section-scorecard-intro__image:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent linear-gradient(110deg, #00000000 0%, #000000DD 100%) 0 0 no-repeat padding-box;
    transform: matrix(-1, 0, 0, -1, 0, 0);
    opacity: 0.78;
    z-index: 1;
}

.section-scorecard-intro__wave {
    content: "";
    z-index: 2;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: auto;
}

.section-scorecard-intro__wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.section-scorecard-intro__image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    object-position: center right;
}

.section-scorecard-intro__image .container {
    width: 100%;
    z-index: 3;
}

.section-scorecard-intro__title {
    font-size: 5rem;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: var(--white);
    max-width: 740px;
}

.section-scorecard-intro__info {
    position: relative;
    z-index: 10;
}

.section-scorecard-intro__subtitle {
    font-size: 3rem;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #212121;
}

.section-scorecard-intro__text {
    font-size: 1.6rem;
    color: #212121;
    max-width: 740px;
}

.section-scorecard-intro__download {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -80px;
}

.section-scorecard-intro__download img {
    width: 196px;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    border-radius: 2px;
}

.section-scorecard-intro__download .btn {
    width: auto;
    gap: 12px;
}

@media (orientation: landscape){
    .section-scorecard-intro__image {
        height: 38vw;
    }
}

@media (orientation: portrait){
    .section-scorecard-intro__image {
        height: 50vh;
        padding-top: 13vh;
    }
}

/* END: Scorecard Intro Section */

/* Scorecard Table */

.table .empty:last-child {
    width: 2%;
}

.site-main:not(.page-company) .table .empty:last-child {
    width: 4%;
    text-align: right;
}

.row-hover-arrow {
    display: inline-flex;
    align-content: center;
    justify-content: center;
    background-color: var(--white);
    padding: 7px 8px 7px 10px;
    border-radius: 20px 0 0 20px;
    transition: opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.row-hover-arrow .icon-arrow {
    transform: rotate(180deg);
}

.row-hover-arrow .icon-arrow path:last-child {
    fill: var(--black);
}

.site-main:not(.page-company) #companies-table tbody tr[data-url] {
    cursor: pointer;
}

.site-main:not(.page-company)  #companies-table tr[data-url]:hover td {
    background-color: #eeeeee;
}

.site-main:not(.page-company)  #companies-table tr[data-url]:hover .row-hover-arrow {
    opacity: 1;
}

.site-main:not(.page-company) #companies-table tbody {
    position: relative;
}

.table .only-rank .company-risk {
    line-height: calc(2.16em + 6px);
    padding-top: 6px;
}

.site-main:not(.page-company) #companies:after {
    content: "Go to company page";
    display: block;
    position: absolute;
    left: var(--x, 0);
    top: var(--y, 0);
    background-color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    border: 1px solid #f0f0f0;
    transform: translate(-50%, -120%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

@media (hover: hover) {
    .site-main:not(.page-company) #companies.show-info-box:after {
        opacity: 1;
    }
}

/* END: Scorecard Table */

/* Illustration Section */

.section-illustration {
    font-size: 1rem;
    padding: 3.4em;
    background-color: var(--white);
    border-radius: 2px;
    margin-bottom: 30px;
}

.section-illustration__container {
    max-width: 600px;
}

.section-illustration__title {
    font-size: 2.4em;
    letter-spacing: -0.04em;
    margin-bottom: 0.3em;
}

.section-illustration__description {
    font-size: 1.6em;
    color: #707070;
}

.section-illustration__image {
    margin-top: 3em;
}

.section-illustration__image img {
    display: block;
}

.section-illustration__image-mobile {
    display: none;
    margin-top: 3em;
}

/* END: Illustration Section */

/* Restrictions Section */
.section-oil-gas-restrictions__years {
    position: relative;
    display: flex;
    padding-top: 40px;
    margin-bottom: 12px;
}

.section-oil-gas-restrictions__arrow {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #707070;
    transition: opacity 0.2s ease, width 1s ease;
}

.section-oil-gas-restrictions__arrow:after {
    content: "";
    display: block;
    position: absolute;
    top: -3px;
    right: 0;
    width: 6px;
    height: 6px;
    border-top: 1px solid #707070;
    border-right: 1px solid #707070;
    transform: rotate(45deg);
}

.section-oil-gas-restrictions__year {
    border-left: 1px solid #707070;
    margin-right: 35px;
    padding-left: 8px;
    transition: opacity 0.5s ease;
}

.section-oil-gas-restrictions__companies {
    display: flex;
}

.section-oil-gas-restrictions__company {
    margin-right: 8px;
    margin-bottom: 10px;
    max-width: 72px;
    transition: opacity 0.4s ease;
}

.section-oil-gas-restrictions__company:last-child {
    margin-right: 0;
}

html.js .section-oil-gas-restrictions__company,
html.js .section-oil-gas-restrictions__year {
    opacity: 0;
}

html.js .section-oil-gas-restrictions__company.a,
html.js .section-oil-gas-restrictions__year.a {
    opacity: 1;
}

html.js .section-oil-gas-restrictions__arrow {
    opacity: 0;
    width: 10px;
}

html.js .section-oil-gas-restrictions__arrow.a {
    opacity: 1;
    width: 100%;
}

.section-oil-gas-restrictions__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: -9px;
}

.section-oil-gas-restrictions__company img {
    display: block;
}

.tooltip {
    cursor: pointer;
}

.tooltip__box {
    opacity: 0;
    visibility: hidden;
    position: var(--position, fixed);
    width: 430px;
    max-width: 80vw;
    top: var(--top);
    left: var(--left);
    height: auto;
    background: #F8F8F8;
    padding: 24px;
    z-index: 9999;
    box-sizing: border-box;
    pointer-events: none;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
    border-radius: 2px;
    font-size: 1.4rem;
    text-align: left;
}

.tooltip__box.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.tooltip__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
}

.tooltip__body {
    color: #707070;
    line-height: 1.2;
}

.section-fossil-restrictions__types {
    display: flex;
    align-items: flex-end;
    margin-left: -2.2%;
    margin-right: -2.2%;
    padding-top: 30px;
}

.section-fossil-restrictions__type {
    padding-left: 2.2%;
    padding-right: 2.2%;
    box-sizing: border-box;
    width: 33.33%;
}

.section-fossil-restrictions__dots {
    display: flex;
    flex-wrap: wrap;
    transform: scale(-1);
    margin-left: -1.8%;
    margin-right: -1.8%;
    justify-content: flex-end;
}

.section-fossil-restrictions__dot {
    width: 6.4%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 1.8%;
    background-color:  #D3D3D3;
    transition: background-color 500ms ease-in-out;
}

.section-fossil-restrictions__type:nth-child(1) .section-fossil-restrictions__dot.a {
    background-color: #008AB8;
}

.section-fossil-restrictions__type:nth-child(2) .section-fossil-restrictions__dot.a {
    background-color: #00AEED;
}

.section-fossil-restrictions__type:nth-child(3) .section-fossil-restrictions__dot.a {
    background-color: #80CAEE;
}

.section-fossil-restrictions__name {
    text-align: center;
    font-size: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 10px;
}

.section-fossil-restrictions__number {
    text-align: center;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-top: 5px;
}

/* END: Restrictions Section */

/* Video section */
.section-video {
    margin-bottom: 70px;
}

.section-video__container {
    position: relative;
    background: var(--black);
    border-radius: 2px;
    overflow: hidden;
    margin-inline: -20px;
}

.section-video__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    z-index: 2;
    overflow: hidden;
}

.section-video__overlay:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.4);
    pointer-events: none;
}

.section-video__overlay img {
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.section-video__overlay .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: transform 0.3s ease-out;
}

.section-video video,
.section-video .youtube-wrapper {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 0.43;
}

.section-video__head {
    position: absolute;
    top: 0;
    left: 0;
    padding: 34px;
    width: 100%;
    color: var(--white);
    box-sizing: border-box;
    z-index: 1;
}

.section-video__title {
    font-size: 3rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 5px;
}

.section-video__subtitle {
    font-size: 2.4rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

@media (hover: hover) {
    .section-video__overlay:hover .icon {
        transform: translate(-50%, -50%) scale(1.05);
    }

    .section-video__overlay:hover img {
        transform: scale(1.015);
    }
}

/* END: Video section */

/* Companies section */
:root {
    --score-high: #D9191F;
    --score-moderate: #F46132;
    --score-low: #FAB63F;
    --score-green: #20b734;
}

.section-companies {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 40px;
    margin-left: -20px;
    margin-right: -20px;
}

@media (max-width: 1375px) {
    .section-companies {
        overflow: hidden;
    }
}

.section-companies .scorecard-section-title {
    margin-bottom: 7px;
}

.section-companies__info {
    margin-bottom: 20px;
}

.section-companies__description {
    font-size: 1.6rem;
    color: #707070;
    max-width: 550px;
}

.section-companies__scores-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.section-companies__scores-container {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
}

.section-companies__score {
    flex-grow: 1;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    padding: 11px;
    text-align: center;
    font-weight: 700;
}

.section-companies__score.high {
    background-color: var(--score-high);
}

.section-companies__score.moderate {
    background-color: var(--score-moderate);
}

.section-companies__score.low {
    background-color: var(--score-low);
}

.section-companies__score.green {
    background-color: var(--score-green);
}

.section-companies .companies-table-wrap {
    overflow: hidden;
    height: calc((11 * 53px) + 65px);
    transition: height 0.6s ease;
}

.section-companies .companies-table-wrap.loading {
    height: var(--height);
}

.section-companies .companies-table-wrap.loaded {
    height: auto;
}

.section-companies .companies-footer {
    padding-top: 16px;
}
/* END: Companies section */

/* Data toggle */
.scorecard-data-toggle {
    width: 82%;
    margin: 8px auto 16px;
    border: 1px solid #e5e5e5;
    border-radius: 44px;
    background-color: var(--white);
    position: relative;
    height: 36px;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 4px;
}

.scorecard-data-toggle label {
    display: block;
    flex-grow: 1;
    text-align: center;
    position: relative;
}

.scorecard-data-toggle span {
    transition: color 0.3s ease;
}

.scorecard-data-toggle:before {
    content: "";
    display: block;
    position: absolute;
    width: calc(50% - 4px);
    border-radius: 40px;
    left: 4px;
    top: 4px;
    bottom: 4px;
    transition: transform 0.3s ease;
    background-color: var(--blue);
    pointer-events: none;
}

.scorecard-data-toggle.right:before {
    transform: translateX(100%);
}

.scorecard-data-toggle input {
    display: none;
}

.scorecard-data-toggle input:checked + span {
    color: var(--white);
}
/* END: Data toggle */

/* Downloads Section */
.section-downloads {
    padding: 34px 34px 38px;
    background-color: #F2F2F2;
    margin-bottom: 32px;
}

.report-title {
    font-size: 2.4rem;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}

/* Current Report */
.current-report {
    margin-bottom: 70px;
}

.current-report__scrollable.disabled .scrollable-content,
.current-report__scrollable.disabled .current-report__items {
    width: 100%;
}

.current-report__items {
    display: flex;
    justify-content: space-between;
    width: max-content;
}

.current-report__item {
    padding-right: 60px;
    box-sizing: border-box;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-report__item img {
    width: 196px;
    display: block;
    margin-bottom: 16px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

/* Earlier Reports */

.earlier-reports__scrollable.disabled .scrollable-content,
.earlier-reports__scrollable.disabled .earlier-reports__items {
    width: 100%;
}

.earlier-reports__items {
    display: flex;
    width: max-content;
    justify-content: space-between;
}

.earlier-reports__item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    box-sizing: border-box;
    padding-right: 32px;
    width: fit-content;
}

.earlier-reports__item:last-child {
    padding-right: 0;
}

.earlier-reports__item .btn + .btn {
    margin-top: 14px;
}

/* END: Downloads Section */

/* Compare Section */
.section-compare {
    padding: 34px 34px 42px;
    background-color: var(--white);
    margin-bottom: 32px;
}

.section-compare .description {
    color: var(--blue);
    font-size: 1.6rem;
    margin-top: 10px;
}

.section-compare .compare-companies {
    display: flex;
    flex-wrap: wrap;
}

.section-compare .compare-companies li {
    padding-top: 6px;
    padding-bottom: 6px;
    margin-right: 8px;
}

.section-compare .compare-companies input {
    display: none;
}

.section-compare .compare-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}

.section-compare .compare-tips {
    margin-right: 20px;
    font-size: 1.6rem;
}


/* END: Compare Section */

/* Company Page */
.page-company .content-area-footer ul {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.page-company .content-area-footer ul li {
    margin-left: 20px;
    margin-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    line-height: 1.4rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.page-company .content-area-footer .icon {
    width: 14px;
    height: 14px;
    display: block;
    margin-right: 8px;
    border-radius: 50%;
}

.company-description.entry-content {
    font-size: 2rem;
    padding: 15px 15px 20px;
    margin-bottom: 32px;
    margin-top: -4px;
    color: #212121;
    letter-spacing: -0.03em;
    background-color: var(--white);
}

.company-description.entry-content > :last-child {
    margin-bottom: 0;
}

.section-policies {
    font-size: 1rem;
    padding: 3.4em 3.4em 2.8em;
    background-color: var(--white);
    border-radius: 2px;
    margin-bottom: 30px;
}

.section-policies .section-head {
    padding-bottom: 10px;
}

.page-company .section-policies .section-title {
    font-size: 2rem;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.section-policies__buttons {
    display: flex;
    flex-wrap: wrap;
}

.section-policies__buttons .btn {
    margin-right: 8px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.section-policies__buttons .btn:disabled {
    opacity: 1;
    background-color: #EDEDED;
    color: #B5B5B5;
    cursor: no-drop;
}

.section-read-more {
    margin-top: 50px;
    text-align: center;
}

.company-data-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: -10px;
    margin-right: -10px;
    padding-top: 8px;
    padding-bottom: 30px;
}

.data-info-split {
    display: flex;
    gap: 10px;
}

.data-info-split .data-info-item {
    flex: 1 0 0
}

.data-info-item {
    background-color: var(--white);
    border-radius: 4px;
    padding: 20px 10px;
    box-sizing: border-box;
}

.data-info-item.leader,
.data-info-item.country {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    font-weight: 700;
}

.data-info-item.country {
    gap: 10px;
}

.data-info-item.country img {
    width: 36px;
}

.data-info-row .score-cells {
    display: flex;
    gap: 10px;
}

.data-info-row .score-cell {
    flex: 1 0 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 12px 10px;
    line-height: 1.3;
}

.data-info-row .score-cell .name {
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
}

.data-info-row .score-cell .score-current {
    font-weight: 700;
    font-size: 2rem;
}

.data-info-row .score-cell .score-max {
    font-size: 1rem;
    opacity: 0.5;
}

.data-info-row .score-cell .company-risk {
    opacity: 0.6;
    font-size: 1.2rem;
    padding-top: 3px;
}

.data-info-row .score-cell.high:first-child {
    background-color: var(--score-high);
}

.data-info-row .score-cell.moderate:first-child {
    background-color: var(--score-moderate);
}

.data-info-row .score-cell.low:first-child {
    background-color: var(--score-low);
}

.data-info-row .score-cell.green:first-child {
    background-color: var(--score-green);
}

.data-info-row .score-name {
    margin-bottom: 0.8em;
    margin-left: 0;
    margin-right: 0;
}

/* Compare Page */
.section-compare-companies-sticky {
    display: none;
}

.section-compare-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -12px;
    position: relative;
}

.section-compare-header .btn-back {
    display: none;
}

.section-compare-header .compare-companies-titles {
    font-size: 2rem;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.section-compare-header:before {
    content: "";
    visibility: hidden;
    margin-right: auto;
    width: 190px;
    flex-shrink: 0;
}

.section-compare-header .dropdown {
    margin-left: auto;
    width: 190px;
}

.page-scorecard-compare .entry-header .entry-title {
    padding-left: 80px;
}

/* Charts */
.section-score-rank-chart,
.section-rank-over-time {
    margin-bottom: 30px;
}

.section-score-rank-charts .section-title {
    font-size: 2rem;
}

.page-company .section-score-rank-charts .content-area-footer ul {
    padding-top: 10px;
    padding-bottom: 5px;
}

.page-company .section-score-rank-charts .content-area-footer ul li {
    margin-left: 18px;
    margin-right: 18px;
}

.section-score-rank-chart .chart-container {
    aspect-ratio: auto 1130 / 868;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slide-bottom {
    0% {
        transform: translate(0, -100%);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes slide-top {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(0, -100%);
    }
}

@keyframes slide-top-200 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(0, -200%);
    }
}

@keyframes blink {
    from, to {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes dotFade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* END: Compare Page */

/* Sliding elements */

[data-sliding] {
    overflow: hidden;
}

[data-sliding-inner] {
    width: fit-content;
    display: flex;
    will-change: transform;
}

[data-sliding-copy] {
    display: flex;
    flex-shrink: 0;
    width: max-content;
}

[data-sliding-copy] > * {
    white-space: nowrap;
}

.js [data-sliding-inner] {
    opacity: 0;
}

.js [data-sliding-inner].initialized {
    opacity: 1;
}

/* END: Sliding Elements */

@media (max-width: 1024px) {
    /* Downloads Section */
    .current-report__item {
        padding-right: 10px;
    }

    /* Companies section */
    .section-companies__description {
        max-width: none;
        margin-bottom: 20px;
    }

    /* Restrictions Section */
    .section-illustration.section-oil-gas-restrictions {
        padding-bottom: 20px;
    }

    .section-oil-gas-restrictions__years {
        flex-direction: column;
        padding-top: 25px;
        margin-bottom: 0;
    }

    .section-oil-gas-restrictions__year {
        border-left: none;
        margin-right: 0;
        padding-left: 0;
        margin-bottom: 10px;
    }

    .section-oil-gas-restrictions__name {
        margin-top: 0;
    }

    .section-oil-gas-restrictions__arrow {
        display: none;
    }

    .section-oil-gas-restrictions__companies {
        margin-left: -7px;
        margin-right: -7px;
        flex-wrap: wrap;
    }

    .section-oil-gas-restrictions__company {
        margin-left: 7px;
        margin-right: 7px;
        margin-bottom: 14px;
    }

    /* Compare Page */
    .section-compare-header:before {
        display: none;
    }

    .section-compare-header .compare-companies-titles {
        text-align: left;
        padding-left: 0;
    }
}

@media (max-width: 800px) {
    .section-scorecard-intro__image {
        margin-bottom: 0;
    }

    .section-video video {
        aspect-ratio: 1 / 0.6;
    }

    .section-fossil-restrictions__dot {
        width: 7.2%;
        margin: 1.4%;
    }
}

@media (max-width: 640px) {

    /* Page Nav */
    .page-nav {
        margin-top: -40px;
    }

    .page-nav__item {
        padding-left: 12px;
        padding-right: 12px;
    }
    /* END: Page Nav */

    /* SECTIONS */
    .scorecard-section-head {
        margin-bottom: 15px;
    }

    .scorecard-section-title {
        text-align: center;
    }

    /* Illustration Section */
    .section-illustration {
        padding: 2em;
        margin-bottom: 20px;
    }

    .section-illustration__image {
        display: none;
    }

    .section-illustration__image-mobile {
        display: block;
    }
    /* END: Illustration Section */

    /* Restrictions Section */
    .section-illustration.section-oil-gas-restrictions {
        padding-bottom: 10px;
    }

    .tooltip__box {
        font-size: 1.3rem;
        padding: 15px;
    }

    .section-fossil-restrictions__types {
        flex-direction: column;
        padding-top: 20px;
    }

    .section-fossil-restrictions__type {
        width: 100%;
        margin-bottom: 15px;
    }

    .section-fossil-restrictions__dot {
        width: 6.6%;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        margin: 1.7%;
    }
    /* END: Restrictions Section */

    /* Scorecard Intro Section */

    .section-scorecard-intro__image {
        padding-top: 30px;
        padding-bottom: 0;
    }

    .section-scorecard-intro__title {
        font-size: 4rem;
        line-height: 1.05;
    }

    .section-scorecard-intro__wave {
        display: none;
    }

    .section-scorecard-intro__download {
        order: -1;
        margin-bottom: 34px;
        margin-top: -150px;
    }
    /* END: Scorecard Intro Section */

    /* Video section */
    .section-video {
        margin-bottom: 34px;
    }

    .section-video__head {
        padding: 20px;
    }

    .section-video__overlay img {
        object-position: center right;
    }

    .section-video video,
    .section-video__container {
        aspect-ratio: 1 / 0.84;
    }
    /* END: Video section */

    /* Companies section */
    .section-companies .companies-table-wrap {
        height: calc(11 * 140px);
    }

    .section-companies {
        margin-bottom: 30px;
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .section-companies__info {
        order: 10;
        margin-top: 30px;
    }

    .companies-head {
        flex-wrap: wrap;
        gap: 0;
        background-color: var(--white);
        margin-bottom: 0;
        position: sticky;
        top: 124px;
        z-index: 99;
        border-top: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
    }

    .companies-head .dropdown.sortby-dropdown,
    .companies-head #scorecard-filter-button {
        width: 50% !important;
    }

    .companies-head #scorecard-filter-button {
        order: -1;
    }

    .companies-head .dropdown.sortby-dropdown .dropdown-toggle,
    .companies-head #scorecard-filter-button {
        border: none;
        border-radius: 0;
        background-color: transparent;
        font-size: 1.4rem;
        height: 60px;
    }

    .companies-wrapper {
        margin-left: -20px;
        margin-right: -20px;
    }

    .company-cell-data {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .company-cell-data .company-score,
    .company-cell-data .company-risk {
        background-color: #eeeeee;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 7px 3px;
        box-sizing: border-box;
        width: calc(50% - 2px);
        line-height: 16px;
        opacity: 1;
        min-height: 50px;
    }

    .company-cell-data .company-score .name,
    .company-cell-data .company-risk .name {
        font-size: 1.2rem;
        color: #333;
    }

    .company-cell-data .company-score:first-child,
    .company-cell-data .company-risk:first-child {
        width: 100%;
        padding: 10px;
        line-height: 1.4;
        min-height: 65px;
    }

    .company-cell-data .company-score:first-child .score-current {
        font-size: 2rem;
    }

    .company-cell-data .company-score.high:first-child,
    .company-cell-data .company-risk.high:first-child {
        background-color: var(--score-high);
    }

    .company-cell-data .company-score.moderate:first-child,
    .company-cell-data .company-risk.moderate:first-child {
        background-color: var(--score-moderate);
    }

    .company-cell-data .company-score.low:first-child,
    .company-cell-data .company-risk.low:first-child {
        background-color: var(--score-low);
    }

    .company-cell-data .company-score.green:first-child,
    .company-cell-data .company-risk.green:first-child {
        background-color: var(--score-green);
    }

    .company-cell-data .company-risk .value {
        font-weight: 700;
        line-height: 1.4;
        font-size: 1.2rem;
        margin-top: 3px;
    }

    .company-cell-data .company-risk:first-child .value {
        font-size: 1.4rem;
        margin-top: 6px;
    }

    #companies-table-head {
        border-top: 1px solid #e5e5e5;
    }

    #companies-table-head th {
        padding-left: 10px;
        padding-right: 10px;
        font-weight: 400;
        text-transform: none;
    }

    #companies-table-head .col-company {
        width: 22%;
    }

    #companies-table-head .col-fossil-fuel-insurance,
    #companies-table-head .col-fossil-fuel-divestment {
        width: 39%;
    }

    .table td {
        border-bottom: 1px solid #e5e5e5;
    }

    .table .thead-sub-row th:first-child, .table tbody td:first-child,
    .table .thead-sub-row th:last-child, .table tbody td:last-child {
        border-radius: 0;
    }

    .table tbody td {
        padding: 10px;
    }

    .table td.col-rank {
        white-space: normal;
        text-decoration: none;
        width: 22%;
        line-height: 1.2;
    }

    .table td.col-rank .flag {
        margin-top: 3px;
    }

    .table td.col-rank .flag img {
        width: 40px;
    }

    .table td.col-fossil-fuel-insurance,
    .table td.col-fossil-fuel-divestment {
        width: 39%;
        padding-left: 5px;
    }
    /* END: Companies section */

    /* Downloads section */
    .section-downloads {
        padding: 20px;
        margin-left: -20px;
        margin-right: -20px;
    }

    .report-title {
        font-size: 1.6rem;
    }

    .current-report {
        margin-bottom: 40px;
    }

    .current-report__scrollable,
    .earlier-reports__scrollable {
        margin-left: -20px;
        margin-right: -20px;
    }

    .current-report .sc-scroll-indicator,
    .earlier-reports .sc-scroll-indicator {
        margin-left: 20px;
        width: calc(100% - 40px);
    }

    .current-report__items,
    .earlier-reports__items {
        padding-left: 20px;
        padding-right: 15px;
    }
    /* END: Downloads Section */

    /* Compare Section */
    .section-compare {
        padding: 20px 12px 35px;
    }

    .section-compare .description {
        margin-top: 2px;
    }

    .section-compare .compare-action {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        margin-top: 20px;
    }

    .section-compare .compare-tips {
        margin-right: 0;
        margin-bottom: 15px;
    }
    /* END: Compare Section */

    /* END: SECTIONS */

    /* Company page */
    .section-policies {
        padding: 2em;
        margin-bottom: 20px;
    }

    .section-policies__buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .section-read-more {
        margin-top: 40px;
    }

    .company-description.entry-content {
        margin-left: -10px;
        margin-right: -10px;
        margin-top: -20px;
    }

    /* Compare Page */
    .page-scorecard-compare .entry-header,
    .section-compare-header .compare-companies-titles,
    .page-company .content-area-footer {
        display: none;
    }

    .section-compare-header {
        padding-top: 20px;
        margin-top: 0;
    }

    .section-compare-header .btn-back {
        display: inline-flex;
    }

    .section-compare-header:before {
        content: none;
    }

    .section-compare-companies-sticky {
        display: block;
        position: sticky;
        top: var(--hh);
        left: 0;
        margin-top: -40px;
        width: 100%;
        background-color: var(--white);
        z-index: 20;
    }

    #main-snd .section-compare-companies-sticky {
        top: 0;
    }

    .section-compare-companies-sticky .compare-companies {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 6px;
        padding-bottom: 6px;
        line-height: 1.6;
    }

    .section-compare-companies-sticky li {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 1rem;
        font-weight: 700;
        display: flex;
        align-items: center;
    }

    .section-compare-companies-sticky .icon {
        width: 9px;
        height: 9px;
        margin-right: 4px;
        display: block;
        border-radius: 50%;
    }

    .section-compare-companies-sticky .name {
        padding-top: 1px;
    }

    .section-score-rank-chart .chart-container {
        aspect-ratio: auto 670 / 704;
    }
    /* END: Compare Page */

    /* Dropdown */
    body.compare-dropdown-open,
    body.sortby-dropdown-open {
        overflow-y: hidden;
    }

    .dropdown.compare-dropdown.show,
    .dropdown.compare-dropdown,
    .dropdown.sortby-dropdown.show,
    .dropdown.sortby-dropdown {
        width: auto;
    }

    .dropdown.compare-dropdown .dropdown-menu,
    .dropdown.sortby-dropdown .dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 0;
        border: none;
        border-radius: 0;
        z-index: 101;
    }

    .dropdown.compare-dropdown,
    .dropdown.sortby-dropdown {
        z-index: auto;
    }

    .dropdown.compare-dropdown .dropdown-menu.show,
    .dropdown.sortby-dropdown .dropdown-menu.show {
        height: var(--height);
    }

    .dropdown.compare-dropdown .dropdown-menu:before,
    .dropdown.sortby-dropdown .dropdown-menu:before {
        content: none;
    }

    .dropdown.compare-dropdown .btn.dropdown-toggle,
    .dropdown.sortby-dropdown .btn.dropdown-toggle {
        padding-right: 24px;
        z-index: 1;
    }

    .dropdown.compare-dropdown .btn.dropdown-toggle .icon-triangle,
    .dropdown.sortby-dropdown .btn.dropdown-toggle .icon-triangle {
        display: none;
    }

    .compare-dropdown:after,
    .sortby-dropdown:after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: calc(var(--vh, 1vh) * 100);
        background-color: var(--black);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 100;
    }

    body.page-template-scorecard.compare-dropdown-open .compare-dropdown:after,
    body.page-template-scorecard.sortby-dropdown-open .sortby-dropdown:after {
        opacity: 0.63;
        pointer-events: auto;
    }

    .dropdown .compare-action {
        padding-left: 13px;
        padding-right: 13px;
    }
}

@media (max-width: 420px) {

    /* SECTIONS */
    .section-compare, .section-illustration, .section-policies, .entry-sub-title {
        margin-left: -10px;
        margin-right: -10px;
    }

    .section-illustration, .section-policies {
        padding-left: 10px;
        padding-right: 10px;
    }
    /* END: SECTIONS */
}