/*
|--------------------------------------------------------------------------
| CGEI About Page
|--------------------------------------------------------------------------
*/

.about-page {
    width: 100%;
    background: #ffffff;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13pt;
}

.about-page,
.about-page * {
    box-sizing: border-box;
    font-family: Georgia, "Times New Roman", serif;
}

/*
|--------------------------------------------------------------------------
| Common section layout
|--------------------------------------------------------------------------
*/

.about-section {
    width: calc(100% - 40px);
    max-width: 1560px;
    margin: 0 auto;
    padding: 20px 32px;
}

/*
|--------------------------------------------------------------------------
| Typography
|--------------------------------------------------------------------------
*/

.about-section-heading {
    margin: 0 0 13px;
    padding: 0;
    color: #001d50;
    font-size: 13pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.about-section-heading::before,
.about-section-heading::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
}

.about-section-introduction,
.community-list li,
.scenarios-introduction,
.future-card p,
.universe-search-input,
.universe-search-result,
.universe-category-card {
    font-size: 13pt;
}

.about-section-introduction {
    margin: 0;
    color: #111111;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.community-introduction,
.footprint-introduction,
.universe-introduction {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
}

/*
|--------------------------------------------------------------------------
| About hero
|--------------------------------------------------------------------------
*/

.about-hero {
    min-height: 280px;
    background: #ffffff;
}

.about-hero .hero-text-panel {
    padding: 28px 32px;
    background: #ffffff;
    color: #111111;
}

.about-hero .hero-title,
.about-hero .hero-subtitle,
.about-hero .hero-description {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13pt;
}

.about-hero .hero-title {
    margin: 0 0 7px;
    color: #111111;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

.about-hero .hero-subtitle {
    margin: 0 0 14px;
    color: #111111;
    font-weight: 700;
    line-height: 1.4;
}

.about-hero .hero-description {
    max-width: 100%;
    margin: 0;
    color: #111111;
    line-height: 1.55;
    text-align: left;
}

/*
|--------------------------------------------------------------------------
| CGEI Community
|--------------------------------------------------------------------------
*/

.community-section {
    padding-top: 22px;
    padding-bottom: 18px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 60px;
    margin-top: 14px;
}

.community-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.community-list li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 28px;
    color: #111111;
    font-weight: 400;
    line-height: 1.4;
}

.community-list li::before {
    position: absolute;
    top: -3px;
    left: 0;
    color: #111111;
    content: "✓";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13pt;
    font-weight: 700;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Plausible scenarios
|--------------------------------------------------------------------------
*/

.scenarios-section {
    padding-top: 22px;
    padding-bottom: 24px;
    border-top: 1px solid #777777;
    border-bottom: 1px solid #777777;
}

.scenarios-introduction {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    color: #111111;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}

.futures-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.future-card {
    position: relative;
    min-width: 0;
    min-height: 160px;
    padding: 22px 17px 15px;
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 7px;
    background: #ffffff;
}

.future-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 30px solid #001d50;
    border-right: 30px solid transparent;
    content: "";
}

.future-card::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 18px solid #ff7900;
    border-right: 18px solid transparent;
    content: "";
}

.future-card p {
    margin: 0;
    color: #111111;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/*
|--------------------------------------------------------------------------
| Global Footprint and The CGEI Universe
|--------------------------------------------------------------------------
*/

.institutional-reach-section {
    padding-top: 24px;
    padding-bottom: 28px;
}

.institutional-reach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.institutional-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 24px 26px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    background: #ffffff;
}

.footprint-panel,
.universe-panel {
    padding-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Global Footprint image
|--------------------------------------------------------------------------
*/

.global-footprint-figure {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.global-footprint-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    margin: 0 auto;
    object-fit: cover;
    object-position: center top;
}

/*
|--------------------------------------------------------------------------
| CGEI Universe search
|--------------------------------------------------------------------------
*/

.universe-search-interface {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 10px;
}

.universe-search-field {
    position: relative;
    width: 100%;
}

.universe-search-field[hidden] {
    display: none;
}

.universe-search-control {
    position: relative;
    width: 100%;
}

.universe-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.universe-search-input {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 11px 58px 11px 16px;
    border: 2px solid #001d50;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 13pt;
    line-height: 1.35;
}

.universe-search-input::placeholder {
    color: #111111;
    opacity: 1;
}

.universe-search-input:focus {
    border-color: #c89b2c;
    outline: 2px solid #c89b2c;
    outline-offset: 2px;
}

.universe-search-input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/*
|--------------------------------------------------------------------------
| Search results
|--------------------------------------------------------------------------
*/

.universe-search-results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 310px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border: 1px solid #001d50;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(0, 20, 58, 0.16);
    list-style: none;
}

.universe-search-result {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 14px;
    border-bottom: 1px solid #d7dce2;
    color: #111111;
    cursor: pointer;
    font-size: 13pt;
    line-height: 1.35;
}

.universe-search-result:last-child {
    border-bottom: 0;
}

.universe-search-result:hover,
.universe-search-result.is-active {
    background: #eef3fa;
}

.universe-result-name {
    color: #001d50;
    font-weight: 700;
}

.universe-result-category {
    max-width: 48%;
    color: #111111;
    font-size: 13pt;
    text-align: right;
}

/*
|--------------------------------------------------------------------------
| CGEI Universe category cards
|--------------------------------------------------------------------------
*/

.universe-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.universe-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 170px;
    height: 170px;
    max-height: 170px;
    padding: 10px 12px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #001d50;
    border-top: 5px solid #c89b2c;
    background: #ffffff;
    color: #111111;
    font-size: 12pt;
    text-align: center;
}

.universe-category-title,
.universe-entry-name {
    margin: 0;
    color: #001d50;
    font-size: 12pt;
    font-weight: 700;
    line-height: 1.35;
}

.universe-entry-description {
    margin: 12px 0 0;
    color: #111111;
    font-size: 12pt;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.universe-entry-link {
    display: block;
    margin-top: 7px;
    color: #111111;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.universe-entry-link:hover,
.universe-entry-link:focus-visible {
    color: #001d50;
}

.universe-entry-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    width: 100%;
    margin-bottom: 6px;
    color: #111111;
}

.universe-entry-close {
    padding: 3px 8px;
    border: 2px solid #001d50;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: 1.2;
}

.universe-entry-close:hover {
    background: #eef3fa;
}

.universe-entry-close:focus-visible {
    outline: 2px solid #c89b2c;
    outline-offset: 2px;
}

.universe-entry-timer {
    color: #111111;
    font-size: 12pt;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.universe-entry-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.universe-entry-content {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.universe-entry-flag {
    flex: 0 0 auto;
    width: 30px;
    height: 20px;
    border: 1px solid #d7dce2;
    object-fit: cover;
}

.universe-category-card.has-entry {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .universe-stream-track {
        animation: none;
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Smaller desktop screens
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {
    .about-section {
        padding-right: 24px;
        padding-left: 24px;
    }

    .community-grid {
        gap: 24px 35px;
    }

    .futures-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .institutional-panel {
        min-height: 0;
        height: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .global-footprint-figure {
        margin: 0;
    }

    .global-footprint-figure img {
        width: 100%;
        height: 100%;
        min-height: 100%;
        max-height: none;
        object-fit: cover;
    }

    .universe-category-card {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/*
|--------------------------------------------------------------------------
| Tablets
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .about-hero {
        min-height: auto;
    }

    .community-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .community-list li {
        margin-bottom: 9px;
    }

    .futures-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .institutional-reach-grid {
        grid-template-columns: 1fr;
    }

    .institutional-panel {
        min-height: auto;
        height: auto;
    }

    .global-footprint-figure {
        flex: 0 0 auto;
        min-height: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .global-footprint-figure img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 560px;
        object-fit: contain;
    }

    .universe-search-interface {
        margin-top: 26px;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile devices
|--------------------------------------------------------------------------
*/

@media (max-width: 650px) {
    .about-section {
        width: calc(100% - 28px);
        padding: 18px 6px;
    }

    .about-hero .hero-text-panel {
        padding: 24px 18px;
    }

    .futures-grid {
        grid-template-columns: 1fr;
    }

    .future-card {
        min-height: auto;
    }

    .institutional-panel {
        padding: 20px 18px;
    }

    .global-footprint-figure {
        flex: 0 0 auto;
        min-height: 0;
        margin: 0;
    }

    .global-footprint-figure img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 400px;
    }

    .universe-category-grid {
        grid-template-columns: 1fr;
    }

    .universe-category-card {
        min-height: 170px;
        height: 170px;
        max-height: 170px;
    }

    .universe-search-result {
        display: block;
    }

    .universe-result-category {
        display: block;
        max-width: none;
        margin-top: 4px;
        text-align: left;
    }
}

.universe-category-title {
    flex: 0 0 auto;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding-bottom: 6px;
    border-bottom: 5px solid #c89b2c;
    text-align: center;
}

.universe-stream-viewport {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.universe-stream-track {
    animation: universe-stream var(--stream-duration, 300s) linear infinite;
    will-change: transform;
}

.universe-stream-track.is-still {
    animation: none;
    transform: none;
}

.universe-stream-viewport:hover .universe-stream-track,
.universe-stream-viewport:focus-within .universe-stream-track,
.universe-stream-viewport.is-interacting .universe-stream-track {
    animation-play-state: paused;
}

.universe-stream-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.universe-stream-name {
    width: 100%;
    padding: 9px 5px;
    border: 0;
    border-bottom: 1px solid #e1e4e8;
    background: transparent;
    color: #111111;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.universe-stream-name:hover,
.universe-stream-name:focus-visible {
    background: #eef3fa;
    outline: 2px solid #c89b2c;
    outline-offset: -2px;
}

@keyframes universe-stream {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(calc(-1 * var(--stream-distance, 0px)));
    }
}

.universe-search-input::-webkit-search-cancel-button {
    display: none;
}

.universe-search-action {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 42px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
}

.universe-search-action:focus-visible {
    outline: 2px solid #c89b2c;
    outline-offset: 1px;
}

.universe-search-action span,
.universe-search-action span::before,
.universe-search-action span::after {
    position: absolute;
    display: block;
    content: '';
}

.universe-search-action.is-search span {
    top: 9px;
    left: 10px;
    width: 13px;
    height: 13px;
    border: 2px solid #001d50;
    border-radius: 50%;
}

.universe-search-action.is-search span::after {
    top: 12px;
    left: 13px;
    width: 10px;
    height: 2px;
    transform: rotate(45deg);
    transform-origin: left center;
    background: #001d50;
}

.universe-search-action.is-clear span::before,
.universe-search-action.is-clear span::after {
    top: 19px;
    left: 9px;
    width: 24px;
    height: 2px;
    background: #111111;
}

.universe-search-action.is-clear span::before {
    transform: rotate(45deg);
}

.universe-search-action.is-clear span::after {
    transform: rotate(-45deg);
}
