/* Shared FlowSIM Pro navigation and left download panel. */
body > .container:not(#siteSplit) {
    grid-template-columns: 1fr 1fr;
}

body > .container > .left {
    background: #2d2d2d;
    color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    min-width: 0;
    overflow-y: auto;
}

body > .container > .left .logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

body > .container > .left .logo-icon {
    width: 105px;
    height: 105px;
    flex: 0 0 auto;
}

body > .container > .left .logo-icon svg {
    width: 100%;
    height: 100%;
    stroke: #fff;
    stroke-width: 1.5;
    fill: none;
}

body > .container > .left .logo-text {
    font-size: clamp(1.6rem, 5.2vw, 3.2rem);
    font-weight: 700;
}

body > .container > .left .logo-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

body > .container > .left h1 {
    color: #fff;
    font-size: clamp(1.6rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

body > .container > .left > div:nth-child(2) > p {
    font-size: 1.3rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

body > .container > .left .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #fff;
    color: #2d2d2d;
    text-decoration: none;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    font-weight: 600;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

body > .container > .left .btn:hover {
    background: #f0f0f0;
}

body > .container > .left .downloads {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    align-items: flex-start;
    width: 100%;
    max-width: 560px;
}

body > .container > .left .download-group {
    width: 100%;
}

body > .container > .left .download-group-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

body > .container > .left .download-group-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.16);
}

body > .container > .left .download-primary-grid,
body > .container > .left .addon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

body > .container > .left .download-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
    max-width: none;
}

body > .container > .left .download-item .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
}

body > .container > .left .download-label {
    font-size: clamp(0.95rem, 2vw, 1rem);
    opacity: 0.7;
}

body > .container > .left .addon-card {
    position: relative;
    min-height: 112px;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body > .container > .left .addon-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.34);
}

body > .container > .left .addon-card-featured {
    border-color: rgba(127, 207, 183, 0.58);
    background: linear-gradient(135deg, rgba(54, 139, 116, 0.24), rgba(255, 255, 255, 0.06));
}

body > .container > .left .addon-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

body > .container > .left .addon-name {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

body > .container > .left .addon-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #79cdb3;
    color: #163f33;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body > .container > .left .addon-meta {
    font-size: 0.76rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.66);
}

body > .container > .left .addon-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

body > .container > .left .addon-action span:last-child {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

body > .container > .left .addon-card:hover .addon-action span:last-child {
    transform: translateX(3px);
}

body > .container > .left .meet-us {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body > .container > .left .meet-us-events {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

body > .container > .left .meet-us-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

body > .container > .left .meet-us-event {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: #fff;
    text-decoration: none;
}

body > .container > .left .meet-us-event:hover {
    opacity: 0.9;
}

body > .container > .left .meet-us-logo {
    width: auto;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
}

body > .container > .left .meet-us-details {
    font-size: 0.9rem;
    line-height: 1.5;
}

body > .container > .left .meet-us-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

body > .container > .left .meet-us-date {
    opacity: 0.8;
}

body > .container > .left .meet-us-location {
    opacity: 0.6;
    font-size: 0.85rem;
}

body > .container > .left .left-footer {
    font-size: 1rem;
}

body > .container > .left .footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

body > .container > .left .footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
}

body > .container > .left .footer-links a:hover {
    opacity: 1;
}

body > .container > .left .copyright {
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

body > .container > .left .trademark {
    font-size: 0.65rem;
    opacity: 0.4;
    line-height: 1.5;
}

.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.portal-btn {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(45, 45, 45, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.portal-btn:hover {
    background: #fff;
    color: #2d2d2d;
    border-color: #fff;
}

.top-nav-dropdown {
    position: relative;
}

.top-nav-toggle {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(45, 45, 45, 0.9);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-nav-toggle:hover {
    background: #2d2d2d;
}

.top-nav-toggle::after {
    content: "";
    display: none;
}

.top-nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(45, 45, 45, 0.95);
    border-radius: 4px;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    overflow: hidden;
}

.top-nav-dropdown:hover .top-nav-menu,
.top-nav-dropdown:focus-within .top-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-nav-menu a,
.top-nav-label {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    transition: background 0.2s;
}

.top-nav-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 0.35rem;
}

.top-nav-submenu a {
    padding-left: 1.6rem;
    font-size: 0.9rem;
}

.top-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.top-nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
}

.top-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
}

@media (max-width: 900px) {
    body > .container {
        display: block;
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    body > .container > .left {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 3rem 2rem;
        overflow: visible;
    }

    body > .container > .left h1 {
        font-size: 2rem;
    }

    .top-nav {
        padding: 0.75rem 1rem;
    }

    .top-nav-toggle,
    .portal-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .top-nav-menu a,
    .top-nav-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 520px) {
    body > .container > .left {
        padding: 2rem 1.25rem;
    }

    body > .container > .left .download-primary-grid,
    body > .container > .left .addon-grid {
        grid-template-columns: 1fr;
    }

    body > .container > .left .logo {
        gap: 1rem;
    }

    body > .container > .left .logo-icon {
        width: 76px;
        height: 76px;
    }

    body > .container > .left .logo-subtitle {
        font-size: 0.85rem;
    }

    body > .container > .left .meet-us-event {
        width: 100%;
    }
}
