﻿/* WY-Adapt site map. Colors are contrast-checked (WCAG AA). */
.wymap {
    --wymap-navy: #0B1A3A;
    --wymap-muted: #4A5A70;
    --wymap-line: #0B1A3A;
    max-width: 1320px;
    margin: 0 auto;
    padding: 64px 32px 88px;
    box-sizing: border-box;
    color: var(--wymap-navy);
    font-family: Inter, system-ui, sans-serif;
}

    .wymap *, .wymap *::before, .wymap *::after {
        box-sizing: border-box;
    }

    .wymap ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.wymap__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.wymap__intro {
    text-align: center;
    margin-bottom: 36px;
}

.wymap__title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--wymap-navy);
}

.wymap__lede {
    margin: 10px 0 0;
    font-size: 18px;
    color: var(--wymap-muted);
}

.wymap :where(button) {
    font-family: inherit;
    line-height: inherit;
}

.wymap a:focus-visible, .wymap button:focus-visible {
    outline: 3px solid var(--wymap-navy);
    outline-offset: 3px;
}

/* Root */
.wymap__root-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .wymap__root-wrap::after {
        content: "";
        width: 3px;
        height: 26px;
        background: var(--wymap-line);
    }

.wymap__root {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--wymap-navy);
    color: #fff;
    border: 0;
    cursor: pointer;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 26px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(11, 26, 58, .25);
}

    .wymap__root svg {
        color: #CFE8B8;
    }

/* Columns + connectors */
.wymap__sites {
    display: grid;
    grid-template-columns: var(--wymap-cols);
    align-items: start;
}

.wymap__site {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 12px 0;
    transition: opacity .2s;
}

    .wymap__site::before { /* horizontal bar */
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border-top: 3px solid var(--wymap-line);
    }

    .wymap__site:first-child::before {
        left: 50%;
    }

    .wymap__site:last-child::before {
        right: 50%;
    }

    .wymap__site:only-child::before {
        display: none;
    }

    .wymap__site::after { /* drop to the card */
        content: "";
        position: absolute;
        top: 0;
        left: calc(50% - 1.5px);
        width: 3px;
        height: 26px;
        background: var(--wymap-line);
    }

.wymap__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--wymap-accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--wymap-accent);
    margin-bottom: -8px;
    position: relative;
    z-index: 2;
}

/* Card */
.wymap__card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(11, 26, 58, .12);
}

.wymap__site-heading {
    margin: 0;
}

.wymap__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 104px;
    padding: 20px;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: #fff;
    background: var(--wymap-accent);
    overflow: hidden;
}

.wymap__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

    .wymap__photo::after { /* keeps white text at AA contrast over photos */
        content: "";
        position: absolute;
        inset: 0;
        background: var(--wymap-accent);
        opacity: .7;
    }

.wymap__header-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    color: var(--wymap-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wymap__header-text {
    position: relative;
    flex: 1;
}

.wymap__site-name {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.wymap__site-meta {
    display: block;
    font-size: 14px;
    color: #F2F5EE;
    margin-top: 4px;
}

.wymap__chevron {
    position: relative;
    display: none;
    flex-shrink: 0;
    transition: transform .2s;
}

.wymap__panel {
    padding: 14px 14px 16px;
    background: #F7FAF4;
}

.wymap__category {
    margin: 10px 4px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--wymap-accent);
}

.wymap__apps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wymap__app {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #DCE5D2;
    box-shadow: 0 2px 6px rgba(11, 26, 58, .06);
    color: var(--wymap-navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

a.wymap__app:hover {
    border-color: var(--wymap-accent);
    color: var(--wymap-navy);
}

    a.wymap__app:hover .wymap__app-name {
        text-decoration: underline;
    }

.wymap__app-icon {
    flex-shrink: 0;
    color: var(--wymap-accent);
}

.wymap__app-name {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.wymap__app-chevron {
    flex-shrink: 0;
    color: var(--wymap-muted);
}

.wymap__app--soon {
    border-style: dashed;
    border-color: #8FA37A;
    box-shadow: none;
    color: var(--wymap-muted);
}

    .wymap__app--soon .wymap__app-icon {
        color: var(--wymap-muted);
    }

.wymap__badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.wymap__app-name .wymap__badge {
    display: table;
    margin-top: 4px;
}
/* own line under the name */
.wymap__badge--soon {
    color: #166534;
    background: #DCF0D0;
}

.wymap__badge--signin {
    color: #1E3A5F;
    background: #E3ECF7;
}

.wymap__visit {
    display: inline-block;
    margin: 12px 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #15803D;
}

    .wymap__visit:hover {
        color: #0F5F2C;
    }

/* Focus state (set by wyadapt-map.js) */
.wymap.is-focused .wymap__site {
    opacity: .35;
}

    .wymap.is-focused .wymap__site.is-active {
        opacity: 1;
    }

.wymap__site.is-active .wymap__card {
    border-color: var(--wymap-navy);
}

/* Mobile: accordion, no connectors */
@media (max-width: 899px) {
    .wymap {
        padding: 40px 16px 56px;
    }

    .wymap__title {
        font-size: 28px;
    }

    .wymap__root-wrap {
        display: none;
    }

    .wymap__sites {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wymap__site {
        padding: 0;
    }

        .wymap__site::before, .wymap__site::after, .wymap__dot {
            display: none;
        }

    .wymap.is-focused .wymap__site {
        opacity: 1;
    }

    .wymap__header {
        min-height: 80px;
        padding: 16px;
    }

    .wymap__header-icon {
        width: 44px;
        height: 44px;
    }

    .wymap__site-name {
        font-size: 19px;
    }

    .wymap__chevron {
        display: block;
    }

    .wymap__header[aria-expanded="true"] .wymap__chevron {
        transform: rotate(180deg);
    }

    .wymap.js .wymap__panel[hidden] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wymap *, .wymap__site {
        transition: none !important;
    }
}
