/* Hero */

#hero .hero-inner .container {
    height: 307px;
}

/* Shared section shells (Board of Directors + Executive Leadership) */

#board-of-directors {
    padding: 84px 108px 60px;
}

#executive-leadership {
    padding: 0 108px 96px;
}

.people-inner .container {
    width: 100%;
    max-width: 1310px;
    margin: 0 auto;
}

#executive-leadership .people-inner .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 60px;
}

#executive-leadership h2 {
    position: relative;
    width: calc(25% - 45px);
    margin: 0;
    flex-shrink: 0;
}

#executive-leadership h2:after {
    content: '';
    display: block;

    width: 230px;
    height: 2px;

    margin: 20px 0 0;
    background: #1C386B;
}

#executive-leadership .people-inner__grid,
#executive-leadership .people-inner > .container > p {
    width: calc(75% - 15px);
}

#executive-leadership .person-card {
    max-width: calc(33.3% - 40px);
}

#executive-leadership .people-inner > .container > p {
    margin-left: auto;
    font-family: RalewayAlt, sans-serif;
    font-size: 10px;
    line-height: 15px;
}

.people-inner__title {
    margin: 0 0 32px;

    font-size: 32px;
    font-weight: 700;
    line-height: 35px;
    color: #1C386B;
}

.people-inner__intro {
    max-width: 957px;
    margin: 0 0 56px;
}

.people-inner__intro p {
    margin: 0;

    font-size: 22px;
    font-weight: 400;
    line-height: 33px;
    color: #1C386B;
}

.people-inner__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

/* Person card */

.person-card {
    position: relative;
    width: 100%;
    max-width: calc(25% - 45px);

    display: flex;
    flex-direction: column;

    padding: 0;
    border: none;
    text-align: left;
    background: #fff;

    cursor: pointer;
}

.person-card,
.person-card:hover,
.person-card:focus {
    box-shadow: 0px 4px 4px 0px #00000040 !important;
}

.person-card--static {
    cursor: default;
}

.person-card__photo {
    width: 100%;
    aspect-ratio: 250/240;
    overflow: hidden;
    background: #F2F4F6;
}

.person-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card__info {
    position: relative;
    top: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px 0;

    height: 140px;
    padding: 21px 31px;
    justify-content: flex-start;
    text-align: center;

    transition: 0.2s all;
    z-index: 2;

    background: #fff;
}

.person-card:hover .person-card__info {
    top: -32px;
}

.person-card__name {
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #1C386B;
}

.person-card__role {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #00A8E3;
}

.person-card__plus {
    position: absolute;
    right: 16px;
    bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.25s ease;

    z-index: 3;
}

.person-card:hover .person-card__plus {
    opacity: 1;
}

/* Committees */

#committees {
    padding: 32px 108px 96px;
    background: url(../../img/ir-wave.png) bottom -8px left no-repeat;
    background-size: initial;
}

.committees-inner .container {
    width: 100%;
    max-width: 1310px;
    margin: 0 auto;
}

.committees-inner__head {
    display: flex;
    flex-direction: column;
    gap: 40px 0;
    margin: 0 0 40px;
}

.committees-inner__title {
    margin: 0;

    font-size: 32px;
    font-weight: 700;
    line-height: 35px;
    color: #1C386B;
}

.committees-inner__legend {
    display: flex;
    flex-direction: row;
    gap: 0 30px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.committees-inner__legend li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 12px;

    font-size: 18px;
    font-weight: 400;
    color: #1C386B;
}

.committees-legend__marker--chair {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid #1C386B;
}

.committees-legend__marker--member {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00A8E3;
}

.committees-inner__list {
    display: flex;
    flex-direction: column;
    gap: 21px 0;

    width: calc(75% - 15px);
    margin-left: auto;
}

.committee-row {
    display: grid;
    grid-template-columns: 2px 1fr auto;
    grid-template-areas:
        "bar header charter"
        "bar body    body";
    align-items: center;
    column-gap: 30px;

    padding: 24px 0;
}

.committee-row__bar {
    grid-area: bar;
    width: 2px;
    align-self: stretch;
    background: #1C386B;
}

.committee-row__header {
    grid-area: header;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 24px;

    padding: 0;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.committee-row--static .committee-row__header {
    cursor: default;
}

.committee-row__name {
    font-size: 22px;
    font-weight: 500;
    line-height: 24px;
    color: #1C386B;
}

.committee-row__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.committee-row.is-expanded .committee-row__toggle {
    transform: rotate(180deg);
}

.committee-row__charter {
    grid-area: charter;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 8px;

    font-size: 15px;
    font-weight: 400;
    color: #00A8E3;
    text-decoration: none;
}

.committee-row__body {
    grid-area: body;
    display: none;
    padding: 20px 0 0;
}

.committee-row.is-expanded .committee-row__body {
    display: block;
}

.committee-row__members {
    display: flex;
    flex-direction: column;
    gap: 14px 0;

    margin: 0;
    padding: 0;
    list-style: none;
}

.committee-member {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 14px;

    font-size: 16px;
    font-weight: 400;
    color: #1C386B;
}

.committee-member__marker {
    flex-shrink: 0;
}

.committee-member--member .committee-member__marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00A8E3;
}

.committee-member--chair .committee-member__marker {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 16px solid #1C386B;
}

/* Code of Practice & ESG */

#code-of-practice {
    padding: 96px 108px;
    background: #F2F4F6;
}

.policies-inner .container {
    width: 100%;
    max-width: 1310px;
    margin: 0 auto;
}

.policies-inner__title {
    margin: 0 0 53px;

    font-size: 32px;
    font-weight: 700;
    line-height: 35px;
    color: #1C386B;
}

.policies-inner__body {
    display: flex;
    flex-direction: row;
    gap: 0 60px;
}

.policies-inner__label {
    flex-shrink: 0;
    width: calc(25% - 45px);
    margin: 0;

    font-size: 22px;
    font-weight: 700;
    line-height: 33px;
    color: #1C386B;
}

.policies-inner__list {
    display: flex;
    flex-direction: column;
    gap: 30px 0;

    width: calc(75% - 15px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.policy-row {
    display: flex;
    flex-direction: row;
    gap: 0 30px;
}

.policy-row__bar {
    flex-shrink: 0;
    width: 2px;
    align-self: stretch;
    background: #ABAEAD;
}

.policy-row__content {
    width: 100%;
}

.policy-row__main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0 40px;
}

.policy-row__title {
    max-width: 442px;
    margin: 0;

    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
    color: #1C386B;
}

.policy-row__link {
    flex-shrink: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 18px;

    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    color: #1C386B;
    text-decoration: none;
    white-space: nowrap;
}

.policy-row__link svg:last-child {
    display: none;
}

.policy-row__read-more {
    display: inline-block;
    margin: 6px 0 0;
    padding: 0;
    border: none;
    background: none;

    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #00A8E3;
    cursor: pointer;
}

.policy-row__description {
    display: none;
    max-width: 780px;
    margin: 12px 0 0;

    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1C386B;
}

.policy-row.is-expanded .policy-row__description {
    display: block;
}

.policy-row__description p,
.policy-row__description ul,
.policy-row__description ol {
    margin: 0 0 12px;
}

.policy-row__description p:last-child,
.policy-row__description ul:last-child,
.policy-row__description ol:last-child {
    margin: 0;
}

.policy-row__description a {
    font-weight: 600;
    color: #042b58;
}

/* Meeting Information */

#meetings {
    padding: 84px 108px;
    background: #fff;
}

.meetings-inner .container {
    width: 100%;
    max-width: 1310px;
    margin: 0 auto;
}

.meetings-inner__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0 24px;

    margin: 0 0 28px;
}

.meetings-inner__title {
    margin: 0;

    font-size: 32px;
    font-weight: 700;
    line-height: 35px;
    color: #1C386B;
}

.meetings-inner__pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 22px;
}

.meetings-pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.meetings-pagination__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.meetings-pagination__arrow svg {
    width: 8px;
    height: 14px;
}

.meetings-pagination__info {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #00A8E3;
    white-space: nowrap;
}

/* Slider track — before Slick initialises, lay slides out in a row to avoid a
   vertical flash of unstyled content. */
.meetings-inner__slider {
    display: flex;
    flex-direction: row;
}

.meetings-inner__slider.slick-initialized {
    display: block;
}

.meeting-slide {
    width: 33.333%;
    padding: 0 9px;
    box-sizing: border-box;
}

.meetings-inner__slider .slick-list {
    margin: 0 -9px;
}

.meetings-inner__slider .slick-track {
    display: flex;
    align-items: stretch;
}

.meetings-inner__slider .slick-slide {
    height: auto;
    padding: 0 9px;
    box-sizing: border-box;
}

/* Slick wraps each slide, so the outer .meeting-slide padding is no longer
   needed once initialised. */
.meetings-inner__slider.slick-initialized .meeting-slide {
    width: auto;
    padding: 0;
}

.meeting-card {
    height: 100%;
    min-height: 254px;

    display: flex;
    flex-direction: column;

    padding: 15px 15px 20px;
    border-top: 1px solid #00A8E3;
}

.meeting-card {
    transition: background-color 0.2s ease;
}

.meeting-card:hover {
    background: #F2F4F6;
}

.meeting-card__date {
    margin: 0 0 40px;

    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #1C386B;
}

.meeting-card__title {
    margin: 0;

    font-size: 30px;
    font-weight: 500;
    line-height: 40px;
    color: #1C386B;
}

.meeting-card__footer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0 16px;

    margin-top: auto;
    padding-top: 24px;
}

.meeting-card__read-more {
    font-size: 11px;
    font-weight: 400;
    line-height: 22px;
    color: #00A8E3;
    text-decoration: none;
}

.meeting-card__calendar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 15px;

    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #00A8E3;
    text-decoration: none;
}

.meeting-card__calendar svg {
    flex-shrink: 0;
}

/* Person bio popup (Bootstrap modal) */
.cg-person-modal {
    background: rgba(28, 56, 107, 0.53);
}

.cg-person-modal .modal-dialog {
    height: 100%;
    width: 100%;
    max-width: 845px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-person-modal .modal-content {
    position: relative;
    flex-direction: row;
    width: 100%;
    height: 452px;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.cg-person-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 1;
}

.cg-person-modal .modal-body {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 0;
}

.cg-person-modal__image {
    flex-shrink: 0;
    width: 322px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0px 4px 4px 0px #00000040;
}

.cg-person-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cg-person-modal__content {
    display: flex;
    flex-direction: column;
    width: 100%;

    padding: 75px 45px 40px 45px;
}

.cg-person-modal__content--full {
    padding: 60px 55px 40px;
}

.cg-person-modal__name {
    display: block;
    margin: 0 0 12px;

    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #00A8E3;
}

.cg-person-modal__role {
    display: block;
    margin: 0 0 12px;

    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #1C386B;
}

.cg-person-modal__bio {
    flex: 1 1 auto;
    overflow-y: auto;

    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #707070;
}

.cg-person-modal__bio p {
    margin: 0 0 12px;
}

.cg-person-modal__bio p:last-child {
    margin: 0;
}

/* Responsive */
@media only screen and (max-width: 1200px) {

    .person-card {
        max-width: calc(33.3% - 40px);
    }

    #executive-leadership h2,
    .policies-inner__label {
        width: calc(33.3% - 40px);
    }

    #executive-leadership .people-inner__grid,
    .committees-inner__list,
    .policies-inner__list {
        width: calc(66.6% - 20px);
    }

    #executive-leadership .people-inner > .container > p {
        width: 100%;
    }

    #executive-leadership .person-card {
        max-width: calc(50% - 30px);
    }
}

@media only screen and (min-width: 1025px) {

    #executive-leadership .people-inner__grid .people-inner__title {
        display: none;
    }
}

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

    #hero .hero-inner .container {
        height: 388px;
        justify-content: flex-end;
        padding: 88px 0 40px;
    }

    #hero .hero-inner h1 {
        max-width: 320px;
    }

    #board-of-directors {
        padding: 48px 24px 42px;
    }

    #executive-leadership {
        padding: 0 24px;
    }

    #committees {
        padding: 48px 24px 128px;
    }
    
    #code-of-practice,
    #meetings {
        padding: 48px 24px;
    }

    .people-inner__title,
    .committees-inner__title,
    .policies-inner__title,
    .meetings-inner__title {
        margin: 0 0 24px;

        font-size: 26px;
        line-height: 1.2;
    }

    .people-inner__intro {
        margin: 0 0 32px;
    }

    .people-inner__intro p {
        font-size: 16px;
        line-height: 24px;
    }

    /* Cards - 2 per row */
    .people-inner__grid {
        flex-wrap: wrap;
        gap: 42px 16px;
    }

    .person-card {
        max-width: calc(50% - 8px);
    }

    .person-card__info {
        height: 94px;
        padding: 12px;
        gap: 6px;
    }

    .person-card__name {
        margin: 0;
        font-size: 14px;
        line-height: 1;
    } 

    .person-card__role {
        font-size: 11px;
        line-height: 13px;
    }

    #executive-leadership .people-inner__grid {
        width: 100%;
    }

    #executive-leadership h2 {
        width: calc(50% - 8px);
    }

    #executive-leadership h2:after {
        width: 150px;
    }

    #executive-leadership .container > h2 {
        display: none;
    }

    #executive-leadership .person-card {
        max-width: calc(50% - 8px);
    }

    .committees-inner__list,
    .policies-inner__list {
        width: 100%;
    }

    /* Committees */
    .committees-inner__head {
        gap: 24px 0;
        margin: 0 0 32px;
    }

    .committees-inner__list {
        max-width: 100%;
    }

    .committee-row {
        column-gap: 40px;
        padding: 20px 0;
    }

    .committee-row__header {
        gap: 0 14px;
    }

    .committee-row__charter {
        font-size: 0;
    }

    .committee-row__name {
        font-size: 20px;
        font-weight: 400;
    }

    .committee-row__toggle {
        display: none;
    }

    .policy-row__description {
        max-width: 100%;
    }

    /* Code of Practice - stack label above list */
    .policies-inner__body {
        flex-direction: column;
        gap: 24px 0;
    }

    .policies-inner__label {
        width: 100%;
    }

    .policy-row__title {
        font-size: 18px;
        line-height: 24px;
    }

    .policy-row__link {
        font-size: 0;
        gap: 0;
    }

    .policy-row__link svg:first-child {
        display: none;
    }

    .policy-row__link svg:last-child {
        display: block;
    }

    .policy-row__read-more {
        display: none;
    }

    /* Meetings - slider shows 1 per view */
    .meetings-inner__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0 16px;
        margin: 0 0 42px;
    }

    .meetings-inner__title {
        margin: 0 !important;
    }

    .meeting-slide {
        width: 100%;
    }

    .meeting-card {
        padding: 15px 22px 20px;
    }

    .slick-current .meeting-card {
        background: #F2F4F6;
        box-shadow: 0px 4px 4px 0px #00000040;
    }

    .meeting-card__date {
        margin: 0 0 20px;
    }

    .meeting-card__title {
        font-size: 24px;
        line-height: 32px;
    }

    /* Popup - fullscreen, no image */
    .cg-person-modal .modal-dialog {
        max-width: 100%;
        height: 100%;
        margin: 0;
    }

    .cg-person-modal .modal-content {
        max-height: 100vh;
        max-width: calc(100% - 32px);
    }

    .cg-person-modal__image {
        display: none;
    }

    .cg-person-modal__content,
    .cg-person-modal__content--full {
        padding: 45px 24px 32px;
    }
}
