:root {
    --wp-navy: #12233F;
    --wp-teal: #0F6B65;
    --wp-teal-dark: #0A514D;
    --wp-gold: #E8A33D;

    --wp-text: #2B2B2B;
    --wp-muted: #74756F;

    --wp-bg: #FAF7F2;
    --wp-white: #FFFFFF;

    --wp-soft: #F3EFE9;
    --wp-teal-soft: #EFF6F4;

    --wp-border: #E5E0D8;

    --wp-footer-text: #172321;

    --wp-shadow:
        0 16px 45px rgba(18, 35, 63, 0.07);

    --wp-width: 1180px;
}


/* =================================
   Reset
================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--wp-bg);
}

body {
    margin: 0;

    background: var(--wp-bg);
    color: var(--wp-text);

    font-family:
        Inter,
        Arial,
        sans-serif;

    line-height: 1.55;
}

a {
    color: inherit;
}


/* =================================
   Main Portal
================================= */

.portal {
    width: 100%;

    min-height: calc(100vh - 125px);

    padding: 78px 26px 78px;
}


/* =================================
   Main Language Area
================================= */

.portal-language-area {
    max-width: var(--wp-width);

    margin: 0 auto 58px;

    display: grid;

    grid-template-columns:
        225px
        minmax(390px, 500px)
        225px;

    gap: 36px;

    align-items: center;
    justify-content: center;
}


/* =================================
   Side Languages
================================= */

.language-side {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.language-mini {
    min-height: 71px;

    padding: 14px 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid var(--wp-border);
    border-radius: 10px;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.language-mini strong {
    color: var(--wp-navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    font-weight: 600;
}

.language-mini span {
    margin-top: 2px;

    color: var(--wp-muted);

    font-size: 11px;
}

.language-mini:not(.future):hover {
    transform: translateY(-2px);

    background: var(--wp-white);

    border-color: #BDD3CD;
}

.language-mini.future {
    opacity: 0.69;

    cursor: default;
}


/* =================================
   Language Stagger
================================= */

.language-side-left
.language-mini:nth-child(1) {
    margin-right: 28px;
}

.language-side-left
.language-mini:nth-child(2) {
    margin-right: 7px;
}

.language-side-left
.language-mini:nth-child(3) {
    margin-right: 7px;
}

.language-side-left
.language-mini:nth-child(4) {
    margin-right: 28px;
}

.language-side-right
.language-mini:nth-child(1) {
    margin-left: 28px;
}

.language-side-right
.language-mini:nth-child(2) {
    margin-left: 7px;
}

.language-side-right
.language-mini:nth-child(3) {
    margin-left: 7px;
}

.language-side-right
.language-mini:nth-child(4) {
    margin-left: 28px;
}


/* =================================
   Center Card
================================= */

.portal-center-card {
    position: relative;

    z-index: 20;

    padding: 31px 32px 32px;

    background: var(--wp-white);

    border: 1px solid var(--wp-border);
    border-radius: 17px;

    box-shadow: var(--wp-shadow);

    text-align: center;

    overflow: visible;
}

.center-accent {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background: var(--wp-teal);

    border-radius:
        17px
        17px
        0
        0;
}


/* =================================
   WikiPartner Icon
================================= */

.portal-symbol {
    width: 155px;
    height: 155px;

    margin: 8px auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-symbol img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =================================
   Center Logo
================================= */

.portal-center-brand {
    margin: 0 auto 24px;

    text-align: center;
}

.center-logo {
    display: block;

    width: auto;
    height: 43px;

    max-width: 235px;

    margin: 0 auto;

    object-fit: contain;
}

.center-tagline {
    margin-top: 6px;

    color: var(--wp-muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 12px;

    letter-spacing: 0.2px;
}


/* =================================
   Search Wrapper
================================= */

.search-wrapper {
    position: relative;

    z-index: 50;

    width: 100%;
}


/* =================================
   Search Bar
================================= */

.portal-search {
    position: relative;

    z-index: 3;

    height: 51px;

    display: flex;
    align-items: stretch;

    background: var(--wp-white);

    border: 1px solid #D8D2C9;
    border-radius: 9px;

    overflow: hidden;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.portal-search:focus-within {
    border-color: var(--wp-teal);

    box-shadow:
        0 0 0 3px rgba(15, 107, 101, 0.09);
}

.portal-search input {
    flex: 1;

    min-width: 0;

    padding: 0 15px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--wp-text);

    font-family: inherit;
    font-size: 14px;
}

.portal-search input::placeholder {
    color: #9A9995;
}

.portal-search select {
    width: 58px;

    padding: 0 7px;

    border: 0;
    border-left: 1px solid var(--wp-border);

    outline: 0;

    background: var(--wp-white);

    color: var(--wp-muted);

    font-size: 11px;
}

.portal-search button {
    padding: 0 20px;

    border: 0;

    background: var(--wp-teal);
    color: var(--wp-white);

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.portal-search button:hover {
    background: var(--wp-teal-dark);
}


/* =================================
   Live Search Suggestions
================================= */

.search-suggestions {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    z-index: 1000;

    max-height: 360px;

    overflow-y: auto;

    background: var(--wp-white);

    border: 1px solid var(--wp-border);
    border-radius: 10px;

    box-shadow:
        0 16px 40px rgba(
            18,
            35,
            63,
            0.14
        );

    text-align: left;
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion-item {
    width: 100%;

    min-height: 54px;

    margin: 0;
    padding: 9px 12px;

    display: grid;

    grid-template-columns:
        32px
        minmax(0, 1fr)
        20px;

    gap: 10px;

    align-items: center;

    background: var(--wp-white);

    border: 0;
    border-bottom: 1px solid #EEEAE4;

    color: var(--wp-text);

    font-family: inherit;

    text-align: left;

    cursor: pointer;
}

.search-suggestion-item:last-child {
    border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: var(--wp-teal-soft);
}

.suggestion-icon {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--wp-teal-soft);

    border-radius: 6px;

    color: var(--wp-teal);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;
    font-weight: 700;
}

.suggestion-text {
    min-width: 0;

    overflow: hidden;

    color: var(--wp-navy);

    font-size: 13px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-arrow {
    color: var(--wp-muted);

    font-size: 14px;

    text-align: right;
}

.search-suggestion-item:hover
.suggestion-arrow,
.search-suggestion-item.active
.suggestion-arrow {
    color: var(--wp-teal);
}

.search-no-results {
    padding: 16px;

    color: var(--wp-muted);

    font-size: 12px;

    text-align: center;
}


/* =================================
   All Languages Box
================================= */

.all-languages {
    position: relative;

    max-width: 950px;

    margin: 0 auto;

    padding: 31px 29px 30px;

    background: rgba(255, 255, 255, 0.74);

    border: 1px solid var(--wp-border);
    border-radius: 14px;

    overflow: hidden;
}

.all-languages::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: var(--wp-gold);
}

.all-languages-heading {
    margin-bottom: 21px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: var(--wp-gold);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}

.all-languages h2 {
    margin: 0;

    color: var(--wp-navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 600;
}

.language-note {
    color: var(--wp-muted);

    font-size: 10px;
}


/* =================================
   Language Grid
================================= */

.language-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 9px;
}

.language-item {
    min-height: 43px;

    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--wp-soft);

    border: 1px solid transparent;
    border-radius: 7px;

    color: #66645F;

    font-size: 11px;

    text-align: center;
    text-decoration: none;
}

.language-item.active {
    background: var(--wp-teal-soft);

    border-color: #CFE1DC;

    color: var(--wp-teal);

    font-weight: 700;
}

a.language-item:hover {
    border-color: #B6D2CA;
}


/* =================================
   Footer
================================= */

.portal-footer {
    width: 100%;

    background: var(--wp-teal);

    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
    width: 100%;
    max-width: 1180px;

    min-height: 126px;

    margin: 0 auto;
    padding: 25px 26px;

    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr)
        250px;

    gap: 38px;

    align-items: center;
}


/* =================================
   Footer Logo
================================= */

.footer-brand {
    width: 180px;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    justify-self: start;

    text-align: left;
}

.footer-logo-link {
    display: block;

    width: 140px;
    max-width: 140px;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;

    text-decoration: none;
}

.footer-logo {
    display: block !important;

    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
}


/* =================================
   Footer Legal
================================= */

.footer-legal {
    min-width: 0;

    color: var(--wp-footer-text);

    font-size: 10.5px;
    line-height: 1.55;

    text-align: center;
}

.footer-license {
    max-width: 650px;

    margin: 0 auto;
}

.footer-legal a {
    color: #102F2C;

    font-weight: 700;

    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-policy-links {
    margin-top: 7px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 5px 16px;
}


/* =================================
   Footer Social
================================= */

.footer-social {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    justify-self: end;

    gap: 8px;
}

.social-icon {
    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: rgba(
        250,
        247,
        242,
        0.18
    );

    border: 1px solid rgba(
        18,
        35,
        63,
        0.24
    );

    border-radius: 50%;

    color: var(--wp-footer-text);

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        border-color 0.15s ease;
}

.social-icon:hover {
    transform: translateY(-2px);

    background: var(--wp-bg);

    border-color: var(--wp-bg);

    color: var(--wp-teal-dark);
}

.social-linkedin {
    font-size: 11px;
}

.social-facebook {
    font-family: Arial, sans-serif;

    font-size: 17px;
}

.social-instagram {
    font-size: 17px;
}

.social-youtube {
    font-size: 11px;
}

.social-mediawiki {
    font-size: 8px;

    letter-spacing: -0.2px;
}


/* =================================
   Tablet
================================= */

@media (max-width: 950px) {

    .portal-language-area {
        grid-template-columns:
            180px
            minmax(350px, 470px)
            180px;

        gap: 18px;
    }

    .language-mini {
        padding: 12px;
    }

    .language-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* =================================
   Small Tablet
================================= */

@media (max-width: 780px) {

    .portal {
        padding-top: 55px;
    }

    .portal-language-area {
        grid-template-columns:
            1fr
            1fr;

        max-width: 620px;
    }

    .portal-center-card {
        grid-column: 1 / -1;
        grid-row: 1;

        max-width: 500px;
        width: 100%;

        margin: 0 auto;
    }

    .language-side {
        grid-row: 2;
    }

    .language-side-left
    .language-mini,
    .language-side-right
    .language-mini {
        margin: 0;
    }

    .language-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns:
            150px
            minmax(0, 1fr);

        gap: 25px;
    }

    .footer-brand {
        width: 150px;

        justify-self: start;
        justify-content: flex-start;
    }

    .footer-logo-link {
        width: 125px;
        max-width: 125px;
    }

    .footer-logo {
        width: 125px !important;
        max-width: 125px !important;
    }

    .footer-legal {
        text-align: left;
    }

    .footer-license {
        margin: 0;
    }

    .footer-policy-links {
        justify-content: flex-start;
    }

    .footer-social {
        grid-column: 1 / -1;

        justify-self: start;
        justify-content: flex-start;

        padding-left: 175px;
    }

}


/* =================================
   Mobile
================================= */

@media (max-width: 560px) {

    .portal {
        padding:
            36px
            16px
            55px;
    }

    .portal-language-area {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .portal-center-card {
        grid-column: 1;

        padding:
            27px
            20px
            24px;
    }

    .portal-symbol {
        width: 125px;
        height: 125px;
    }

    .center-logo {
        height: 38px;

        max-width: 215px;
    }

    .center-tagline {
        font-size: 11px;
    }

    .portal-search {
        height: auto;

        flex-wrap: wrap;
    }

    .portal-search input {
        min-height: 50px;
    }

    .portal-search select {
        width: 25%;

        min-height: 43px;

        border-top: 1px solid var(--wp-border);
        border-left: 0;
    }

    .portal-search button {
        width: 75%;

        min-height: 43px;

        border-top: 1px solid var(--wp-border);
    }

    .search-suggestions {
        top: calc(100% + 5px);

        max-height: 290px;
    }

    .language-side {
        display: grid;

        grid-template-columns:
            1fr
            1fr;
    }

    .language-side-left {
        grid-row: 2;
    }

    .language-side-right {
        grid-row: 3;
    }

    .language-mini {
        min-height: 67px;
    }

    .all-languages {
        padding:
            27px
            18px
            23px;
    }

    .all-languages-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

    .language-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        padding:
            26px
            20px;
    }

    .footer-brand {
        width: 100%;

        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer-logo-link {
        width: 120px;
        max-width: 120px;
    }

    .footer-logo {
        width: 120px !important;
        max-width: 120px !important;
    }

    .footer-legal {
        width: 100%;

        text-align: left;
    }

    .footer-license {
        max-width: none;

        margin: 0;
    }

    .footer-policy-links {
        justify-content: flex-start;
    }

    .footer-social {
        width: 100%;

        padding-left: 0;

        justify-self: auto;

        justify-content: flex-start;

        flex-wrap: wrap;
    }

}

/* ============================================================
   WIKIPARTNER — PORTAL BRAND LINKS
============================================================ */

.portal-symbol-link,
.portal-logo-link {
    display: inline-block;
    text-decoration: none;
}

.portal-symbol-link img,
.portal-logo-link img {
    display: block;
}

/* ============================================================
   WIKIPARTNER — PORTAL DESCRIPTION
============================================================ */

.center-description {
    max-width: 430px;

    margin: 8px auto 0;

    color: #6D7378;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.55;

    text-align: center;
}

/* ============================================================
   WIKIPARTNER — PORTAL LIVE STATISTICS
============================================================ */

.portal-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 7px;

    margin: 14px auto 0;
    padding: 9px 12px;

    color: #6D7378;

    font-size: 11px;
    line-height: 1.4;

    text-align: center;
}


/* Live edition label */

.portal-stat-edition {
    color: #0F6B65;
    font-weight: 600;
}


/* Numbers */

.portal-stat strong {
    color: #12233F;
    font-weight: 700;
}


/* Small separators */

.portal-stat-separator {
    color: #E8A33D;
    font-size: 10px;
}


/* Mobile */

@media (max-width: 520px) {

    .portal-stats {
        gap: 5px;

        margin-top: 12px;

        font-size: 10.5px;
    }

}

/* ============================================================
   WIKIPARTNER — GLOBAL PORTAL THEME
============================================================ */


/* ------------------------------------------------------------
   THEME BUTTON
------------------------------------------------------------ */

.portal-theme-toggle {
    position: fixed;

    top: 20px;
    right: 22px;

    z-index: 1000;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #FFFFFF;

    color: #0F6B65;

    border: 1px solid #DDDAD3;
    border-radius: 50%;

    box-shadow:
        0 6px 20px rgba(18, 35, 63, .08);

    font-family: inherit;
    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.portal-theme-toggle:hover {
    color: #09534E;

    transform: translateY(-1px);
}


.portal-theme-toggle:focus-visible {
    outline: 2px solid #0F6B65;
    outline-offset: 3px;
}


/* ============================================================
   DARK MODE — SAME FAMILY AS EN.WIKIPARTNER.ORG
============================================================ */

html.wp-portal-dark {
    color-scheme: dark;

    background: #0C1517;
}


html.wp-portal-dark body {
    background: #0C1517;

    color: #E2E9E7;
}


/* ------------------------------------------------------------
   FLOATING THEME BUTTON
------------------------------------------------------------ */

html.wp-portal-dark .portal-theme-toggle {
    background: #111D20;

    color: #70CEC3;

    border-color: #2B4144;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .28);
}


html.wp-portal-dark .portal-theme-toggle:hover {
    background: #162426;

    color: #9BE2DA;
}


/* ------------------------------------------------------------
   CENTER CARD
------------------------------------------------------------ */

html.wp-portal-dark .portal-center-card {
    background: #111D20;

    color: #E2E9E7;

    border-color: #2B4144;

    box-shadow:
        0 12px 32px rgba(0, 0, 0, .30);
}


html.wp-portal-dark .center-tagline {
    color: #F0E7D7;
}


html.wp-portal-dark .center-description {
    color: #A4B0AE;
}


/* ------------------------------------------------------------
   SIDE LANGUAGE CARDS
------------------------------------------------------------ */

html.wp-portal-dark .language-mini {
    background: #111D20;

    color: #E2E9E7;

    border-color: #2B4144;
}


html.wp-portal-dark a.language-mini:hover {
    background: #173431;

    border-color: #70CEC3;
}


html.wp-portal-dark .language-mini strong {
    color: #F0E7D7;
}


html.wp-portal-dark .language-mini span {
    color: #A4B0AE;
}


html.wp-portal-dark .language-mini.future {
    background: #111D20;
}


/* ------------------------------------------------------------
   SEARCH
------------------------------------------------------------ */

html.wp-portal-dark .portal-search {
    border-color: #2B4144;
}


html.wp-portal-dark .portal-search input,
html.wp-portal-dark .portal-search select {
    background: #142225;

    color: #E2E9E7;

    border-color: #2B4144;
}


html.wp-portal-dark .portal-search input::placeholder {
    color: #A4B0AE;
}


html.wp-portal-dark .portal-search button {
    background: #70CEC3;

    color: #0C1517;
}


html.wp-portal-dark .portal-search button:hover {
    background: #9BE2DA;
}


/* ------------------------------------------------------------
   SEARCH SUGGESTIONS
------------------------------------------------------------ */

html.wp-portal-dark .search-suggestions {
    background: #111D20;

    color: #E2E9E7;

    border-color: #2B4144;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, .30);
}


html.wp-portal-dark .search-suggestions a,
html.wp-portal-dark .search-suggestions button,
html.wp-portal-dark .search-suggestions [role="option"] {
    color: #E2E9E7;
}


html.wp-portal-dark .search-suggestions a:hover,
html.wp-portal-dark .search-suggestions button:hover,
html.wp-portal-dark .search-suggestions [role="option"]:hover {
    background: #173431;
}


/* ------------------------------------------------------------
   LIVE STATISTICS
------------------------------------------------------------ */

html.wp-portal-dark .portal-stats {
    color: #A4B0AE;
}


html.wp-portal-dark .portal-stat-edition {
    color: #70CEC3;
}


html.wp-portal-dark .portal-stat strong {
    color: #F0E7D7;
}


html.wp-portal-dark .portal-stat-separator {
    color: #E7B65E;
}


/* ------------------------------------------------------------
   LANGUAGES SECTION
------------------------------------------------------------ */

html.wp-portal-dark .all-languages {
    background: #111D20;

    color: #E2E9E7;

    border-color: #2B4144;

    box-shadow:
        0 12px 32px rgba(0, 0, 0, .22);
}


html.wp-portal-dark .all-languages h2 {
    color: #F0E7D7;
}


html.wp-portal-dark .section-label {
    color: #70CEC3;
}


html.wp-portal-dark .language-note {
    color: #A4B0AE;
}


/* Individual language cells */

html.wp-portal-dark .language-item {
    background: #162426;

    color: #A4B0AE;

    border-color: #2B4144;
}


html.wp-portal-dark .language-item.active {
    background: #173431;

    color: #70CEC3;

    border-color: #70CEC3;
}


html.wp-portal-dark a.language-item:hover {
    background: #193633;

    color: #9BE2DA;
}


/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */

html.wp-portal-dark .portal-footer {
    background: #111D20;

    color: #A4B0AE;

    border-color: #2B4144;
}


html.wp-portal-dark .footer-license {
    color: #A4B0AE;
}


html.wp-portal-dark .portal-footer a {
    color: #70CEC3;
}


html.wp-portal-dark .portal-footer a:hover {
    color: #9BE2DA;
}


/* Social buttons */

html.wp-portal-dark .social-icon {
    background: #162426;

    color: #E2E9E7;

    border-color: #2B4144;
}


html.wp-portal-dark .social-icon:hover {
    background: #173431;

    color: #70CEC3;

    border-color: #70CEC3;
}


/* ------------------------------------------------------------
   MOBILE THEME BUTTON
------------------------------------------------------------ */

@media (max-width: 600px) {

    .portal-theme-toggle {
        top: 14px;
        right: 14px;

        width: 36px;
        height: 36px;

        font-size: 17px;
    }

}

/* ============================================================
   WIKIPARTNER — PORTAL VISUAL PRIORITY
============================================================ */


/* ------------------------------------------------------------
   CENTER CARD — PRIMARY FOCUS
------------------------------------------------------------ */

.portal-center-card {
    position: relative;

    border-color: rgba(15, 107, 101, .22);

    box-shadow:
        0 10px 32px rgba(18, 35, 63, .09);
}


/* Existing top accent */

.portal-center-card .center-accent {
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #0F6B65 0%,
            #0F6B65 72%,
            #E8A33D 72%,
            #E8A33D 100%
        );
}


/* ------------------------------------------------------------
   AVAILABLE LANGUAGE — ENGLISH
------------------------------------------------------------ */

a.language-mini {
    position: relative;

    background: #FFFFFF;

    border-color: rgba(15, 107, 101, .28);

    box-shadow:
        0 5px 18px rgba(18, 35, 63, .055);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}


a.language-mini::after {
    content: "LIVE";

    position: absolute;

    top: 9px;
    right: 10px;

    padding: 2px 5px;

    background: #EEF6F5;

    color: #0F6B65;

    border-radius: 4px;

    font-size: 8px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: .7px;
}


a.language-mini strong {
    color: #0F6B65;
}


a.language-mini:hover {
    transform: translateY(-2px);

    background: #EEF6F5;

    border-color: #0F6B65;

    box-shadow:
        0 8px 22px rgba(18, 35, 63, .09);
}


/* ------------------------------------------------------------
   FUTURE LANGUAGE CARDS
------------------------------------------------------------ */

.language-mini.future {
    background: #FAF9F7;

    border-color: #E5E2DC;

    box-shadow: none;

    opacity: .78;

    cursor: default;
}


.language-mini.future strong {
    color: #4D5558;
}


.language-mini.future span {
    color: #8A9194;

    font-size: 10px;
}


/* Do not make planned languages look clickable */

.language-mini.future:hover {
    transform: none;

    background: #FAF9F7;

    border-color: #E5E2DC;

    box-shadow: none;
}


/* ------------------------------------------------------------
   LOWER LANGUAGE GRID
------------------------------------------------------------ */

.language-grid .language-item {
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease;
}


/* English — currently available */

.language-grid .language-item.active {
    position: relative;

    background: #EEF6F5;

    color: #0F6B65;

    border-color: rgba(15, 107, 101, .35);

    font-weight: 600;
}


.language-grid a.language-item.active:hover {
    background: #E4F1EF;

    border-color: #0F6B65;
}


/* Planned editions */

.language-grid .language-item:not(.active) {
    background: #FAF9F7;

    color: #7B8285;

    border-color: #E5E2DC;

    cursor: default;
}


/* ------------------------------------------------------------
   DARK MODE
------------------------------------------------------------ */

html.wp-portal-dark .portal-center-card {
    border-color: rgba(112, 206, 195, .26);

    box-shadow:
        0 14px 36px rgba(0, 0, 0, .32);
}


/* Available English card */

html.wp-portal-dark a.language-mini {
    background: #111D20;

    border-color: rgba(112, 206, 195, .34);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, .17);
}


html.wp-portal-dark a.language-mini::after {
    background: #173431;

    color: #70CEC3;
}


html.wp-portal-dark a.language-mini strong {
    color: #70CEC3;
}


html.wp-portal-dark a.language-mini:hover {
    background: #173431;

    border-color: #70CEC3;
}


/* Future cards */

html.wp-portal-dark .language-mini.future {
    background: #111D20;

    border-color: #2B4144;

    box-shadow: none;

    opacity: .72;
}


html.wp-portal-dark .language-mini.future strong {
    color: #C0C9C7;
}


html.wp-portal-dark .language-mini.future span {
    color: #82908E;
}


html.wp-portal-dark .language-mini.future:hover {
    background: #111D20;

    border-color: #2B4144;
}


/* Bottom language grid */

html.wp-portal-dark
.language-grid
.language-item.active {
    background: #173431;

    color: #70CEC3;

    border-color: rgba(112, 206, 195, .48);
}


html.wp-portal-dark
.language-grid
.language-item:not(.active) {
    background: #162426;

    color: #82908E;

    border-color: #2B4144;
}

/* ============================================================
   WIKIPARTNER — GLOBAL PORTAL RESPONSIVE LAYOUT
   Tablet + Mobile
============================================================ */


/* ============================================================
   TABLET
   900px AND BELOW
============================================================ */

@media (max-width: 900px) {

    /* --------------------------------------------------------
       PAGE
    -------------------------------------------------------- */

    .portal {
        width: 100%;
        max-width: 760px;

        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;

        box-sizing: border-box;
    }


    /* --------------------------------------------------------
       TOP LANGUAGE AREA

       Center card becomes first.
       Language cards move underneath.
    -------------------------------------------------------- */

    .portal-language-area {
        display: grid !important;

        grid-template-columns: 1fr 1fr !important;

        gap: 14px !important;

        align-items: stretch !important;
    }


    .portal-center-card {
        grid-column: 1 / -1;

        order: 1;

        width: 100% !important;
        max-width: none !important;

        box-sizing: border-box;
    }


    .language-side-left {
        order: 2;
    }


    .language-side-right {
        order: 3;
    }


    .language-side {
        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px !important;
    }


    .language-mini {
        width: 100% !important;

        box-sizing: border-box;
    }


    /* --------------------------------------------------------
       CENTER BRANDING
    -------------------------------------------------------- */

    .portal-symbol img {
        max-width: 110px;
        height: auto;
    }


    .center-logo {
        max-width: 230px;
        height: auto;
    }


    .center-description {
        max-width: 410px;
    }


    /* --------------------------------------------------------
       SEARCH
    -------------------------------------------------------- */

    .search-wrapper {
        width: 100%;
        max-width: 560px;

        margin-left: auto;
        margin-right: auto;
    }


    .portal-search {
        width: 100%;

        box-sizing: border-box;
    }


    /* --------------------------------------------------------
       LANGUAGES SECTION
    -------------------------------------------------------- */

    .all-languages {
        width: 100%;

        box-sizing: border-box;
    }


    .language-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }


    /* --------------------------------------------------------
       FOOTER
    -------------------------------------------------------- */

    .footer-inner {
        gap: 22px;
    }

}



/* ============================================================
   MOBILE
   640px AND BELOW
============================================================ */

@media (max-width: 640px) {

    /* --------------------------------------------------------
       PAGE
    -------------------------------------------------------- */

    .portal {
        padding-left: 14px;
        padding-right: 14px;

        padding-top: 58px;
    }


    /* Leave room for floating theme button */

    .portal-theme-toggle {
        top: 12px;
        right: 14px;

        width: 36px;
        height: 36px;

        font-size: 17px;
    }


    /* --------------------------------------------------------
       TOP AREA
    -------------------------------------------------------- */

    .portal-language-area {
        display: flex !important;

        flex-direction: column;

        gap: 12px !important;
    }


    .portal-center-card {
        order: 1;

        width: 100% !important;

        margin: 0 !important;

        box-sizing: border-box;
    }


    .language-side-left {
        order: 2;
    }


    .language-side-right {
        order: 3;
    }


    /* Two language cards per row */

    .language-side {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px !important;
    }


    .language-mini {
        min-width: 0;

        padding-left: 11px !important;
        padding-right: 11px !important;
    }


    /* Keep LIVE badge from covering English */

    a.language-mini {
        padding-right: 48px !important;
    }


    a.language-mini::after {
        top: 8px;
        right: 8px;
    }


    /* --------------------------------------------------------
       CENTER CARD
    -------------------------------------------------------- */

    .portal-center-card {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }


    .portal-symbol img {
        max-width: 92px;
    }


    .center-logo {
        width: auto;
        max-width: 205px;
    }


    .center-tagline {
        font-size: 14px;
        line-height: 1.4;
    }


    .center-description {
        max-width: 340px;

        margin-top: 7px;

        font-size: 12px;
        line-height: 1.5;
    }


    /* --------------------------------------------------------
       SEARCH

       Input stays first row.
       Language + Search button remain usable.
    -------------------------------------------------------- */

    .search-wrapper {
        width: 100%;

        margin-top: 18px;
    }


    .portal-search {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            58px
            auto;

        width: 100%;

        box-sizing: border-box;
    }


    .portal-search input[type="search"] {
        min-width: 0;

        width: 100%;

        font-size: 16px;
    }


    .portal-search select {
        width: 58px;

        min-width: 58px;

        padding-left: 7px;
        padding-right: 7px;
    }


    .portal-search button {
        white-space: nowrap;

        padding-left: 13px;
        padding-right: 13px;
    }


    /* Suggestions match search width */

    .search-suggestions {
        width: 100% !important;

        left: 0 !important;
        right: 0 !important;

        box-sizing: border-box;
    }


    /* --------------------------------------------------------
       LIVE STATS
    -------------------------------------------------------- */

    .portal-stats {
        margin-top: 12px;

        padding-left: 2px;
        padding-right: 2px;

        gap: 5px;

        font-size: 10.5px;
    }


    /* --------------------------------------------------------
       GLOBAL LANGUAGES SECTION
    -------------------------------------------------------- */

    .all-languages {
        margin-top: 18px;
    }


    .all-languages-heading {
        display: block !important;
    }


    .all-languages-heading h2 {
        margin-bottom: 5px;

        font-size: 21px;
        line-height: 1.25;
    }


    .language-note {
        display: block;

        margin-top: 4px;

        font-size: 11px;
    }


    .language-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;
    }


    .language-item {
        min-width: 0;

        padding-left: 10px !important;
        padding-right: 10px !important;

        text-align: center;

        overflow-wrap: anywhere;
    }


    /* --------------------------------------------------------
       FOOTER
    -------------------------------------------------------- */

    .portal-footer {
        margin-top: 28px;
    }


    .footer-inner {
        display: flex !important;

        flex-direction: column;

        align-items: center;

        gap: 18px;

        padding-left: 18px;
        padding-right: 18px;

        text-align: center;
    }


    .footer-brand,
    .footer-legal,
    .footer-social {
        width: 100%;
    }


    .footer-logo {
        max-width: 170px;
        height: auto;
    }


    .footer-policy-links {
        display: flex;

        justify-content: center;
        flex-wrap: wrap;

        gap: 7px 14px;
    }


    .footer-social {
        display: flex;

        justify-content: center;
        flex-wrap: wrap;

        gap: 7px;
    }

}



/* ============================================================
   SMALL MOBILE
   420px AND BELOW
============================================================ */

@media (max-width: 420px) {

    .portal {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* --------------------------------------------------------
       LANGUAGE CARDS
    -------------------------------------------------------- */

    .language-side {
        grid-template-columns: 1fr !important;
    }


    /* --------------------------------------------------------
       CENTER CARD
    -------------------------------------------------------- */

    .portal-center-card {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }


    .portal-symbol img {
        max-width: 82px;
    }


    .center-logo {
        max-width: 185px;
    }


    .center-description {
        font-size: 11.5px;
    }


    /* --------------------------------------------------------
       SEARCH

       On very narrow screens:
       Search input gets full first row.
       EN + Search sit underneath.
    -------------------------------------------------------- */

    .portal-search {
        grid-template-columns:
            70px
            minmax(0, 1fr);

        gap: 0;
    }


    .portal-search input[type="search"] {
        grid-column: 1 / -1;

        width: 100%;
    }


    .portal-search select {
        grid-column: 1;

        width: 70px;
    }


    .portal-search button {
        grid-column: 2;

        width: 100%;
    }


    /* --------------------------------------------------------
       STATS
    -------------------------------------------------------- */

    .portal-stats {
        line-height: 1.6;
    }


    /* --------------------------------------------------------
       LANGUAGE GRID
    -------------------------------------------------------- */

    .language-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .language-item {
        font-size: 11px;
    }

}

/* ============================================================
   WIKIPARTNER — CENTER PANEL ACCENT CLEANUP
============================================================ */

.portal-center-card .center-accent {
    height: 3px !important;

    background: #0F6B65 !important;
}


/* Dark mode */

html.wp-portal-dark
.portal-center-card
.center-accent {
    background: #70CEC3 !important;
}

/* ============================================================
   WIKIPARTNER — FINAL CENTER PANEL ACCENT
============================================================ */


/* Disable the old accent completely */

.portal-center-card .center-accent {
    display: none !important;
}


/* Make the card the positioning container */

.portal-center-card {
    position: relative !important;
    overflow: hidden !important;
}


/* New clean teal accent */

.portal-center-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 4px;

    background: #0F6B65;

    z-index: 2;

    pointer-events: none;
}


/* Dark mode */

html.wp-portal-dark .portal-center-card::before {
    background: #70CEC3;
}
