/*
 * ChoirSuite CSS module: choirsuite-layout-responsive.css
 * Full-width intranet frame, aligned topbar/content width and responsive shell sizing.
 *
 * Responsive/mobile rules live with the component they affect whenever possible.
 * This file was split from the historical monolithic choirsuite.css in 0.7.43.
 */

/* ChoirSuite 0.7.42 — full-width intranet frame with aligned inner content.
   The Joomla template can be full width; ChoirSuite limits only the inner topbar
   content and the main navigation/content layout. The width limiter itself has
   no visible border/shadow. Mobile uses almost the full viewport width and gets
   a calmer primary navigation strip. */
.cs-intranet-shell.is-layout-shell.is-corporate-shell {
    --cs-intranet-inner-width: 1420px;
    --cs-intranet-desktop-gutter: clamp(18px, 4vw, 72px);
    --cs-intranet-mobile-gutter: 6px;
    width: 100%;
    max-width: none;
    min-height: min(100dvh, 100vh);
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: var(--cs-intranet-bg);
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-topbar {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--cs-intranet-topbar-background, var(--cs-dominant, var(--cs-intranet-accent)));
    color: var(--cs-intranet-topbar-text, var(--cs-dominant-text, #fff));
    box-shadow: 0 10px 24px rgba(var(--cs-intranet-topbar-background-rgb, var(--cs-dominant-rgb, var(--cs-main-rgb, 38, 54, 80))), .18);
}

.cs-intranet-topbar-inner,
.cs-intranet-shell.is-corporate-shell .cs-intranet-layout {
    width: min(calc(100% - (2 * var(--cs-intranet-desktop-gutter))), var(--cs-intranet-inner-width));
    max-width: var(--cs-intranet-inner-width);
    margin-left: auto;
    margin-right: auto;
}

.cs-intranet-topbar-inner {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 68px;
    padding: 8px 0;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-brandmark {
    grid-column: 1;
    justify-self: center;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-impersonation-badge {
    grid-column: 2;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-avatar-link {
    grid-column: 3;
    justify-self: end;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-layout {
    display: grid;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    gap: clamp(10px, 1vw, 16px);
    align-items: start;
    padding: clamp(10px, 1.25vw, 18px) 0 clamp(24px, 3vw, 48px);
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-brandmark,
.cs-intranet-shell.is-corporate-shell .cs-intranet-avatar-link {
    align-self: center;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-topbar .cs-intranet-impersonation-badge {
    justify-self: end;
}

@media (min-width: 861px) {
    .cs-suite-shell.cs-intranet-shell.is-layout-shell {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-nav {
        top: clamp(10px, 1.25vw, 18px);
    }
}

@media (max-width: 860px) {
    .cs-intranet-shell.is-layout-shell.is-corporate-shell {
        --cs-intranet-mobile-gutter: 6px;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .cs-intranet-topbar-inner,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-layout {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .cs-intranet-topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 54px;
        padding: 6px var(--cs-intranet-mobile-gutter);
        gap: 6px;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-brandmark {
        grid-column: 1;
        justify-self: center;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-avatar-link {
        grid-column: 2;
        justify-self: end;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-topbar {
        position: sticky;
        top: 0;
        z-index: 40;
        border: 0;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-impersonation-badge {
        grid-column: 1 / -1;
        order: 3;
        min-width: 0;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-nav {
        order: 1;
        position: sticky;
        top: 54px;
        z-index: 35;
        display: flex;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 6px var(--cs-intranet-mobile-gutter);
        background: rgba(255, 255, 255, .96);
        border: 0;
        box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-nav::-webkit-scrollbar {
        display: none;
    }

    .cs-intranet-shell.is-corporate-shell .cs-nav-button--level-1,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-link {
        flex: 1 0 76px;
        min-width: 76px;
        min-height: 38px;
        padding: 7px 8px;
        border: 0;
        background: rgba(var(--cs-main-rgb, 38, 54, 80), .065);
        color: var(--cs-intranet-text);
        justify-content: center;
        text-align: center;
        scroll-snap-align: start;
        box-shadow: none;
    }

    .cs-intranet-shell.is-corporate-shell .cs-nav-button--level-1:hover,
    .cs-intranet-shell.is-corporate-shell .cs-nav-button--level-1:focus-visible,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-link:hover,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-link:focus-visible {
        background: rgba(var(--cs-main-rgb, 38, 54, 80), .12);
        color: var(--cs-main, #263650);
    }

    .cs-intranet-shell.is-corporate-shell .cs-nav-button--level-1.is-active,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-link.is-active {
        background: var(--cs-main, #263650);
        color: var(--cs-dominant-text, #fff);
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-link span {
        font-size: .8rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-link small {
        display: none;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-content {
        order: 2;
        width: 100%;
        max-width: none;
        padding: 6px var(--cs-intranet-mobile-gutter) 20px;
        gap: 8px;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-content > .cs-admin-section,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-content > .cs-suite-panel,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-content-head {
        border-left: 0;
        border-right: 0;
    }
}

@media (max-width: 480px) {
    .cs-intranet-shell.is-layout-shell.is-corporate-shell {
        --cs-intranet-mobile-gutter: 4px;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-brandmark {
        max-width: min(68vw, 220px);
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-brandmark.has-logo img {
        max-width: min(68vw, 210px);
    }

    .cs-intranet-shell.is-corporate-shell .cs-nav-button--level-1,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-link {
        flex-basis: 72px;
        min-width: 72px;
        padding-left: 6px;
        padding-right: 6px;
    }
}


/* ChoirSuite 0.7.48 — clean viewport-band architecture.
   The intranet shell stays in normal document flow. Only visual bands bleed to
   the viewport edge; their inner content remains aligned by the normal
   .cs-intranet-topbar-inner / .cs-intranet-layout width rules. This replaces
   the earlier 100vw shell breakouts and JS measurement fallback. */
.cs-suite-shell.cs-intranet-shell.is-layout-shell.is-corporate-shell {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    overflow: visible;
    background: var(--cs-intranet-bg);
}

.cs-viewport-band,
.cs-mobile-primary-band {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.cs-viewport-band::before,
.cs-mobile-primary-band::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-topbar.cs-viewport-band {
    background: transparent;
    box-shadow: none;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-topbar.cs-viewport-band::before {
    background: var(--cs-intranet-topbar-background, var(--cs-dominant, var(--cs-intranet-accent)));
    box-shadow: 0 10px 24px rgba(var(--cs-intranet-topbar-background-rgb, var(--cs-dominant-rgb, var(--cs-main-rgb, 38, 54, 80))), .18);
}

@media (max-width: 860px) {
    .cs-intranet-shell.is-corporate-shell .cs-mobile-primary-band {
        background: transparent;
        box-shadow: none;
    }

    .cs-intranet-shell.is-corporate-shell .cs-mobile-primary-band::before {
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
    }
}

@media (min-width: 861px) {
    .cs-mobile-primary-band::before {
        content: none;
    }
}

@supports not (width: 100vw) {
    .cs-viewport-band::before,
    .cs-mobile-primary-band::before {
        left: 0;
        width: 100%;
        transform: none;
    }
}

/* ChoirSuite 0.7.52 — mobile horizontal overflow containment.
   Primary/secondary/tertiary navigation may scroll horizontally, but the
   document and intranet shell must not. This replaces the 0.7.51 mobile
   100vw shell fight: the shell stays bounded, while only explicit nav strips
   own horizontal scrolling. */
@media (max-width: 860px) {
    html:has(.cs-suite-shell.cs-intranet-shell.is-layout-shell),
    body:has(.cs-suite-shell.cs-intranet-shell.is-layout-shell) {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .cs-suite-shell.cs-intranet-shell.is-layout-shell.is-corporate-shell {
        --cs-intranet-mobile-gutter: max(4px, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
        position: relative;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        overflow-x: clip;
        overflow-y: visible;
        background: var(--cs-intranet-bg);
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-topbar,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-layout,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-content,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-content > *,
    .cs-intranet-shell.is-corporate-shell .cs-admin-section,
    .cs-intranet-shell.is-corporate-shell .cs-suite-panel {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-layout,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-content {
        overflow-x: clip;
    }

    .cs-intranet-topbar-inner {
        padding-left: max(4px, env(safe-area-inset-left, 0px));
        padding-right: max(4px, env(safe-area-inset-right, 0px));
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-content {
        padding-left: max(4px, env(safe-area-inset-left, 0px));
        padding-right: max(4px, env(safe-area-inset-right, 0px));
    }

    .cs-intranet-shell.is-corporate-shell [data-cs-mobile-nav],
    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-nav {
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    .cs-intranet-shell.is-corporate-shell [data-cs-mobile-nav] > *,
    .cs-intranet-shell.is-corporate-shell .cs-intranet-section-nav > * {
        max-width: none;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-topbar.cs-viewport-band {
        background: var(--cs-dominant, var(--cs-intranet-accent));
    }

    .cs-intranet-shell.is-corporate-shell .cs-mobile-primary-band {
        background: rgba(255, 255, 255, .96);
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-topbar.cs-viewport-band::before,
    .cs-intranet-shell.is-corporate-shell .cs-mobile-primary-band::before {
        content: none;
    }
}

/* ChoirSuite 1.4.718 — topbar self-profile avatar + logout action. */
.cs-intranet-shell.is-corporate-shell .cs-intranet-account-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-account-actions .cs-intranet-avatar-link {
    grid-column: auto;
    justify-self: auto;
    width: auto;
}

.cs-intranet-logout-form {
    display: inline-flex;
    margin: 0;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-logout-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .28);
    border-radius: 999px;
    background: rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .08);
    color: var(--cs-intranet-topbar-text, #fff);
    cursor: pointer;
    line-height: 1;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-logout-button:hover,
.cs-intranet-shell.is-corporate-shell .cs-intranet-logout-button:focus-visible {
    border-color: rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .52);
    background: rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .16);
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-logout-button i {
    font-size: 1rem;
}

@media (max-width: 860px) {
    .cs-intranet-shell.is-corporate-shell .cs-intranet-account-actions {
        grid-column: 2;
        justify-self: end;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-account-actions .cs-intranet-avatar-link {
        width: auto;
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-logout-button {
        width: 38px;
        height: 38px;
    }
}


/* ChoirSuite 1.4.1375 — Ensemble Leonardo intranet brandmark matches the stamp intent more closely. */
.cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-topbar,
.cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-topbar.cs-viewport-band,
.cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-topbar-inner {
    overflow: visible;
}

.cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-topbar-inner {
    position: relative;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    min-height: 72px;
}

.cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-brandmark {
    position: absolute;
    left: 0;
    top: 8px;
    justify-self: start;
    align-self: start;
    width: clamp(78px, 7vw, 92px);
    max-width: none;
    min-height: 0;
    z-index: 3;
    transform: translate(-6px, -6px);
}

.cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-brandmark.has-logo img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 5px 12px rgba(15, 23, 42, .18));
}

@media (max-width: 860px) {
    .cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-topbar-inner {
        grid-template-columns: 72px auto;
        min-height: 58px;
    }

    .cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-brandmark {
        top: 6px;
        width: clamp(54px, 15vw, 66px);
        transform: translate(-2px, -4px);
    }
}

@media (max-width: 480px) {
    .cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-topbar-inner {
        grid-template-columns: 66px auto;
    }

    .cs-suite-shell.cs-intranet-shell.is-corporate-shell[data-cs-brandmark-variant="stamp-square"] .cs-intranet-brandmark {
        width: clamp(50px, 17vw, 58px);
        transform: translate(-1px, -3px);
    }
}

/* ChoirSuite 1.4.1412 — Ensemble Leonardo intranet viewport containment.
   Kept out of the shared layout: only the Leonardo profile-marked intranet
   participates. The document cannot pan horizontally; intentional local
   navigation/table strips retain their own overflow scrolling. The old 100vw
   backdrop is disabled on touch/tablet widths because its centering follows
   Joomla's component wrapper, which need not coincide with the viewport.
   Merged into this full ChoirSuite release; profile identified by canonical alias. */
html:has(.cs-intranet-shell[data-cs-intranet-layout-scope="ensemble-leonardo"]),
body:has(.cs-intranet-shell[data-cs-intranet-layout-scope="ensemble-leonardo"]) {
    max-width: 100%;
    overflow-x: clip !important;
}

.cs-suite-shell.cs-intranet-shell[data-cs-intranet-layout-scope="ensemble-leonardo"] {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.cs-intranet-shell[data-cs-intranet-layout-scope="ensemble-leonardo"] :is(
    .cs-intranet-topbar-inner,
    .cs-intranet-layout,
    .cs-intranet-section-nav,
    .cs-intranet-content
) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

/* Do not suppress the independent, intentionally horizontal primary and
   tertiary navigation scroll regions or make tables non-scrollable. */
@media (min-width: 861px) and (max-width: 1280px) {
    .cs-intranet-shell[data-cs-intranet-layout-scope="ensemble-leonardo"] .cs-viewport-band::before,
    .cs-intranet-shell[data-cs-intranet-layout-scope="ensemble-leonardo"] .cs-mobile-primary-band::before {
        content: none;
    }
    .cs-intranet-shell[data-cs-intranet-layout-scope="ensemble-leonardo"] .cs-intranet-topbar.cs-viewport-band {
        background: var(--cs-intranet-topbar-background, var(--cs-dominant, var(--cs-intranet-accent)));
        box-shadow: 0 10px 24px rgba(var(--cs-intranet-topbar-background-rgb, var(--cs-dominant-rgb, var(--cs-main-rgb, 38, 54, 80))), .18);
    }
}

/* 1.5.56 — optional profile decoration: page background (colour or gradient) and coloured
   lines under the top bar. Both come from the profile (ThemeService::pageDecorationForProfile);
   without settings the variables keep the neutral background and draw no lines. */
.cs-intranet-shell.is-corporate-shell,
.cs-suite-shell.cs-intranet-shell.is-layout-shell.is-corporate-shell {
    background: var(--cs-page-background, var(--cs-intranet-bg));
    background-attachment: fixed;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-topbar.cs-viewport-band {
    margin-bottom: var(--cs-topbar-stripe-height, 0px);
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-topbar.cs-viewport-band::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    height: var(--cs-topbar-stripe-height, 0px);
    transform: translateX(-50%);
    background: var(--cs-topbar-stripe, none);
    pointer-events: none;
}

/* 1.5.56 — profile navigation layout "none": no section column; the overview shows the member
   sections as tiles, management sections sit in the account menu under the avatar. */
.cs-intranet-shell.is-corporate-shell.is-navigation-none .cs-intranet-layout {
    display: block;
}

.cs-intranet-shell.is-navigation-none .cs-intranet-backlink {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 0;
    color: var(--cs-dominant, var(--cs-main, #263650));
    font-size: .95rem;
    text-decoration: none;
}

.cs-intranet-shell.is-navigation-none .cs-intranet-backlink::before {
    content: "\2190\00a0";
}

.cs-intranet-shell.is-navigation-none .cs-intranet-backlink:hover,
.cs-intranet-shell.is-navigation-none .cs-intranet-backlink:focus-visible {
    text-decoration: underline;
}

.cs-intranet-shell.is-navigation-none[data-cs-intranet-active-section="home"] .cs-intranet-backlink {
    display: none;
}

.cs-intranet-account-menu {
    position: relative;
}

/* The top bar must stack above the content so the management menu is never covered
   (project images create their own layers further down the page). */
.cs-intranet-shell.is-corporate-shell.is-navigation-none .cs-intranet-topbar {
    z-index: 50; /* already positioned: relative (viewport band) or sticky (phone) */
}

/* Management menu behind a round admin icon, same shape as the logout button. */
.cs-intranet-account-menu > summary {
    list-style: none;
    cursor: pointer;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-admin-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .28);
    border-radius: 999px;
    background: rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .08);
    color: var(--cs-intranet-topbar-text, #fff);
    line-height: 1;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-admin-button:hover,
.cs-intranet-shell.is-corporate-shell .cs-intranet-admin-button:focus-visible,
.cs-intranet-account-menu[open] > .cs-intranet-admin-button {
    border-color: rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .45);
    background: rgba(var(--cs-intranet-topbar-text-rgb, 255, 255, 255), .16);
}

.cs-intranet-account-menu > summary::-webkit-details-marker {
    display: none;
}

.cs-intranet-account-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    min-width: 240px;
    padding: 4px 0;
    background: #fff;
    color: var(--cs-intranet-text, #182234);
    border: 1px solid rgba(20, 28, 44, .12);
    box-shadow: 0 12px 30px rgba(20, 28, 44, .16);
}

.cs-intranet-account-menu-item {
    display: block;
    padding: 9px 16px;
    color: inherit;
    text-decoration: none;
    font-size: .95rem;
}

.cs-intranet-account-menu-item:hover,
.cs-intranet-account-menu-item:focus-visible {
    background: rgba(var(--cs-dominant-rgb, 38, 54, 80), .07);
    color: var(--cs-dominant, inherit);
}

.cs-intranet-account-menu-heading {
    padding: 8px 16px 2px;
    color: var(--cs-intranet-muted, #657187);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cs-home-section-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-block-start: 14px;
}

.cs-home-section-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(var(--cs-dominant-rgb, 38, 54, 80), .16);
    color: var(--cs-intranet-text, #182234);
    text-decoration: none;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.cs-home-section-tile:hover,
.cs-home-section-tile:focus-visible {
    border-color: rgba(var(--cs-dominant-rgb, 38, 54, 80), .45);
    box-shadow: 0 8px 22px rgba(var(--cs-dominant-rgb, 38, 54, 80), .10);
}

.cs-home-section-tile-title {
    font-family: var(--cs-font-title, Georgia, serif);
    font-weight: var(--cs-font-title-weight, 400);
    font-size: 1.3rem;
    line-height: 1.2;
}

.cs-home-section-tile-copy {
    color: var(--cs-intranet-muted, #657187);
    font-size: .92rem;
}

.cs-home-section-tile-more {
    margin-top: auto;
    color: var(--cs-dominant, var(--cs-main, #263650));
    font-size: .92rem;
}

.cs-home-section-tile-more::after {
    content: "\00a0\2192";
}

@media (max-width: 860px) {
    .cs-intranet-shell.is-navigation-none .cs-intranet-content {
        padding-top: 8px;
    }

    .cs-intranet-shell.is-navigation-none .cs-intranet-backlink {
        margin: 8px var(--cs-intranet-mobile-gutter, 6px) 0;
    }

    .cs-home-section-tiles {
        grid-template-columns: minmax(0, 1fr);
        margin-inline: var(--cs-intranet-mobile-gutter, 6px);
    }

    .cs-intranet-shell.is-corporate-shell .cs-intranet-admin-button {
        width: 38px;
        height: 38px;
    }

    .cs-intranet-account-menu-panel {
        position: fixed;
        top: 58px;
        right: 6px;
        left: auto;
        max-width: calc(100vw - 12px);
    }
}

/* 1.5.56 — overview card "Mein Projekt": two side by side, 4:5 portrait picture left. */
.cs-home-overview-grid .cs-home-card--my-project {
    grid-column: span 6;
    min-height: 0;
}

.cs-home-overview-grid .cs-home-card--my-project.has-portrait {
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
}

.cs-home-card--my-project.has-portrait > .cs-home-project-main {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.cs-home-my-project-portrait {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: rgba(var(--cs-home-dominant-rgb, 38, 54, 80), .12);
}

.cs-home-my-project-portrait picture,
.cs-home-my-project-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .cs-home-overview-grid .cs-home-card--my-project { grid-column: span 12; }
}

.cs-home-my-project-concerts {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cs-home-my-project-concerts li {
    display: grid;
    gap: 1px;
    padding-top: 8px;
    border-top: 1px solid rgba(var(--cs-home-dominant-rgb, 38, 54, 80), .16);
}

.cs-home-my-project-concert-date {
    font-weight: 600;
}

.cs-home-my-project-concert-place {
    color: var(--cs-intranet-muted, #657187);
    font-size: .92rem;
}

/* 1.5.56 — logo lines across the screen (profile setting "Linien aus dem Logo verlängern"):
   the logo's last pixel column (LogoEdgeLineService) is stretched from the logo to the edge.
   Behind profile and icons the lines are dimmed, the round icons keep a white background. */
.cs-intranet-shell.has-logo-lines {
    overflow-x: clip;
}

/* Override the old ".cs-intranet-brandmark span" rule (meant for the logo-less mark: 46x3px bar). */
.cs-intranet-shell.has-logo-lines .cs-intranet-brandmark .cs-brandmark-logo-wrap {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    line-height: 0;
    background: none;
}

.cs-intranet-shell.has-logo-lines .cs-brandmark-logo-wrap > img {
    display: block;
}

.cs-intranet-shell.has-logo-lines .cs-intranet-brandmark .cs-brandmark-logo-lines {
    display: block;
    background-color: transparent;
    position: absolute;
    left: 100%;
    top: 0;
    width: 100vw;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

/* Large logo (Nicolas 2026-11-24): left edge flush with the content, profile and icons on the
   height of the logo's text line, so the lines run above them to the edge. The lines sit between
   20/116 and 77/116 of the logo height, the text line around 100/116. */
.cs-intranet-shell.has-logo-lines {
    --cs-logo-lines-h: 112px;
}

.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px 0 10px;
}

.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-brandmark {
    justify-self: start;
    max-width: none;
}

.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-brandmark.has-logo img {
    height: var(--cs-logo-lines-h);
    max-height: none;
    max-width: none;
    width: auto;
}

.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-account-actions {
    position: relative;
    z-index: 1;
    align-self: start;
    /* icon centre (19px) on the text line at 100/116 of the logo */
    margin-top: calc(var(--cs-logo-lines-h) * 100 / 116 - 19px);
}

.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-account-actions .cs-intranet-avatar,
.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-logout-button,
.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-admin-button {
    width: 38px;
    height: 38px;
}

@media (max-width: 860px) {
    /* Phones: smaller logo, controls centred; the lines pass behind them dimmed. */
    .cs-intranet-shell.has-logo-lines {
        --cs-logo-lines-h: 56px;
    }

    .cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-topbar-inner {
        padding: 6px var(--cs-intranet-mobile-gutter, 6px);
    }

    .cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-account-actions {
        align-self: center;
        margin-top: 0;
        padding: 6px 20px;
        margin-right: -20px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75) 20px, rgba(255, 255, 255, .75) calc(100% - 20px), rgba(255, 255, 255, 0));
    }
}

.cs-intranet-shell.has-logo-lines .cs-intranet-logout-button,
.cs-intranet-shell.has-logo-lines .cs-intranet-admin-button {
    background: #fff;
}

/* 1.5.56 — real caption instead of the lettering in the logo image (profile setting "Schriftzug
   unter dem Logo"): the image is clipped below the graphic (row 84 of 116), the caption stands
   where the lettering was (x 27/116, baseline about 109/116), in the profile's title font. */
.cs-intranet-shell.has-logo-lines.has-logo-caption .cs-brandmark-logo-wrap > img {
    clip-path: inset(0 0 calc(var(--cs-logo-lines-h) * 32 / 116) 0);
}

.cs-intranet-shell.has-logo-lines .cs-intranet-brandmark .cs-brandmark-logo-caption {
    position: absolute;
    left: calc(var(--cs-logo-lines-h) * 27 / 116);
    top: calc(var(--cs-logo-lines-h) * 86 / 116);
    width: max-content;
    height: auto;
    background: none;
    color: #1f2328;
    font-family: var(--cs-font-title, Georgia, serif);
    font-weight: 400;
    font-size: calc(var(--cs-logo-lines-h) * 24 / 116);
    line-height: 1.1;
    white-space: nowrap;
}

/* Profile and icons sit in the lines (Nicolas 2026-11-24, back from "below the lines"): centred
   on the lines' middle (about 48/116 of the logo height); the lines behind them are dimmed and the
   round icons keep a white background. */
.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-account-actions {
    margin-top: calc(var(--cs-logo-lines-h) * 48 / 116 - 27px);
    /* the lines fade out over a long run before profile and icons (Nicolas 2026-11-24) */
    padding: 8px 28px 8px 180px;
    margin-left: -152px;
    margin-right: -28px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .82) 170px);
}

/* ... and stay dimmed after the icons up to the screen edge (Nicolas 2026-11-24). */
.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-account-actions::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100vw;
    background: rgba(255, 255, 255, .82);
    pointer-events: none;
}

/* "Ansicht als beenden" in the logout place, round like the other icons, in its own colour. */
.cs-intranet-shell.is-corporate-shell .cs-intranet-end-impersonation-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #a8321f;
    background: #c43c25;
    color: #fff;
    text-decoration: none;
}

.cs-intranet-shell.is-corporate-shell .cs-intranet-end-impersonation-button:hover,
.cs-intranet-shell.is-corporate-shell .cs-intranet-end-impersonation-button:focus-visible {
    background: #a8321f;
    color: #fff;
}

.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-end-impersonation-button {
    width: 38px;
    height: 38px;
}

@media (max-width: 860px) {
    .cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-account-actions {
        margin-top: 0;
    }
}

/* Page background over the whole screen width (not only the shell's content width), scrolling
   with the page; drawn behind the shell's content. */
.cs-intranet-shell.has-page-background {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.cs-intranet-shell.is-corporate-shell.has-page-background,
.cs-suite-shell.cs-intranet-shell.is-layout-shell.is-corporate-shell.has-page-background {
    background: transparent;
}

.cs-intranet-shell.has-page-background::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -2;
    background: var(--cs-page-background);
    pointer-events: none;
}

/* "Ansicht als" badge sits below the lines too, like the profile and icons. */
.cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-topbar .cs-intranet-impersonation-badge {
    position: relative;
    z-index: 1;
    align-self: start;
    margin-top: calc(var(--cs-logo-lines-h) * 77 / 116 + 10px);
}

@media (max-width: 860px) {
    .cs-intranet-shell.is-corporate-shell.has-logo-lines .cs-intranet-topbar .cs-intranet-impersonation-badge {
        margin-top: 0;
    }
}

/* 1.5.56 — overview tiles in the profile's tile colours (sample B, Nicolas 2026-11-24): white
   tiles, a line in the tile colour on top, the small heading in a darker shade of it. */
.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card {
    background: #fff;
    border: 1px solid rgba(20, 28, 44, .08);
    border-top: 5px solid var(--cs-tile, var(--cs-home-dominant));
    color: var(--cs-intranet-text, #182234);
}

.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card::before {
    display: none;
}

.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card .cs-home-card-kicker,
.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card .cs-home-welcome-kicker {
    color: color-mix(in srgb, var(--cs-tile, var(--cs-home-dominant)) 70%, #000);
}

.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card--strong,
.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card--strong .cs-home-welcome-name,
.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card--strong .cs-home-welcome-memberships,
.cs-intranet-shell.has-tile-colors .cs-home-overview-grid > .cs-home-card--strong .cs-home-card-link {
    color: var(--cs-intranet-text, #182234);
}
