/* 2026-10-08 modern compact internal header prototype.
   Scoped to .header--modern so Home/profile-specific headers stay untouched. */

.header--modern .header__cta {
    display: none;
}

@media (min-width: 1080px) {
    .header.header--inner.header--modern {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: grid;
        width: 100%;
        height: 68px;
        min-height: 68px;
        padding: 0 clamp(18px, 2.2vw, 34px);
        box-sizing: border-box;
        grid-template-columns: 154px minmax(0, 1fr) auto auto;
        align-items: center;
        gap: clamp(12px, 1.35vw, 24px);
        background-color: #031018;
        background-image:
            linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(0, 128, 112, .18) 58%, rgba(15, 142, 69, .2)),
            url(../images/inner/header-inner-bg.svg);
        background-position: center;
        background-size: cover;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 6px 20px rgba(0, 0, 0, .13);
    }

    .header.header--inner.header--modern .header__logo {
        position: static;
        top: auto;
        left: auto;
        display: flex;
        width: 154px;
        height: 42px;
        min-width: 0;
        align-items: center;
        transform: none;
    }

    .header.header--inner.header--modern .header__logo img {
        display: block;
        width: 154px;
        height: auto;
        max-height: 42px;
        object-fit: contain;
        object-position: left center;
    }

    .header.header--inner.header--modern .header__canvas {
        display: flex;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .header.header--inner.header--modern .theme-switch-wrapper-open,
    .header.header--inner.header--modern .header__social {
        display: none !important;
    }

    .header.header--inner.header--modern ul.header__menu {
        display: flex;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0 !important;
        padding: 0;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: clamp(12px, 1.2vw, 22px);
    }

    .header.header--inner.header--modern ul.header__menu li,
    .header.header--inner.header--modern ul.header__menu li + li,
    .header.header--inner.header--modern ul.header__menu li + li:not(.js-logo-item),
    .header.header--inner.header--modern ul.header__menu li.js-logo-item,
    .header.header--inner.header--modern ul.header__menu li.js-logo-item + li {
        width: auto;
        margin: 0 !important;
        padding: 0;
        flex: 0 0 auto;
        align-self: auto;
    }

    .header.header--inner.header--modern ul.header__menu li.js-logo-item {
        display: none !important;
    }

    .header.header--inner.header--modern ul.header__menu li a {
        position: relative;
        display: flex;
        min-height: 36px;
        padding: 0;
        align-items: center;
        color: rgba(255, 255, 255, .86);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
        font-size: 19.5px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: .01em;
        text-transform: none;
        white-space: nowrap;
        border: 0;
        text-decoration: none;
    }

    .header.header--inner.header--modern ul.header__menu li a::after {
        position: absolute;
        right: 0;
        bottom: 3px;
        left: 0;
        height: 2px;
        content: "";
        opacity: 0;
        border-radius: 2px;
        background: #25d8b1;
        transform: scaleX(.35);
        transition: opacity .16s ease, transform .16s ease;
    }

    .header.header--inner.header--modern ul.header__menu li a:hover,
    .header.header--inner.header--modern ul.header__menu li a:focus-visible {
        color: #fff;
    }

    .header.header--inner.header--modern ul.header__menu li a:hover::after,
    .header.header--inner.header--modern ul.header__menu li a:focus-visible::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .header.header--inner.header--modern .header__cta {
        display: inline-flex;
        min-height: 36px;
        padding: 0 13px;
        align-items: center;
        justify-content: center;
        color: #03231d;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
        font-size: 18px;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
        border: 1px solid #27d4ae;
        border-radius: 7px;
        background: #27d4ae;
        gap: 7px;
        transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
    }

    .header.header--inner.header--modern .header__cta i {
        font-size: 22px;
    }

    .header.header--inner.header--modern .header__cta:hover,
    .header.header--inner.header--modern .header__cta:focus-visible {
        color: #021914;
        border-color: #54e2c2;
        background: #54e2c2;
        transform: translateY(-1px);
    }

    .header.header--inner.header--modern > .profile__menu {
        position: static;
        top: auto;
        right: auto;
        display: flex;
        min-width: 0;
        margin: 0;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        transform: none;
    }

    .header.header--inner.header--modern .profile__icon,
    .header.header--inner.header--modern .profile__icon--basket {
        position: relative;
        display: inline-flex;
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin: 0;
        align-items: center;
        justify-content: center;
        color: #fff;
        border: 0;
        border-radius: 8px;
        background: transparent;
        text-decoration: none;
        transform: none;
        transition: color .16s ease, background-color .16s ease, transform .16s ease;
    }

    .header.header--inner.header--modern .profile__icon:hover,
    .header.header--inner.header--modern .profile__icon:focus-visible,
    .header.header--inner.header--modern .profile__icon--basket:hover,
    .header.header--inner.header--modern .profile__icon--basket:focus-visible {
        color: #fff;
        background: rgba(255, 255, 255, .10);
        box-shadow: none;
        transform: none;
    }

    .header.header--inner.header--modern .basket-icon {
        width: 26px;
        height: 26px;
    }

    .header.header--inner.header--modern .profile__icon:not(.profile__icon--basket) img {
        width: 25px;
        height: 28px;
        max-width: none;
        opacity: 1;
        filter: none;
        object-fit: contain;
        transform: none;
    }

    .header.header--inner.header--modern .profile__status-badge {
        right: -2px;
        bottom: -2px;
        width: 17px;
        height: 17px;
        border-width: 1.5px;
    }

    .header.header--inner.header--modern .profile__status-badge svg {
        width: 11px;
        height: 11px;
    }

    .header.header--inner.header--modern .basket-counter {
        top: -3px;
        right: -4px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 9px;
        border-width: 1.5px;
    }

    .header.header--inner.header--modern .btn_theme {
        position: relative;
        display: inline-flex;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: 0;
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
        transform: none;
        transition: background-color .16s ease;
    }

    .header.header--inner.header--modern .btn_theme:hover,
    .header.header--inner.header--modern .btn_theme:focus-visible {
        background: rgba(255, 255, 255, .10);
    }

    .header.header--inner.header--modern .btn__indicator_theme {
        position: static;
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 7px;
        background: rgba(255, 255, 255, .08);
        box-shadow: none;
        transform: none;
        transition: background-color .16s ease, border-color .16s ease;
    }

    .dark .header.header--inner.header--modern .btn__indicator_theme {
        background: rgba(255, 255, 255, .08);
        box-shadow: none;
        transform: none;
    }

    .header.header--inner.header--modern .btn__icon_theme-container {
        display: grid;
        width: 100%;
        height: 100%;
        place-items: center;
    }

    .header.header--inner.header--modern .btn__icon_theme,
    .dark .header.header--inner.header--modern .btn__icon_theme {
        color: #fff;
        font-size: 17px;
        line-height: 1;
    }

    .header.header--inner.header--modern .header__burger {
        display: none;
    }
}

@media (min-width: 1080px) and (max-width: 1240px) {
    .header.header--inner.header--modern {
        grid-template-columns: 140px minmax(0, 1fr) auto auto;
        padding-right: 14px;
        padding-left: 14px;
        gap: 10px;
    }

    .header.header--inner.header--modern .header__logo,
    .header.header--inner.header--modern .header__logo img {
        width: 140px;
    }

    .header.header--inner.header--modern ul.header__menu {
        gap: 13px;
    }

    .header.header--inner.header--modern ul.header__menu li a {
        font-size: 18px;
    }

    .header.header--inner.header--modern .header__cta {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 16.5px;
    }
}

@media (max-width: 1079px) {
    .header--modern .header__cta {
        display: none !important;
    }
}

/* 2026-10-08 modern internal page titles */
.header--modern + .main .page__title.gradient-text {
    position: relative;
    width: min(1240px, calc(100% - 40px));
    margin: 30px auto 24px;
    padding: 0 0 13px;
    color: var(--title-color, #021522);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 3vw, 40px);
    font-style: normal;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-align: left;
    text-transform: none;
    white-space: normal;
}

.header--modern + .main .page__title.gradient-text::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: #08715e;
}

.dark .header--modern + .main .page__title.gradient-text::after {
    background: #22b79c;
}

.header--modern + .main .page__title.gradient-text > span:first-child {
    position: static;
    display: block;
    color: inherit !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.header--modern + .main .page__title.gradient-text > span:last-child {
    display: none !important;
    animation: none !important;
}

@media (max-width: 1079px) {
    .header--modern + .main .page__title.gradient-text {
        width: min(100% - 32px, 1240px);
        margin-top: 24px;
        margin-bottom: 20px;
        font-size: clamp(30px, 5vw, 36px);
    }
}

@media (max-width: 600px) {
    .header--modern + .main .page__title.gradient-text {
        width: calc(100% - 24px);
        margin-top: 20px;
        padding-bottom: 11px;
        font-size: 28px;
        line-height: 1.12;
    }

    .header--modern + .main .page__title.gradient-text::after {
        width: 34px;
        height: 2px;
    }
}

/* 2026-10-08 Marketplace compact centered title */
body.store-theme-storemain .header--modern + .main .store__title.gradient-text {
    width: min(1240px, calc(100% - 40px));
    margin: 6px auto 10px;
    padding-bottom: 0;
    font-size: clamp(32px, 2.6vw, 36px);
    line-height: 1.08;
    text-align: center;
}

body.store-theme-storemain .header--modern + .main .store__title.gradient-text::after {
    display: none;
}

@media (max-width: 1079px) {
    body.store-theme-storemain .header--modern + .main .store__title.gradient-text {
        width: min(100% - 32px, 1240px);
        margin-top: 5px;
        margin-bottom: 10px;
        font-size: 32px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    body.store-theme-storemain .header--modern + .main .store__title.gradient-text {
        width: calc(100% - 24px);
        margin-top: 4px;
        margin-bottom: 8px;
        font-size: 28px;
    }
}

/* 2026-10-08 site-wide modern title rhythm */
.header--modern + .main .inner-page__breadcrumbs {
    margin-bottom: 12px;
}

.header--modern + .main .inner-page__title.title,
.header--modern + .main .downloads__title.gradient-text {
    position: relative;
    width: min(1240px, calc(100% - 40px));
    margin: 12px auto 20px;
    padding: 0;
    color: var(--title-color, #021522);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 2.8vw, 38px);
    font-style: normal;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-align: left;
    text-transform: none;
    white-space: normal;
}

.header--modern + .main .downloads__title.gradient-text > span:first-child {
    position: static;
    display: block;
    color: inherit !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.header--modern + .main .downloads__title.gradient-text > span:last-child {
    display: none !important;
    animation: none !important;
}

@media (max-width: 1079px) {
    .header--modern + .main .inner-page__breadcrumbs {
        margin-bottom: 10px;
    }

    .header--modern + .main .inner-page__title.title,
    .header--modern + .main .downloads__title.gradient-text {
        width: min(100% - 32px, 1240px);
        margin-top: 10px;
        margin-bottom: 18px;
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .header--modern + .main .inner-page__breadcrumbs {
        margin-bottom: 8px;
    }

    .header--modern + .main .inner-page__title.title,
    .header--modern + .main .downloads__title.gradient-text {
        width: calc(100% - 24px);
        margin-top: 8px;
        margin-bottom: 16px;
        font-size: 28px;
        line-height: 1.12;
    }
}

/* Full-screen account workspace under the shared modern header. */
.page-profile6 .header.header--inner.header--modern {
    display: grid;
}

.page-profile6 .account-layout {
    min-height: calc(100vh - 68px);
}

.page-profile6 .account-shell {
    min-height: calc(100vh - 68px);
}

.page-profile6 .account-sidebar {
    top: 68px;
    min-height: calc(100vh - 68px);
}

.page-profile6 .account-content {
    padding-top: 30px;
}

.page-profile6 .account-page-header h1 {
    margin: 5px 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 2.8vw, 38px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}

@media (max-width: 1079px) {
    .page-profile6 .account-sidebar {
        top: 0;
        min-height: 0;
    }

    .page-profile6 .account-content {
        padding-top: 24px;
    }

    .page-profile6 .account-page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .page-profile6 .account-page-header h1 {
        font-size: 28px;
        line-height: 1.12;
    }
}

/* Home keeps its full-screen hero, but uses the same shared header in normal flow. */
.page-home .header.header--inner.header--modern {
    position: sticky;
}

.page-home .land {
    min-height: 100vh;
}

@media (max-width: 1079px) {
    .page-profile6 .header.header--inner.header--modern {
        display: flex;
    }
}

/* Remaining page-level H1s that do not use page__title. */
.page-profile6 .inner-page__title.title,
.header--modern + .main .billing-basket__header h1 {
    margin-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 2.8vw, 38px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}

@media (max-width: 1079px) {
    .page-profile6 .inner-page__title.title,
    .header--modern + .main .billing-basket__header h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .page-profile6 .inner-page__title.title,
    .header--modern + .main .billing-basket__header h1 {
        font-size: 28px;
        line-height: 1.12;
    }
}

/* 2026-10-08 final public H1 convention: compact, centered, no decoration. */
.header--modern + .main .page__title.gradient-text,
.header--modern + .main .inner-page__title.title,
.header--modern + .main .downloads__title.gradient-text {
    width: min(1240px, calc(100% - 40px));
    margin: 10px auto 18px;
    padding: 0;
    font-size: clamp(32px, 2.6vw, 36px);
    line-height: 1.08;
    text-align: center;
}

.header--modern + .main .page__title.gradient-text::after,
.header--modern + .main .inner-page__title.title::after,
.header--modern + .main .downloads__title.gradient-text::after {
    display: none !important;
}

@media (max-width: 1079px) {
    .header--modern + .main .page__title.gradient-text,
    .header--modern + .main .inner-page__title.title,
    .header--modern + .main .downloads__title.gradient-text {
        width: min(100% - 32px, 1240px);
        margin-top: 8px;
        margin-bottom: 16px;
        font-size: 32px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .header--modern + .main .page__title.gradient-text,
    .header--modern + .main .inner-page__title.title,
    .header--modern + .main .downloads__title.gradient-text {
        width: calc(100% - 24px);
        margin-top: 6px;
        margin-bottom: 14px;
        font-size: 28px;
    }
}

/* 2026-10-08 Downloads title closer to shared header */
.page-downloads .downloads__container {
    padding-top: 24px;
}

@media (max-width: 1079px) {
    .page-downloads .downloads__container {
        padding-top: 18px;
    }
}

@media (max-width: 600px) {
    .page-downloads .downloads__container {
        padding-top: 14px;
    }
}


/* 2026-10-08 final heading font normalization */
.header--modern + .main h1,
.header--modern + .main .page__title,
.header--modern + .main .inner-page__title,
.header--modern + .main .downloads__title,
.page-profile6 .account-page-header h1,
.page-profile6 .account-panel h2,
.page-profile6 .account-market-card__head h2,
.account-auth-page h1,
.account-auth-page h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-stretch: normal;
}

.header--modern + .main h1,
.page-profile6 .account-page-header h1,
.account-auth-page h1 {
    font-weight: 700;
}

body:not(.page-home) .header--modern + .main h2,
body:not(.page-home) .header--modern + .main h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-stretch: normal;
}

/* 2026-10-08 normal-width Nimbus Sans D OT (non-Extended) */
@font-face {
    font-family: "Nimbus Sans D OT Normal";
    src: url("../fonts/NimbusSansDOT-Regu.woff2") format("woff2"),
         url("../fonts/NimbusSansDOT-Regu.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nimbus Sans D OT Normal";
    src: url("../fonts/Nimbus-Sans-D-OT-Light.woff2") format("woff2"),
         url("../fonts/NimbusSansDOT-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Let the browser synthesize 600/700 from the normal-width face instead of
   falling back to the Extended Nimbus bold files. */
.header--modern + .main h1,
.header--modern + .main h2,
.header--modern + .main h3,
.header--modern + .main .page__title,
.header--modern + .main .inner-page__title,
.header--modern + .main .downloads__title,
.page-profile6 .account-page-header h1,
.page-profile6 .account-panel h2,
.page-profile6 .account-market-card__head h2,
.account-auth-page h1,
.account-auth-page h2 {
    font-family: "Nimbus Sans D OT Normal", Arial, Helvetica, sans-serif !important;
    font-stretch: normal;
}

.account-body,
.account-body button,
.account-body input,
.account-body textarea,
.account-body select,
.account-auth-page,
.account-auth-page button,
.account-auth-page input,
.account-auth-page textarea,
.account-auth-page select {
    font-family: "Nimbus Sans D OT Normal", Arial, Helvetica, sans-serif;
}

/* 2026-10-08 heading typography: use the real Nimbus bold face, not synthetic bold. */
@font-face {
    font-family: "Nimbus Sans D OT Heading";
    src: url("../fonts/NimbusSansDOT-BoldExte.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nimbus Sans D OT Heading";
    src: url("../fonts/NimbusSansDOT-ReguExte.woff2") format("woff2"),
         url("../fonts/NimbusSansDOT-ReguExte.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.header--modern + .main h1,
.header--modern + .main h2,
.header--modern + .main h3,
.header--modern + .main .page__title,
.header--modern + .main .inner-page__title,
.header--modern + .main .downloads__title,
.page-profile6 .account-page-header h1,
.page-profile6 .account-panel h2,
.page-profile6 .account-market-card__head h2,
.account-auth-page h1,
.account-auth-page h2 {
    font-family: "Nimbus Sans D OT Heading", Arial, Helvetica, sans-serif !important;
    font-weight: 700;
    font-stretch: normal;
    letter-spacing: 0;
}

.header--modern + .main .page__title,
.header--modern + .main .inner-page__title,
.header--modern + .main .downloads__title {
    letter-spacing: .005em;
}

/* 2026-10-09 unified page-title vertical rhythm */
body:not(.page-home) {
    --site-title-gap-top: 12px;
    --site-title-gap-bottom: 18px;
}

/* Breadcrumbs finish the navigation row; no legacy 45/79px spacer after them. */
.header--modern + .main .inner-page__breadcrumbs {
    margin-bottom: 0 !important;
}

/* Standard pages where H1 lives inside inner-page__header. */
.header--modern + .main .inner-page__header {
    margin-top: 0 !important;
    margin-bottom: var(--site-title-gap-bottom) !important;
    padding-top: var(--site-title-gap-top);
}

.header--modern + .main .inner-page__header > .page__title,
.header--modern + .main .inner-page__header > .inner-page__title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Direct page title after breadcrumbs (Marketplace and similar pages). */
.header--modern + .main .inner-page__breadcrumbs + .page__title,
.header--modern + .main .inner-page__breadcrumbs + .store__title {
    margin-top: var(--site-title-gap-top) !important;
    margin-bottom: var(--site-title-gap-bottom) !important;
}

/* Pricing had its own 42px top padding and 46px hero bottom margin. */
.page-pricing .pricing-page {
    padding-top: var(--site-title-gap-top) !important;
}

.page-pricing .pricing-hero {
    margin-top: 0 !important;
    margin-bottom: var(--site-title-gap-bottom) !important;
}

.page-pricing .pricing-hero .page__title {
    margin: 0 auto 10px !important;
}

.page-pricing .pricing-hero > p {
    margin-top: 0 !important;
}

/* Downloads used an independent large top padding and another margin before the first content row. */
.page-downloads .downloads__container {
    padding-top: var(--site-title-gap-top) !important;
}

.page-downloads .downloads__title {
    margin-top: 0 !important;
    margin-bottom: var(--site-title-gap-bottom) !important;
}

.page-downloads .downloads-step {
    margin-top: 0 !important;
}

@media (max-width: 1079px) {
    body:not(.page-home) {
        --site-title-gap-top: 10px;
        --site-title-gap-bottom: 16px;
    }
}

@media (max-width: 600px) {
    body:not(.page-home) {
        --site-title-gap-top: 8px;
        --site-title-gap-bottom: 14px;
    }
}

/* 2026-10-09 compact internal footer
   Keep the special Home footer untouched; compact the shared footer everywhere else. */
body:not(.page-home):not(.page-profile6) > .footer,
.page-profile6 .account-inline-footer .footer {
    position: relative;
    z-index: 20;
    display: block;
    width: 100%;
    padding: 20px clamp(24px, 4vw, 64px) 12px;
    background:
        linear-gradient(90deg, rgba(0, 128, 112, .08), rgba(15, 142, 69, .10)),
        #02090d;
    border-top: 1px solid rgba(39, 212, 174, .16);
}

body:not(.page-home):not(.page-profile6) > .footer .footer__top,
.page-profile6 .account-inline-footer .footer .footer__top {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 48px);
}

body:not(.page-home):not(.page-profile6) > .footer .footer__left,
.page-profile6 .account-inline-footer .footer .footer__left {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    grid-template-columns: minmax(230px, .75fr) minmax(420px, 1.55fr);
    align-items: center;
    gap: clamp(28px, 4vw, 72px);
}

body:not(.page-home):not(.page-profile6) > .footer .footer__info,
.page-profile6 .account-inline-footer .footer .footer__info,
body:not(.page-home):not(.page-profile6) > .footer.footer--inner .footer__info,
.page-profile6 .account-inline-footer .footer.footer--inner .footer__info {
    margin: 0;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__logo .logo__icon,
.page-profile6 .account-inline-footer .footer .footer__logo .logo__icon {
    width: 118px;
    height: 29px;
    margin: 0;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__copyrights,
.page-profile6 .account-inline-footer .footer .footer__copyrights {
    max-width: 330px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .34);
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__copyrights br,
.page-profile6 .account-inline-footer .footer .footer__copyrights br {
    display: none;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__nav,
.page-profile6 .account-inline-footer .footer .footer__nav {
    display: block;
    padding: 0;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__menu,
.page-profile6 .account-inline-footer .footer .footer__menu {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    column-gap: clamp(16px, 2.2vw, 36px);
    row-gap: 6px;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__menu li,
body:not(.page-home):not(.page-profile6) > .footer .footer__menu li:nth-child(3n + 1),
body:not(.page-home):not(.page-profile6) > .footer .footer__menu li:nth-child(3n + 2),
body:not(.page-home):not(.page-profile6) > .footer .footer__menu li:nth-child(3n + 3),
.page-profile6 .account-inline-footer .footer .footer__menu li,
.page-profile6 .account-inline-footer .footer .footer__menu li:nth-child(3n + 1),
.page-profile6 .account-inline-footer .footer .footer__menu li:nth-child(3n + 2),
.page-profile6 .account-inline-footer .footer .footer__menu li:nth-child(3n + 3) {
    width: auto;
    margin: 0;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__menu li a,
.page-profile6 .account-inline-footer .footer .footer__menu li a {
    color: rgba(255, 255, 255, .62);
    font-size: 12.5px;
    line-height: 1.2;
    letter-spacing: 0;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__right,
.page-profile6 .account-inline-footer .footer .footer__right {
    display: block;
    padding: 0;
    align-self: center;
}

body:not(.page-home):not(.page-profile6) > .footer .socials,
.page-profile6 .account-inline-footer .footer .socials {
    gap: 10px;
}

body:not(.page-home):not(.page-profile6) > .footer .socials__item + .socials__item,
.page-profile6 .account-inline-footer .footer .socials__item + .socials__item {
    margin-left: 0;
}

body:not(.page-home):not(.page-profile6) > .footer .socials__item a,
.page-profile6 .account-inline-footer .footer .socials__item a {
    width: 30px;
    height: 30px;
}

body:not(.page-home):not(.page-profile6) > .footer .socials__item svg,
.page-profile6 .account-inline-footer .footer .socials__item svg {
    width: 30px;
    height: 30px;
}

body:not(.page-home):not(.page-profile6) > .footer .footer__bottom,
.page-profile6 .account-inline-footer .footer .footer__bottom {
    display: flex;
    margin-top: 10px;
    padding-top: 9px;
    justify-content: flex-end;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

body:not(.page-home):not(.page-profile6) > .footer .footer__bottom a,
.page-profile6 .account-inline-footer .footer .footer__bottom a {
    color: rgba(255, 255, 255, .30);
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0;
}

/* Preserve the fixed account shell: only its inline footer is visible. */
.page-profile6 > .footer {
    display: none !important;
}

.page-profile6 .account-inline-footer {
    margin-top: 12px;
}

.page-profile6 .account-inline-footer .footer {
    padding: 20px min(5vw, 68px) 12px;
}

@media (max-width: 1079px) {
    body:not(.page-home):not(.page-profile6) > .footer,
    .page-profile6 .account-inline-footer .footer {
        padding: 18px 20px 12px;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__left,
    .page-profile6 .account-inline-footer .footer .footer__left {
        grid-template-columns: minmax(180px, .7fr) minmax(360px, 1.5fr);
        gap: 24px;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__menu,
    .page-profile6 .account-inline-footer .footer .footer__menu {
        grid-template-columns: repeat(3, minmax(80px, 1fr));
        column-gap: 14px;
    }
}

@media (max-width: 820px) {
    body:not(.page-home):not(.page-profile6) > .footer .footer__top,
    .page-profile6 .account-inline-footer .footer .footer__top {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 16px;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__left,
    .page-profile6 .account-inline-footer .footer .footer__left {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__menu,
    .page-profile6 .account-inline-footer .footer .footer__menu {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }
}

@media (max-width: 600px) {
    body:not(.page-home):not(.page-profile6) > .footer,
    .page-profile6 .account-inline-footer .footer {
        padding: 16px 16px 11px;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__top,
    .page-profile6 .account-inline-footer .footer .footer__top {
        grid-template-columns: 1fr;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__right,
    .page-profile6 .account-inline-footer .footer .footer__right {
        display: none;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__menu,
    .page-profile6 .account-inline-footer .footer .footer__menu {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        row-gap: 8px;
    }

    body:not(.page-home):not(.page-profile6) > .footer .footer__bottom,
    .page-profile6 .account-inline-footer .footer .footer__bottom {
        justify-content: flex-start;
    }
}

/* 2026-10-09 Applications: fit short content + footer into one viewport */
.page-applications {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.page-applications > .header {
    flex: 0 0 auto;
}

.page-applications > .main {
    min-height: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.page-applications > .main .inner-page {
    min-height: 0;
    padding-bottom: 10px;
}

.page-applications > .footer {
    margin-top: auto;
    flex: 0 0 auto;
}

/* Keep the applications list close to the footer without compressing the cards. */
.page-applications .inner-page__filters {
    margin-bottom: 24px !important;
}

.page-applications .filters__search_app {
    margin-bottom: 18px !important;
}

.page-applications .app-grid {
    margin-bottom: 0 !important;
}

@media (max-width: 1079px) {
    .page-applications > .main .inner-page {
        padding-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .page-applications > .main .inner-page {
        padding-bottom: 14px;
    }
}

/* 2026-10-09 account sidebar identity + footer bottom alignment */
@media (min-width: 1080px) {
    .page-profile6 .account-sidebar__user {
        display: flex;
        min-height: 132px;
        padding: 16px 18px 20px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 9px;
        text-align: center;
    }

    .page-profile6 .account-avatar {
        width: 50px;
        height: 50px;
        margin: 0 auto;
        border-radius: 12px;
    }

    .page-profile6 .account-sidebar__identity {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .page-profile6 .account-sidebar__identity small {
        margin: 0 0 4px;
        font-size: 11px;
        line-height: 1.25;
    }

    .page-profile6 .account-sidebar__identity strong {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.3;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Overview is a flex column so a short page pins its footer to the bottom,
       while a tall page keeps the footer after the content. */
    .page-profile6.page-profile .account-content {
        display: flex;
        min-height: 100%;
        padding-bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .page-profile6.page-profile .account-inline-footer {
        width: auto;
        margin: auto calc(-1 * min(5vw, 68px)) 0;
        flex: 0 0 auto;
    }

    .page-profile6.page-profile .account-inline-footer .footer {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 1079px) {
    .page-profile6 .account-sidebar__user {
        justify-content: center;
        text-align: center;
    }

    .page-profile6 .account-sidebar__identity {
        text-align: center;
    }

    .page-profile6.page-profile .account-inline-footer {
        margin-bottom: 0;
    }
}

/* 2026-10-09 narrower account sidebar */
@media (min-width: 1080px) {
    .page-profile6 .account-shell {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .page-profile6 .account-sidebar {
        width: 180px;
    }

    .page-profile6 .account-sidebar__user {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-profile6 .account-sidebar__identity strong {
        font-size: 12px;
    }

    .page-profile6 .account-sidebar__nav a {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }

    .page-profile6 .account-sidebar__bottom {
        margin-left: 12px;
        margin-right: 12px;
    }
}

/* 2026-10-09 stronger, cleaner shared brand mark */
@media (min-width: 1080px) {
    .header.header--inner.header--modern {
        grid-template-columns: 180px minmax(0, 1fr) auto auto;
    }

    .header.header--inner.header--modern .header__logo {
        width: 172px;
        height: 48px;
        padding: 4px 7px;
        box-sizing: border-box;
        border: 1px solid rgba(39, 212, 174, .12);
        border-radius: 10px;
        background:
            linear-gradient(135deg, rgba(0, 91, 77, .22), rgba(0, 24, 28, .42));
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
    }

    .header.header--inner.header--modern .header__logo img {
        width: 158px;
        max-height: 40px;
        opacity: 1;
        filter:
            saturate(1.14)
            contrast(1.08)
            drop-shadow(0 0 4px rgba(0, 255, 220, .18));
    }
}

/* Use exactly the same logo asset and treatment in the compact footer. */
body:not(.page-home):not(.page-profile6) > .footer .footer__logo,
.page-profile6 .account-inline-footer .footer .footer__logo {
    display: inline-flex;
    width: 150px;
    height: 40px;
    padding: 3px 6px;
    box-sizing: border-box;
    align-items: center;
    border: 1px solid rgba(39, 212, 174, .10);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 91, 77, .18), rgba(0, 24, 28, .34));
}

body:not(.page-home):not(.page-profile6) > .footer .footer__logo img,
.page-profile6 .account-inline-footer .footer .footer__logo img {
    display: block;
    width: 138px;
    height: auto;
    max-height: 34px;
    opacity: 1;
    object-fit: contain;
    object-position: left center;
    filter:
        saturate(1.14)
        contrast(1.08)
        drop-shadow(0 0 3px rgba(0, 255, 220, .16));
}

/* My plugins / My widgets get the same bottom-pinned inline footer as Overview. */
@media (min-width: 1080px) {
    .page-profile6.page-myplugins .account-content,
    .page-profile6.page-mywidgets .account-content {
        display: flex;
        min-height: 100%;
        padding-bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .page-profile6.page-myplugins .account-inline-footer,
    .page-profile6.page-mywidgets .account-inline-footer {
        width: auto;
        margin: auto calc(-1 * min(5vw, 68px)) 0;
        flex: 0 0 auto;
    }

    .page-profile6.page-myplugins .account-inline-footer .footer,
    .page-profile6.page-mywidgets .account-inline-footer .footer {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 1079px) {
    .header.header--inner.header--modern .header__logo img {
        opacity: 1;
        filter: saturate(1.12) contrast(1.06);
    }

    .page-profile6.page-myplugins .account-inline-footer,
    .page-profile6.page-mywidgets .account-inline-footer {
        margin-bottom: 0;
    }
}

/* 2026-10-09 compact desktop header for narrow/portrait viewports */
@media (min-width: 1080px) and (max-width: 1320px) {
    .header.header--inner.header--modern {
        grid-template-columns: 180px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .header.header--inner.header--modern .header__cta {
        display: none !important;
    }

    .header.header--inner.header--modern ul.header__menu {
        gap: clamp(10px, 1vw, 16px);
    }

    .header.header--inner.header--modern ul.header__menu li a {
        font-size: 17px;
    }
}

/* Portrait monitors usually hit this rule even when their CSS width is a bit
   larger than the compact-width breakpoint. */
@media (min-width: 1080px) and (orientation: portrait) {
    .header.header--inner.header--modern {
        grid-template-columns: 180px minmax(0, 1fr) auto;
    }

    .header.header--inner.header--modern .header__cta {
        display: none !important;
    }
}

/* 2026-10-09 Marketplace title uses the exact shared page-title spacing. */
body.page-store.store-theme-storemain .header--modern + .main .store__title.page__title.gradient-text {
    margin-top: var(--site-title-gap-top) !important;
    margin-bottom: var(--site-title-gap-bottom) !important;
    padding-top: 0;
    padding-bottom: 0;
}

/* 2026-10-15: Unify header navigation typography with production Nimbus Sans.
   Keep the Downloads-style compact header across Home, Marketplace and inner pages.
   Narrow/mobile menus retain their existing responsive treatment. */
@media (min-width: 1080px) {
    .header.header--inner.header--modern ul.header__menu li a {
        font-family: "Nimbus Sans D OT", Arial, sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: .8px;
        text-transform: uppercase;
    }

    .header.header--inner.header--modern .header__cta,
    .header.header--inner.header--modern .header__cta span {
        font-weight: 700;
    }
}

/* Prevent the former Home-specific centered butterfly from reappearing.
   The single shared brand logo stays at the left, as on Downloads. */
.header.header--inner.header--modern ul.header__menu .js-logo-item,
.header.header--inner.header--modern ul.header__menu .header__logo-center {
    display: none !important;
}

/* 2026-10-15: Match the live Downloads header's original dark navy/green palette.
   Reuse the same SVG at its original fixed canvas size and position.
   Do not upscale the background to cover, or overlay extra bright gradients. */
@media (min-width: 1080px) {
    .header.header--inner.header--modern {
        background-color: #000;
        background-image: url(../images/inner/header-inner-bg.svg);
        background-repeat: no-repeat;
        background-position: 18% 30%;
        background-size: 3404px 1684px;
    }
}

/* Header CTA uses the same Nimbus Sans family as the production-style menu.
   Preserve the earlier approved CTA weight, size, casing and color. */
@media (min-width: 1080px) {
    .header.header--inner.header--modern .header__cta,
    .header.header--inner.header--modern .header__cta span {
        font-family: "Nimbus Sans D OT", Arial, sans-serif;
    }
}
