/**************************************************

    MISC

**************************************************/

html {
    scroll-padding-top: calc(120px + 3rem);
}

.ip-esrs-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px hsl(0 0 0 / 10%);
}


/**************************************************

    MAIN TABLE OF CONTENTS

**************************************************/

html a.ip-esrs-toc__toggle {
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
    color: var( --e-global-color-text );
    display: flex;
    font-size: .8rem;
    gap: .3em;
    line-height: 1;
    padding: 10px;
    text-underline-offset: 3px;
}

html a.ip-esrs-toc__toggle svg {
    color: var( --e-global-color-f4622ff );
    height: 2rem;
    width: 2rem;
}

html a.ip-esrs-toc__toggle:hover {
    text-decoration: underline;
}

html a.ip-esrs-toc__toggle:focus {
    text-decoration: underline;
}

.ip-esrs-toc {
    font-family: var( --e-global-typography-primary-font-family ), sans-serif;
}

#ip-esrs-toc-list {
    display: none;
}

.ip-esrs-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ip-esrs-toc ol a {
    display: block;
}

.ip-esrs-toc ol a > span:nth-child(2) {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
    margin-top: 0.3em;
    opacity: .3;
}

.ip-esrs-toc .current_page_item > a > span:nth-child(1) {
    background-color: var( --e-global-color-f4622ff );
    border-radius: 3px;
    box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding: .2em .5em;
}

.ip-esrs-toc .ip-esrs-toc__sub-toggle {
    background: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 100%;
    box-shadow: none;
    color: gray;
    height: 2rem;
    overflow: hidden;
    padding: 0;
    position: absolute;
    text-indent: -999em;
    width: 2rem;
}

.ip-esrs-toc .ip-esrs-toc__sub-toggle:hover,
.ip-esrs-toc .ip-esrs-toc__sub-toggle:focus {
    background-color: var( --e-global-color-ec55311 );
}


/***** 1ST LEVEL *****/

/*.ip-esrs-toc > ol > li + li {
    margin-top: 1rem;
}

.ip-esrs-toc > ol > li > a {
    background-color: var( --e-global-color-accent );
    border-radius: 4px 4px 0 0;
    display: inline-block;
    font-size: .8rem;
    font-weight: normal;
    line-height: 1;
    margin: 1rem 1rem 0 1rem;
    padding: calc(.5em + 1px) 1em .5em 1em;
}*/

.ip-esrs-toc > ol {
    border-top: 1px solid var( --e-global-color-accent );
}

.ip-esrs-toc > ol > li {
    border-bottom: 1px solid var( --e-global-color-ec55311 );
    padding: .5rem;
}

.ip-esrs-toc > ol > li:not(:last-child) {
    border-bottom: 1px solid var( --e-global-color-ec55311 );
}

.ip-esrs-toc > ol > li > a {
    align-items: flex-start;
    color: var( --e-global-color-text );
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    padding: .5rem;
}

.ip-esrs-toc > ol > li > a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ip-esrs-toc > ol > li > a > span + span {
    /* margin-left: 0.5em; */
    font-size: 0.9em;
    opacity: .4;
}


/***** 2ND LEVEL *****/

.ip-esrs-toc > ol > li > ol {
    border-top: 1px solid var( --e-global-color-accent );
}

.ip-esrs-toc > ol > li > ol > li {
    border-bottom: 1px solid var( --e-global-color-ec55311 );
    padding: .5rem;
}

.ip-esrs-toc > ol > li > ol > li:not(:last-child) {
    border-bottom: 1px solid var( --e-global-color-ec55311 );
}

.ip-esrs-toc > ol > li > ol > li > a {
    align-items: flex-start;
    color: var( --e-global-color-text );
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    padding: .5rem;
}

.ip-esrs-toc > ol > li > ol > li > a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ip-esrs-toc > ol > li > ol > li > a > span + span {
    /* margin-left: 0.5em; */
    font-size: 0.9em;
    opacity: .4;
}

/* .ip-esrs-toc > ol > li > ol > li > a > span::before {
    content: '– ';
} */

.ip-esrs-toc > ol > li > ol > li > .ip-esrs-toc__sub-toggle {
    right: 1rem;
    top: .6rem;
}


/***** 3RD LEVEL *****/

.ip-esrs-toc > ol > li > ol > li > ol {
    background: var( --e-global-color-ec55311 );
    border-radius: 4px;
    margin: .5rem;
    overflow: hidden;
}

.ip-esrs-toc > ol > li > ol > li.has-toggle,
.ip-esrs-toc > ol > li > ol > li > ol > li.has-toggle {
    position: relative;
}

.ip-esrs-toc > ol > li > ol > li > ol > li.has-toggle {
    padding-right: 4rem;
    position: relative;
}

.ip-esrs-toc > ol > li > ol > li > ol > li + li {
    border-top: 1px solid #fff;
    /* margin-top: 0.5rem; */
}

.ip-esrs-toc > ol > li > ol > li > ol > li > a {
    color: var( --e-global-color-text );
    font-size: .9rem;
    line-height: 1.2;
    padding: 1rem;
    text-underline-offset: 3px;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > a:hover > span:nth-child(1) {
    text-decoration: underline;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > .ip-esrs-toc__sub-toggle {
    right: .6rem;
    top: .6rem;
}


/***** 4TH LEVEL *****/

.ip-esrs-toc > ol > li > ol > li > ol > li > ol {
    padding: 0 1rem 1rem 1rem;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li {
    margin-top: .5rem;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li + li {
    /* border-top: 1px solid #dedddc; */
    padding-top: 0.5rem;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li > a {
    color: var( --e-global-color-text );
    font-size: .9rem;
    line-height: 1.2;
    text-underline-offset: 3px;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li > a:hover > span:nth-child(1) {
    text-decoration: underline;
}


/***** 5TH LEVEL *****/

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li > ol {
    padding: 1rem;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li > ol > li + li {
    margin-top: .5rem;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li > ol > li > a {
    color: var( --e-global-color-text );
    font-size: .9rem;
    text-underline-offset: 3px;
}

.ip-esrs-toc > ol > li > ol > li > ol > li > ol > li > ol > li > a:hover > span:nth-child(1) {
    text-decoration: underline;
}


@media (min-width: 1024px) {

    html a.ip-esrs-toc__toggle {
        display: none;
    }
    
    #ip-esrs-toc-list {
        display: block !important;
    }
}


/**************************************************

    SECTION

**************************************************/

.ip-esrs-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: var( --e-global-typography-primary-font-family ), sans-serif;
    padding: 2rem;
}

.ip-esrs-section .ip-esrs-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.ip-esrs-section sup {
    position: static;
    top: auto;
    vertical-align: super;
}

.ip-esrs-fn {
    scroll-margin-top: calc(85px + 2rem);
}

.ip-esrs-fn:target {
    background-color: var( --e-global-color-accent );
    background-color: var( --e-global-color-f4622ff );
}


/***** SECTION NAV *****/

.ip-esrs-section-nav {
    align-items: stretch;
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
    position: sticky;
    top: 100px;
    z-index: 100;
}


/***** BREADCRUMBS *****/

.ip-esrs-breadcrumbs {
    font-size: .8rem;
    line-height: 1;
    padding: .5rem 0;
}

.ip-esrs-breadcrumbs ol {
    color: var( --e-global-color-text );
    display: inline-flex;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.ip-esrs-breadcrumbs ol li {
    display: flex;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ip-esrs-breadcrumbs ol li[data-word-count="1"] {
    flex-shrink: 0;
}

.ip-esrs-breadcrumbs ol li + li::before {
    color: var( --e-global-color-text );
    content: '/';
    opacity: .3;
    padding: calc(.5em + 1px) 0 .5em 0;
}

@media (max-width: 500px) {
	
	.ip-esrs-breadcrumbs ol li:first-child {
        display: none;
    }

    .ip-esrs-breadcrumbs ol li + li::before {
        display: none;
    }
}


.ip-esrs-breadcrumbs ol li span {
    color: var( --e-global-color-text );
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    padding: calc(.5em + 1px) 1em .5em 1em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-esrs-breadcrumbs ol li a:hover {
    text-decoration: underline;
    /* text-underline-offset: 3px; */
}


/***** SECTION TABLE OF CONTENTS *****/

.ip-esrs-section-toc {
    /* position: relative; */
}

.ip-esrs-section-toc .ip-esrs-section-toc__toggle {
    align-items: center;
    background-color: var( --e-global-color-f4622ff );
    border: none;
    border-radius: 0 5px 5px 0;
    color: var( --e-global-color-text );
    display: flex;
    font-size: 0.8rem;
    font-weight: normal;
    gap: 10px;
    height: 100%;
    letter-spacing: 0;
    padding: 10px;
    position: relative;
    text-transform: none;
    z-index: 110;
}

.ip-esrs-section-toc .ip-esrs-section-toc__toggle:hover,
.ip-esrs-section-toc .ip-esrs-section-toc__toggle:focus {
    background-color: var( --e-global-color-f4622ff );
    color: var( --e-global-color-text );
    outline: none;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ip-esrs-section-toc ol {
    font-size: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ip-esrs-section-toc ol ol {
    margin: 0 0 0 1.5em;
}

.ip-esrs-section-toc > ol {
    background-color: #fff;
    border: 2px solid var( --e-global-color-f4622ff );
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 10px hsl(0 0 0 / 10%);
    display: none;
    max-height: calc(100vh - 200px);
    min-width: 50%;
    overflow: scroll;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    z-index: 100;
}

.ip-esrs-section-toc > ol::before {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: ' ';
    display: block;
    height: 2rem;
    margin-top: -2rem;
    pointer-events: none;
    position: sticky;
    top: 0;
    transform: translateY(-1rem);
    width: 100%;
}

.ip-esrs-section-toc > ol::after {
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    bottom: 0;
    content: ' ';
    display: block;
    height: 2rem;
    margin-top: -2rem;
    pointer-events: none;
    position: sticky;
    transform: translateY(1rem);
    width: 100%;
}

.ip-esrs-section-toc li {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.ip-esrs-section-toc li:not(:first-child) {
    margin-top: .5em;
}

.ip-esrs-section-toc ol a {
    color: var( --e-global-color-text );
    font-size: .9rem;
}

.ip-esrs-section-toc ol a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ip-esrs-section-toc ol a:target {
    background-color: var( --e-global-color-accent );
}

.ip-esrs-section-toc > ol > li > a {
    font-weight: 700;
}

.ip-esrs-section-toc--open .ip-esrs-section-toc__toggle {
    border-radius: 0 4px 0 0;
}

.ip-esrs-section-toc--open .ip-esrs-section-toc__toggle::after {
    border-color: var( --e-global-color-f4622ff ) transparent transparent transparent;
    border-style: solid;
    border-width: 7px 6px 0 6px;
    content: '';
    height: 0px;
    left: 50%;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    width: 0px;
}

.ip-esrs-section-toc--open > ol {
    display: block;
}


@media (min-width: 768px) {
	
	.ip-esrs-section-toc > ol {
        max-width: 70%;
    }
}


/*****  SECTION ARTICLES *****/

.ip-esrs-section-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 0 2rem 0;
}

.ip-esrs-section-item > header .ip-esrs-section-item__title a {
    display: inline;
}

.ip-esrs-section-item:target > header .ip-esrs-section-item__title a {
    background-color: var( --e-global-color-accent );
}

.ip-esrs-section-item:target > header .ip-esrs-section-item__title a::after {
    content: '↑';
    font-size: .8em;
    font-weight: normal;
    vertical-align: super;
}

.ip-esrs-section-item .ip-esrs-section-item {
    margin-top: 2rem;
}

.ip-esrs-section-item .ip-esrs-section-item__title {
    color: var( --e-global-color-text );
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.3;
    margin: 0;
    /* width: 5em; */
}

.ip-esrs-section-item__copy {
    font-size: 1rem;
    line-height: 1.3;
}

.ip-esrs-section-item__copy > :last-child {
    margin-bottom: 0 !important;
}

.ip-esrs-section-item--attachment {
    flex-direction: column;
}

.ip-esrs-section-item--attachment .ip-esrs-section-item__title {
    width: auto;
    margin-bottom: 1rem;
}

/* Footnotes */

.ip-esrs-section-items .ip-esrs-footnotes {
    margin-top: 1.5rem;
}

/* Table presenter */

.ip-esrs-table-presenter {
    max-height: 400px;
    max-width: 100%;
    overflow: auto;
    padding: 1rem;
    position: relative;
}

/* .ip-esrs-table-presenter::before {
    border: 1px solid #000;
    content: '';
    height: 100%;
    left: 0;
    position: sticky;
    top: 0;
    width: 100%;
} */


/***** FOOTNOTES *****/

.ip-esrs-footnotes {
    border-top: 1px solid var( --e-global-color-ec55311 );
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    gap: .5em;
    list-style: none;
    margin: 0;
    padding: 2rem 0 0 0;
}

.ip-esrs-footnotes > div {
    scroll-margin-top: calc(85px + 2rem);
    display: flex;
    gap: 1em;
}

.ip-esrs-footnotes > div:target {
    background-color: var( --e-global-color-accent );
}

.ip-esrs-footnotes > div > a {
    flex-grow: 0;
    width: 3em;
}


/***** TOC Item *****/

.ip-esrs-toc-item a {
    align-items: flex-start;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.ip-esrs-toc-item__description {
    hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
    width: 75%;
}


/**************************************************

    ARTICLE FORMATTING

**************************************************/

/***** COPY FORMATTING *****/

.ip-esrs-section-item__copy .ip-esrs-image {
    display: block;
    height: auto;
    margin: 0 0 1rem 0;
    width: 100%;
}

.ip-esrs-section-item__copy ol {
    margin-bottom: 1em;
    margin-top: 1em;
}

.ip-esrs-section-item__copy ol > li + li {
    margin-top: 0.5em;
}

.ip-esrs-section-item__copy > ol {
    counter-reset: list;
}

.ip-esrs-section-item__copy > ol > li {
    list-style: none;
    counter-increment: list-1;
}

.ip-esrs-section-item__copy > ol > li::marker {
    content: counter(list-1, lower-alpha) ")\a0";
}

.ip-esrs-section-item__copy > ol > li > ol > li {
    list-style: none;
    counter-increment: list-2;
}

.ip-esrs-section-item__copy > ol > li > ol > li::marker {
    content: counter(list-2, lower-roman) ".\a0";
}


/***** TABLES *****/

.ip-esrs-section table {
    font-size: .8rem;
}

.ip-esrs-section table th,
.ip-esrs-section table td {
    background-color: #fff !important;
    padding: .5rem;
}

.ip-esrs-section table th {
    background-color: var(--e-global-color-ec55311) !important;
    white-space: nowrap;
}

.ip-esrs-section table th > :last-child,
.ip-esrs-section table td > :last-child {
    margin-bottom: 0;
}

.ip-esrs-section table ul,
.ip-esrs-section table ol {
    padding-left: 1em;
}