/*
 * Static content pages (backend layout "Subnavigation left", e.g. visa, salary, recognition):
 * the content elements are max. 820px wide and centred like the top image (.sectortopimage in main.css),
 * after the designer's layout; the ruler (frame-option-ruler-before) gets the same width.
 * News lists and plugins (job search, company list) keep the full width of the column; teaser sliders
 * (selected news lists, e.g. the Videos page, and sticky lists with slider, e.g. Inside Berlin) are narrowed as well.
 */
.backendlayout-subnavigation_left .maincontent-wrap > .frame:is(
    .frame-type-text,
    .frame-type-textpic,
    .frame-type-textmedia,
    .frame-type-image,
    .frame-type-header,
    .frame-type-panel,
    .frame-type-card_group,
    .frame-type-accordion,
    .frame-type-pb_talent_berlin_lotsenpunkt,
    .frame-type-ws_slider,
    .frame-type-table,
    .frame-type-bullets,
    .frame-type-uploads,
    .frame-type-menu_subpages,
    .frame-type-news_newsselectedlist,
    .frame-type-news_newsliststicky:has([data-story-slider])
) {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

/* text aligned with the ruler and the image: no extra gutter inside the narrowed element */
.backendlayout-subnavigation_left .maincontent-wrap > .frame:is(
    .frame-type-text,
    .frame-type-textpic,
    .frame-type-textmedia,
    .frame-type-image,
    .frame-type-header,
    .frame-type-panel,
    .frame-type-card_group,
    .frame-type-accordion,
    .frame-type-pb_talent_berlin_lotsenpunkt,
    .frame-type-table,
    .frame-type-bullets,
    .frame-type-uploads,
    .frame-type-menu_subpages,
    .frame-type-news_newsselectedlist,
    .frame-type-news_newsliststicky:has([data-story-slider])
) > .frame-group-container .frame-container {
    padding-right: 0;
    padding-left: 0;
}

/* Lotsenpunkt with 2 or 3 boxes in the narrow column: smaller gaps, hyphenation instead of breaks inside words */
.backendlayout-subnavigation_left .c-pilot {
    --pilot-gap: 1.5rem;
}

.backendlayout-subnavigation_left .c-pilotlist__link {
    gap: .75rem;
    padding-right: 1rem;
    padding-left: 1.25rem;
}

.backendlayout-subnavigation_left .c-pilotlist__text {
    overflow-wrap: break-word;
    hyphens: auto;
}

/*
 * Slider or image/video at the top (directly below the headline): smaller spacing above and below
 * (the frames otherwise add 42px top + 42px bottom each)
 */
.backendlayout-subnavigation_left .maincontent-wrap > .frame-type-header:has(+ .frame:is(.frame-type-ws_slider, .sectortopimage)) {
    padding-bottom: 1.5rem;
}

.backendlayout-subnavigation_left .maincontent-wrap > .frame-type-header + .frame:is(.frame-type-ws_slider, .sectortopimage) {
    padding-top: 0;
    padding-bottom: 1.5rem;
}

/* top video: 1rem more spacing below than for images and sliders */
.backendlayout-subnavigation_left .maincontent-wrap > .frame-type-header + .frame.sectortopimage:has(figure.video) {
    padding-bottom: 2.5rem;
}

/* top video/image as text & media without text: no gap (40px) to the empty text area */
.backendlayout-subnavigation_left .maincontent-wrap > .frame-type-header + .frame.sectortopimage .textmedia {
    gap: 0;
}

/* intro with frame (hatrahmen, e.g. Inside Berlin): arrow icon below the centred last line ("Explore the stories") */
.frame-type-text.hatrahmen p.text-center:last-child::after {
    content: "";
    display: block;
    width: 16px;
    height: 11px;
    margin: .5rem auto 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M7.66992 5.32812L12.9551 0.0429682L15.4043 2.59961L7.79883 10.2051L0 2.42773L2.40625 0L7.66992 5.32812Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}
