/* =========================================================
   Mobilio Intranet – Mega-Menü und Verwaltung
   Wird nach intranet-landingpage.css eingebunden.
   ========================================================= */

html:has(.ip-page) {
    scroll-behavior: smooth;
}

.ip-page #start,
.ip-page #anwendungen,
.ip-page #aktuelles {
    scroll-margin-top: 84px;
}

.ip-mega-backdrop {
    position: fixed;
    z-index: 54;
    inset: 0;
    background: rgba(3, 8, 13, .48);
    backdrop-filter: blur(9px);
    animation: imm-fade .18s ease-out;
}

.ip-desktop-nav button {
    position: relative;
    padding: 10px 0;
    color: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease;
}

    .ip-desktop-nav button:hover {
        color: var(--ip-text);
    }

    .ip-desktop-nav button::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 3px;
        left: 0;
        height: 1px;
        background: var(--ip-accent);
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .ip-desktop-nav button:hover::after {
        transform: scaleX(1);
    }

.ip-mega {
    position: fixed;
    z-index: 55;
    top: 76px;
    right: 14px;
    left: 14px;
    max-height: calc(100dvh - 90px);
    overflow: auto;
    color: var(--ip-text);
    border: 1px solid var(--ip-line);
    border-radius: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ip-surface) 97%, var(--ip-accent) 3%), var(--ip-surface));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
    backdrop-filter: blur(24px) saturate(125%);
    animation: imm-open .24s cubic-bezier(.2,.8,.2,1);
    overscroll-behavior: contain;
}

.ip-mega-top {
    position: sticky;
    z-index: 3;
    top: 0;
    display: grid;
    grid-template-columns: minmax(220px, .58fr) minmax(340px, 1.3fr) 44px;
    align-items: center;
    gap: 22px;
    padding: 17px 26px;
    border-bottom: 1px solid var(--ip-line);
    background: color-mix(in srgb, var(--ip-surface) 94%, transparent);
    backdrop-filter: blur(25px);
}

.ip-mega-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

    .ip-mega-brand > img,
    .ip-mega-brand > span {
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        object-fit: contain;
        border-radius: 11px;
        color: var(--ip-primary);
        background: var(--ip-accent);
        font-weight: 900;
    }

    .ip-mega-brand > div {
        display: grid;
        min-width: 0;
    }

    .ip-mega-brand strong {
        font-size: 16px;
        letter-spacing: -.025em;
    }

    .ip-mega-brand small {
        margin-top: 3px;
        overflow: hidden;
        color: var(--ip-muted);
        font-size: 10px;
        letter-spacing: .08em;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

.ip-mega-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ip-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ip-surface) 72%, transparent);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .ip-mega-search:focus-within {
        border-color: color-mix(in srgb, var(--ip-accent) 64%, var(--ip-line));
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--ip-accent) 10%, transparent);
    }

    .ip-mega-search > span {
        color: var(--ip-muted);
        font-size: 24px;
    }

    .ip-mega-search input {
        width: 100%;
        color: var(--ip-text);
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 14px;
    }

        .ip-mega-search input::placeholder {
            color: var(--ip-muted);
        }

    .ip-mega-search button,
    .ip-mega-close {
        color: var(--ip-text);
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .ip-mega-search button {
        padding: 5px;
        font-size: 22px;
    }

.ip-mega-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ip-line);
    border-radius: 50%;
    font-size: 25px;
    transition: transform .2s ease, background .2s ease;
}

    .ip-mega-close:hover {
        transform: rotate(5deg);
        background: var(--ip-surface);
    }

.ip-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 26px;
}

.ip-mega-column {
    min-width: 0;
    padding: 25px 24px 28px;
    border-right: 1px solid var(--ip-line);
}

    .ip-mega-column:first-child {
        padding-left: 0;
    }

    .ip-mega-column:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .ip-mega-column > header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 12px;
        min-height: 59px;
        padding-bottom: 13px;
        border-bottom: 1px solid var(--ip-line);
    }

        .ip-mega-column > header > div {
            display: grid;
            gap: 5px;
        }

    .ip-mega-column h2 {
        margin: 0;
        font-size: clamp(17px, 1.2vw, 21px);
        letter-spacing: -.035em;
    }

    .ip-mega-column header div > span {
        color: var(--ip-muted);
        font-size: 8px;
        font-weight: 850;
        letter-spacing: .11em;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .ip-mega-column header > small {
        padding-bottom: 4px;
        color: var(--ip-muted);
        font-size: 9px;
        letter-spacing: .08em;
    }

.ip-mega-links {
    display: grid;
}

.ip-mega-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 7px 3px;
    border-bottom: 1px solid var(--ip-line);
    transition: padding .18s ease, color .18s ease, background .18s ease;
}

    .ip-mega-link:hover {
        padding-left: 10px;
        color: color-mix(in srgb, var(--ip-text) 70%, var(--ip-primary));
        background: color-mix(in srgb, var(--ip-accent) 7%, transparent);
    }

    .ip-mega-link > span:first-child {
        display: grid;
        min-width: 0;
    }

    .ip-mega-link strong {
        overflow: hidden;
        font-size: 12px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ip-mega-link small {
        margin-top: 3px;
        overflow: hidden;
        color: var(--ip-muted);
        font-size: 8.5px;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ip-mega-link em {
        color: var(--ip-muted);
        font-size: 7px;
        font-style: normal;
        font-weight: 800;
        letter-spacing: .08em;
        text-align: right;
        text-transform: uppercase;
    }

    .ip-mega-link b {
        color: var(--ip-muted);
        font-size: 11px;
        font-weight: 400;
        transition: transform .18s ease;
    }

    .ip-mega-link:hover b {
        transform: translate(2px, -2px);
    }

    .ip-mega-link.is-disabled {
        opacity: .48;
        cursor: default;
    }

        .ip-mega-link.is-disabled:hover {
            padding-left: 3px;
            color: inherit;
            background: transparent;
        }

.ip-mega-column.is-service > header {
    border-bottom-color: color-mix(in srgb, var(--ip-accent) 60%, var(--ip-line));
}

.ip-mega-column.is-notdienst > header {
    border-bottom-color: rgba(239, 96, 83, .5);
}

.ip-mega-column.is-notdienst h2 {
    color: color-mix(in srgb, var(--ip-text) 84%, #ef6053);
}

.ip-mega-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin: 0 28px 28px;
    padding: 32px;
    border: 1px dashed var(--ip-line);
    border-radius: 16px;
    color: var(--ip-muted);
    text-align: center;
}

    .ip-mega-empty strong {
        color: var(--ip-text);
    }

.ip-mega-footer {
    min-height: 66px;
    padding: 10px 26px 18px;
}

    .ip-mega-footer > button {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 11px;
        width: 100%;
        min-height: 54px;
        padding: 9px 14px;
        color: var(--ip-text);
        border: 1px solid var(--ip-line);
        background: color-mix(in srgb, var(--ip-bg) 56%, transparent);
        cursor: pointer;
        text-align: left;
    }

        .ip-mega-footer > button > span:nth-child(2) {
            display: grid;
            gap: 1px;
        }

        .ip-mega-footer > button small {
            color: var(--ip-muted);
            font-size: 7px;
            font-weight: 800;
            letter-spacing: .1em;
            text-transform: uppercase;
        }

        .ip-mega-footer > button strong {
            font-size: 12px;
        }

        .ip-mega-footer > button em {
            color: var(--ip-muted);
            font-size: 10px;
            font-style: normal;
        }

        .ip-mega-footer > button b {
            font-size: 11px;
            font-weight: 400;
        }

/* Verwaltung in IntranetSettings */
.imm-admin {
    color: var(--is-text);
}

    .imm-admin *, .imm-admin *::before, .imm-admin *::after {
        box-sizing: border-box;
    }

    .imm-admin button, .imm-admin input, .imm-admin select {
        font: inherit;
    }

.imm-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

    .imm-admin-head h2 {
        margin: 3px 0 0;
        font-size: 26px;
    }

    .imm-admin-head p {
        margin: 8px 0 0;
        color: var(--is-sub);
        font-size: 12px;
    }

.imm-primary, .imm-secondary, .imm-danger {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--is-border);
    border-radius: 11px;
    color: var(--is-text);
    background: var(--is-card-soft);
    cursor: pointer;
}

.imm-primary {
    color: var(--is-accent-ink);
    border-color: var(--is-accent);
    background: var(--is-accent);
    font-weight: 800;
}

.imm-danger {
    color: var(--is-danger);
    background: transparent;
}

.imm-message {
    margin-bottom: 15px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--is-success) 38%, var(--is-border));
    border-radius: 11px;
    color: var(--is-success);
    background: color-mix(in srgb, var(--is-success) 8%, transparent);
}

    .imm-message.is-error {
        color: var(--is-danger);
        border-color: color-mix(in srgb, var(--is-danger) 40%, var(--is-border));
    }

.imm-admin-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

    .imm-admin-tabs button {
        display: grid;
        grid-template-columns: 34px 1fr auto;
        align-items: center;
        gap: 9px;
        min-height: 58px;
        padding: 10px 12px;
        color: var(--is-sub);
        border: 1px solid var(--is-border);
        border-radius: 13px;
        background: var(--is-card-soft);
        cursor: pointer;
        text-align: left;
    }

        .imm-admin-tabs button > span {
            display: grid;
            place-items: center;
            width: 32px;
            height: 32px;
            border-radius: 9px;
            color: var(--is-accent-ink);
            background: var(--is-accent);
            font-weight: 900;
        }

        .imm-admin-tabs button strong {
            color: var(--is-text);
            font-size: 12px;
        }

        .imm-admin-tabs button small {
            font-size: 10px;
        }

        .imm-admin-tabs button.is-active {
            border-color: var(--is-accent);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--is-accent) 10%, transparent);
        }

.imm-admin-list {
    display: grid;
    gap: 12px;
}

.imm-admin-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 48px 20px;
    color: var(--is-sub);
    border: 1px dashed var(--is-border);
    border-radius: 15px;
    text-align: center;
}

.imm-editor {
    padding: 16px;
    border: 1px solid var(--is-border);
    border-radius: 16px;
    background: var(--is-card-soft);
}

.imm-editor-title {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

    .imm-editor-title > span:first-child {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        color: var(--is-accent-ink);
        background: var(--is-accent);
        font-weight: 900;
    }

    .imm-editor-title > div {
        display: grid;
        gap: 2px;
    }

    .imm-editor-title small {
        color: var(--is-sub);
        font-size: 9px;
    }

.imm-state {
    padding: 6px 8px;
    border-radius: 999px;
    color: var(--is-sub);
    background: var(--is-card);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

    .imm-state.is-live {
        color: var(--is-success);
    }

.imm-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

    .imm-form-grid label {
        display: grid;
        gap: 6px;
        min-width: 0;
    }

        .imm-form-grid label > span {
            color: var(--is-sub);
            font-size: 9px;
            font-weight: 800;
        }

    .imm-form-grid input, .imm-form-grid select {
        width: 100%;
        min-width: 0;
        height: 41px;
        padding: 0 10px;
        color: var(--is-text);
        border: 1px solid var(--is-border);
        border-radius: 9px;
        outline: 0;
        background: var(--is-input);
    }

        .imm-form-grid input:focus, .imm-form-grid select:focus {
            border-color: var(--is-accent);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--is-accent) 12%, transparent);
        }

    .imm-form-grid .imm-span-2 {
        grid-column: span 2;
    }

.imm-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 13px;
}

    .imm-options label {
        display: flex;
        align-items: center;
        gap: 7px;
        color: var(--is-sub);
        font-size: 10px;
        cursor: pointer;
    }

    .imm-options input {
        width: 16px;
        height: 16px;
        accent-color: var(--is-accent);
    }

.imm-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

@keyframes imm-open {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.99);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes imm-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1180px) {
    .ip-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ip-mega-column:nth-child(2) {
        padding-right: 0;
        border-right: 0;
    }

    .ip-mega-column:nth-child(3) {
        padding-left: 0;
        border-top: 1px solid var(--ip-line);
    }

    .ip-mega-column:nth-child(4) {
        padding-right: 0;
        border-top: 1px solid var(--ip-line);
        border-right: 0;
    }

    .imm-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ip-page #start,
    .ip-page #anwendungen,
    .ip-page #aktuelles {
        scroll-margin-top: 70px;
    }

    .ip-mega {
        top: 70px;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: none;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .ip-mega-top {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 12px;
        padding: 16px;
    }

    .ip-mega-brand > img, .ip-mega-brand > span {
        width: 40px;
        height: 40px;
    }

    .ip-mega-search {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 46px;
    }

    .ip-mega-close {
        grid-column: 2;
        grid-row: 1;
        width: 40px;
        height: 40px;
    }

    .ip-mega-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .ip-mega-column, .ip-mega-column:first-child, .ip-mega-column:last-child, .ip-mega-column:nth-child(2), .ip-mega-column:nth-child(3), .ip-mega-column:nth-child(4) {
        padding: 22px 0;
        border-top: 1px solid var(--ip-line);
        border-right: 0;
    }

        .ip-mega-column:first-child {
            border-top: 0;
        }

        .ip-mega-column > header {
            min-height: 58px;
        }

    .ip-mega-link {
        min-height: 54px;
        padding-inline: 3px;
    }

        .ip-mega-link strong {
            font-size: 13px;
        }

    .ip-mega-footer {
        padding: 8px 16px 22px;
    }

        .ip-mega-footer > button {
            grid-template-columns: auto minmax(0, 1fr) auto;
        }

            .ip-mega-footer > button em {
                display: none;
            }

    .imm-admin-head {
        flex-direction: column;
    }

        .imm-admin-head .imm-primary {
            width: 100%;
        }

    .imm-admin-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .imm-form-grid {
        grid-template-columns: 1fr;
    }

        .imm-form-grid .imm-span-2 {
            grid-column: auto;
        }

    .imm-editor-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .imm-editor-actions button {
            width: 100%;
        }
}

@media (max-width: 430px) {
    .imm-admin-tabs {
        grid-template-columns: 1fr;
    }

    .ip-mega-column header p {
        max-width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ip-mega, .ip-mega-backdrop {
        animation: none;
    }
}

/* =========================================================
   V3 – Editorial-Menü wie im freigegebenen Ursprungsentwurf
   ========================================================= */

.ip-menu-button span {
    transform-origin: center;
    transition: transform .2s ease;
}

.ip-menu-button.is-open {
    gap: 0;
}

    .ip-menu-button.is-open span:first-child {
        transform: translateY(.75px) rotate(45deg);
    }

    .ip-menu-button.is-open span:last-child {
        transform: translateY(-.75px) rotate(-45deg);
    }

.ip-mega-backdrop {
    z-index: 34;
    top: 84px;
    background: rgba(6, 10, 13, .55);
    backdrop-filter: blur(8px);
}

.ip-mega {
    z-index: 35;
    top: 84px;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(235px, 21.5vw) minmax(0, 1fr);
    max-height: calc(100dvh - 84px);
    overflow: auto;
    color: var(--ip-text);
    border: 0;
    border-bottom: 1px solid var(--ip-line);
    border-radius: 0;
    background: var(--ip-surface);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .22);
    backdrop-filter: none;
}

.ip-mega-intro {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 31px clamp(24px, 2.7vw, 48px) 30px;
    border-right: 1px solid var(--ip-line);
    background: var(--ip-surface);
}

    .ip-mega-intro > span {
        color: var(--ip-muted);
        font-size: 8px;
        font-weight: 850;
        letter-spacing: .2em;
        text-transform: uppercase;
        line-height: 28px;
    }

    .ip-mega-intro h2 {
        max-width: 390px;
        margin: clamp(56px, 8vh, 104px) 0 0;
        font-size: clamp(37px, 3.2vw, 57px);
        font-weight: 760;
        line-height: .93;
        letter-spacing: -.065em;
    }

        .ip-mega-intro h2 em {
            display: block;
            font-family: Georgia, "Times New Roman", serif;
            font-weight: 400;
        }

    .ip-mega-intro p {
        margin: auto 0 0;
        color: var(--ip-muted);
        font-size: 10px;
        line-height: 1.45;
    }

.ip-mega-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: color-mix(in srgb, var(--ip-bg) 72%, var(--ip-surface));
}

.ip-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1vw, 18px);
    padding: 31px clamp(18px, 2vw, 36px) 14px;
}

.ip-mega-column,
.ip-mega-column:first-child,
.ip-mega-column:last-child,
.ip-mega-column:nth-child(2),
.ip-mega-column:nth-child(3),
.ip-mega-column:nth-child(4) {
    min-width: 0;
    padding: 0;
    border: 0;
}

    .ip-mega-column > header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        min-height: 28px;
        padding: 0 0 13px;
        border-bottom: 1px solid var(--ip-line);
    }

    .ip-mega-column h2 {
        margin: 0;
        color: var(--ip-muted);
        font-size: 8px;
        font-weight: 850;
        letter-spacing: .18em;
        text-transform: uppercase;
        line-height: 28px;
    }

    .ip-mega-column header > small {
        padding: 0;
        color: var(--ip-muted);
        font-size: 8px;
        letter-spacing: .08em;
    }

    .ip-mega-column.is-service > header,
    .ip-mega-column.is-notdienst > header {
        border-bottom-color: var(--ip-line);
    }

    .ip-mega-column.is-notdienst h2 {
        color: var(--ip-muted);
    }

.ip-mega-links {
    display: grid;
    gap: 0;
}

.ip-mega-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 47px;
    padding: 7px 2px;
    border: 0;
    border-bottom: 1px solid var(--ip-line);
    border-radius: 0;
    transition: color .18s ease, padding .18s ease;
}

    .ip-mega-link:hover {
        padding-right: 8px;
        padding-left: 8px;
        color: color-mix(in srgb, var(--ip-text) 76%, var(--ip-primary));
        background: transparent;
    }

    .ip-mega-link > span:first-child {
        display: block !important;
        min-width: 0;
    }

    .ip-mega-link strong {
        display: inline;
        width: auto;
        overflow: hidden;
        font-size: 12px;
        font-weight: 760;
        line-height: 1.18;
        letter-spacing: -.015em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ip-mega-link small {
        display: inline;
        width: auto;
        margin-top: 0;
        overflow: hidden;
        color: var(--ip-muted);
        font-size: 8px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ip-mega-link br {
        display: block !important;
    }

    .ip-mega-link b {
        color: var(--ip-muted);
        font-size: 10px;
        font-weight: 400;
    }

    .ip-mega-link em {
        position: static;
        align-self: center;
        max-width: 72px;
        color: var(--ip-muted);
        font-size: 6px;
        font-style: normal;
        font-weight: 850;
        letter-spacing: .08em;
        line-height: 1.35;
        text-align: right;
        text-transform: uppercase;
    }

    .ip-mega-link.is-disabled {
        opacity: .43;
    }

        .ip-mega-link.is-disabled:hover {
            padding: 7px 2px;
        }

.ip-mega-footer {
    min-height: auto;
    margin-top: auto;
    padding: 12px clamp(30px, 3.7vw, 66px) 27px;
}

    .ip-mega-footer > button {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 11px;
        width: 100%;
        min-height: 56px;
        padding: 9px 14px;
        color: var(--ip-text);
        border: 1px solid var(--ip-line);
        border-radius: 0;
        background: var(--ip-surface);
        cursor: pointer;
        text-align: left;
    }

        .ip-mega-footer > button > span:nth-child(2) {
            display: grid;
            gap: 1px;
        }

        .ip-mega-footer > button small {
            color: var(--ip-muted);
            font-size: 7px;
            font-weight: 800;
            letter-spacing: .1em;
            text-transform: uppercase;
        }

        .ip-mega-footer > button strong {
            font-size: 12px;
        }

        .ip-mega-footer > button em {
            color: var(--ip-muted);
            font-size: 9px;
            font-style: normal;
        }

        .ip-mega-footer > button b {
            font-size: 10px;
            font-weight: 400;
        }

@media (max-width: 1100px) {
    .ip-mega {
        grid-template-columns: 1fr;
    }

    .ip-mega-intro {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        min-height: auto;
        padding: 25px 30px;
        border-right: 0;
        border-bottom: 1px solid var(--ip-line);
    }

        .ip-mega-intro > span {
            grid-column: 1 / -1;
        }

        .ip-mega-intro h2 {
            margin: 15px 0 0;
            font-size: 34px;
        }

        .ip-mega-intro p {
            max-width: 320px;
            margin: 0;
            text-align: right;
        }

    .ip-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1101px) {
    .ip-mega-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .ip-mega-backdrop {
        top: 70px;
    }

    .ip-mega {
        top: 70px;
        bottom: 0;
        display: block;
        max-height: none;
        border-radius: 0;
    }

    .ip-mega-intro {
        display: block;
        padding: 24px 20px 26px;
    }

        .ip-mega-intro h2 {
            margin: 24px 0 0;
            font-size: clamp(35px, 12vw, 48px);
        }

        .ip-mega-intro p {
            margin-top: 28px;
            text-align: left;
        }

    .ip-mega-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 20px 12px;
    }

    .ip-mega-column,
    .ip-mega-column:first-child,
    .ip-mega-column:last-child,
    .ip-mega-column:nth-child(2),
    .ip-mega-column:nth-child(3),
    .ip-mega-column:nth-child(4) {
        padding: 0;
        border: 0;
    }

    .ip-mega-link {
        min-height: 52px;
    }

        .ip-mega-link strong {
            font-size: 13px;
        }

    .ip-mega-footer {
        padding: 14px 20px 24px;
    }

        .ip-mega-footer > button {
            grid-template-columns: auto minmax(0, 1fr) auto;
        }

            .ip-mega-footer > button em {
                display: none;
            }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.ip-page) {
        scroll-behavior: auto;
    }

    .ip-menu-button span {
        transition: none;
    }
}
