/* Local/staging-only visual parity adjustments for the Bootstrap 5 frontend. */

/* The homepage brand strip is stored as an unstyled list in the legacy DB. */
body.page-1 #page-content ul:not(.nav):not(.navbar-nav):not(.dropdown-menu) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

body.page-1 #page-content ul:not(.nav):not(.navbar-nav):not(.dropdown-menu) > li {
    display: flex;
    flex: 1 1 8rem;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.page-1 #page-content ul:not(.nav):not(.navbar-nav):not(.dropdown-menu) > li img {
    display: block;
    width: auto;
    max-width: min(100%, 11rem);
    height: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Keep page images within their Bootstrap grid columns after the migration. */
#page-content img {
    max-width: 100%;
    height: auto;
}

/* The original page uses a plain breadcrumb strip, not the legacy yellow bar. */
.breadcrumb-section {
    background-color: #fff !important;
}

/* The live event tables use separated borders without gaps between cells. */
.tx-sm-campus table.table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Match the original uppercase section heading without uppercasing the CTA. */
body.page-1 #page-content .frame-header h2.element-header {
    text-transform: uppercase;
}

/* Restore the original homepage hero styles missing from the migrated theme. */
#carousel-276 .carousel-inner::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 70px;
    height: 200px;
    background: url("/fileadmin/user_upload/essity_campus_logo_rgbtransparent.svg") left top / contain no-repeat;
    pointer-events: none;
}

#carousel-276 .carousel-item {
    --carousel-item-background: transparent !important;
    background-color: transparent !important;
    padding-right: 0;
}

#carousel-276 .carousel-content-inner {
    display: block !important;
    text-align: left;
}

#carousel-276 .carousel-content-inner .carousel-box {
    float: right;
    width: 80%;
    max-width: none;
    color: #212121;
    background-color: rgba(255, 255, 255, .9) !important;
}

#carousel-276 .carousel-item-button.btn.btn-primary {
    float: right;
}

@media (min-width: 576px) {
    #carousel-276 .carousel-inner::before {
        width: 240px;
    }

    #carousel-276 .carousel-item {
        padding-right: 20px;
    }
}

@media (min-width: 992px) {
    #carousel-276 .carousel-content-inner .carousel-box {
        width: 40%;
    }
}

/* Restore the original full-width E-Learning content and custom carousel layout. */
body#p142 .frame-container-default {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body#p142 .frame-container-default > .frame-inner {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body#p142 #carousel-408 .carousel-item-layout-custom {
    padding-right: 20px !important;
    padding-left: 0 !important;
}

body#p142 #carousel-408 .carousel-content-inner {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left;
}

body#p142 #carousel-408 .carousel-content-inner .carousel-box {
    float: right !important;
    width: 80%;
    max-width: none !important;
    height: 100%;
    padding-right: 0 !important;
    background-color: transparent !important;
}

@media (min-width: 768px) {
    body#p142 #carousel-408 .carousel-content-inner .carousel-box {
        width: 40%;
    }
}

/* ---- Parity with the live site (measured 2026-11-17, campus.hm.essity.com) ---- */

/* Main navigation: bold dark blue, active entry pink, no underline. */
.navbar-nav .nav-link {
    font-weight: 700;
    color: #00005a;
    text-decoration: none;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #00005a;
}

/* Only the page that is open is pink (not its parent "Campus"). */
.navbar-nav .nav-link[aria-current="true"],
.navbar-nav .nav-link.active[aria-current="true"] {
    color: #f50082;
}

.navbar-nav .nav-link,
.navbar-nav .nav-link span,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active span {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Section headings: small, dark blue, uppercase (not the carousel CTA). */
#page-content .frame-header h2.element-header,
#page-content .frame-header h2.element-header > span {
    font-size: 19px;
    line-height: 1.2;
    font-weight: 300;
    color: #00005a;
    text-transform: uppercase;
}

/* Event tables and filter selects. */
.tx-sm-campus table th,
.tx-sm-campus table td {
    color: #212121;
}

#page-content select {
    font-size: 1rem;
}

/* Footer: link row on the left, copyright on the right, links not underlined. */
.footer-section-meta .frame-container,
.footer-section-meta .frame-container-default {
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
}

.footer-section-meta .frame-inner,
.footer-section-meta .footer-info-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

/* Footer: link row and copyright on separate lines (not everything in one row). */
.footer-section-meta .footer-info-section {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
}

.footer-section-meta .footer-meta ul,
.footer-section-meta ul.meta-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section-meta a {
    text-decoration: none;
}

/* The live navigation has no underline bar under the active entries. */
.navbar-nav .nav-link-main.active::before,
.navbar-nav .nav-link-main:hover::before {
    display: none !important;
    content: none !important;
}


/* Powermail registration forms: narrow centered column with a framed first fieldset, like live. */
#page-content .frame-inner:has(.tx-powermail),
#page-content .frame-inner:has(form.powermail_form) {
    width: 740px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tx-powermail form.powermail_form fieldset.powermail_fieldset:first-of-type {
    border: 2px solid #ddd;
    padding: 0 20px 10px;
    margin-bottom: 0.5rem;
}

/* "Veranstaltung" block: description, event name and date stacked full width, as on live. */
.tx-powermail form.powermail_form fieldset.powermail_fieldset:first-of-type:has(.powermail_fieldwrap_veranstaltung_name) .powermail_fieldwrap {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.tx-powermail form.powermail_form fieldset.powermail_fieldset:first-of-type {
    padding-bottom: 20px;
}

.tx-powermail form.powermail_form fieldset.powermail_fieldset:first-of-type input[readonly],
.tx-powermail form.powermail_form fieldset.powermail_fieldset:first-of-type input[disabled] {
    background-color: #e9ecef;
}

/* ---- Registration forms: details measured against live ---- */

/* Header: the live logo keeps its full size (no shrinking while scrolling). */
.navbar-brand img,
.navbar-brand .navbar-brand-logo img,
.bp-page-header .navbar-brand img {
    height: 60px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    transform: none !important;
}

.bp-page-header .navbar-brand,
.bp-page-header .navbar-brand-logo {
    transform: none !important;
}

/* Legend of the framed "Veranstaltung" block gets an underline; text breathes. */
.tx-powermail form.powermail_form fieldset.powermail_fieldset:first-of-type > legend {
    line-height: 48px;
    border-bottom: 2px solid #eee;
    margin-bottom: 12px;
}

.tx-powermail form.powermail_form .powermail_fieldwrap_type_text,
.tx-powermail form.powermail_form .powermail_fieldwrap_type_text p {
    line-height: 32px;
}

.tx-powermail form.powermail_form .powermail_fieldwrap_type_text p {
    margin-bottom: 16px;
}

/* Form controls: lighter border, 4px radius, Bootstrap text colour. */
.tx-powermail form.powermail_form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tx-powermail form.powermail_form select,
.tx-powermail form.powermail_form textarea {
    border-color: #ced4da;
    border-radius: 4px;
    color: #212529;
}

.tx-powermail form.powermail_form input[type="checkbox"],
.tx-powermail form.powermail_form input[type="radio"] {
    width: 13px;
    height: 13px;
    margin-top: 0;
}

.tx-powermail form.powermail_form label,
.tx-powermail form.powermail_form .powermail_fieldwrap_type_check,
.tx-powermail form.powermail_form .powermail_fieldwrap_type_radio {
    line-height: 32px;
}

.tx-powermail form.powermail_form input[type="submit"],
.tx-powermail form.powermail_form button[type="submit"] {
    border-radius: 4px;
}

.tx-powermail form.powermail_form .form-check-input[type="checkbox"],
.tx-powermail form.powermail_form .form-check-input[type="radio"] {
    margin-top: 9px;
}

/* anpassungen.css forces these fields to 100% width; flex columns need an explicit basis. */
.tx-powermail form.powermail_form .powermail_fieldwrap_datenschutz,
.tx-powermail form.powermail_form .powermail_fieldwrap_information,
.tx-powermail form.powermail_form .powermail_fieldwrap_arbeitgeber,
.tx-powermail form.powermail_form .powermail_fieldwrap_rechnunge_mailadressefuerrechnungsversand {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

/* "* Pflichtfelder" takes its own row, the submit button sits below on the left (like live). */
.tx-powermail form.powermail_form .powermail_fieldwrap_pflichtfelder {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.tx-powermail form.powermail_form .powermail_fieldwrap_absenden {
    flex: 0 0 50%;
}

.tx-powermail form.powermail_form .form-check {
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Radio groups: live spacing (2 px below each option, 8 px under the group label). */
.tx-powermail form.powermail_form .powermail_fieldwrap_type_radio .form-check {
    padding-bottom: 2px;
}

.tx-powermail form.powermail_form .powermail_fieldwrap_type_radio > label {
    margin-bottom: 8px;
}

.tx-powermail form.powermail_form .powermail_fieldwrap_rechnung {
    padding-bottom: 8px;
}

/* JOBST symposium registration: every fieldset is a framed card on live. */
body#p146 .tx-powermail form.powermail_form fieldset.powermail_fieldset {
    border: 2px solid #ddd;
    padding: 0 20px 10px;
    margin-bottom: 0.5rem;
}

body#p146 .tx-powermail form.powermail_form fieldset.powermail_fieldset > legend {
    line-height: 48px;
    border-bottom: 2px solid #eee;
    margin-bottom: 12px;
}

/* Header: logo and main navigation share one vertical centre line. */
.bp-page-header.navbar {
    padding-top: 25px;
    padding-bottom: 25px;
}

.bp-page-header.navbar > .container,
.bp-page-header.navbar > div {
    align-items: center !important;
}

.bp-page-header .navbar-brand {
    display: flex;
    align-items: center;
    height: 60px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

.bp-page-header .navbar-brand img {
    position: static !important;
    margin: 0 !important;
}
