:root {
    --public-shell-pink: #d23363;
    --public-shell-pink-dark: #a9274d;
    --public-shell-pink-soft: #fff1f6;
    --public-shell-teal: #60AAA9;
    --public-shell-teal-dark: #60AAA9;
    --public-shell-ink: #443f43;
    --public-shell-muted: #645d61;
    --public-shell-border: #e5dddf;
    --public-shell-shadow: 0 16px 42px rgba(71, 55, 63, 0.1);
    --public-shell-content-width: 1240px;
    --public-shell-content-gutter: 2rem;
}

.public-shell-header,
.public-shell-footer {
    font-family: "Manrope", Arial, sans-serif;
    letter-spacing: 0;
}

.public-shell-header *,
.public-shell-header *::before,
.public-shell-header *::after,
.public-shell-footer *,
.public-shell-footer *::before,
.public-shell-footer *::after {
    box-sizing: border-box;
}

body.public-site-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.public-site-page > main {
    flex: 1 0 auto;
}

body.public-site-page > .public-shell-footer {
    flex: 0 0 auto;
}

.public-shell-container,
.container {
    width: min(var(--public-shell-content-width), calc(100% - var(--public-shell-content-gutter)));
    margin-inline: auto;
}

/* Nested legacy containers should retain their parent's content boundary. */
.container .container {
    width: 100%;
}

.public-content-section {
    position: relative;
    box-sizing: border-box;
    margin-bottom: 1.875rem;
    padding: 1.65rem 2rem 1.75rem 2.35rem;
    background: #ecf8f7;
    border: 1px solid #d1e9e8;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(71, 55, 63, 0.08);
}

body.public-site-page:not(.public-home-v3) .public-content-section {
    margin-top: 2rem;
}

.public-content-section h1,
.public-content-section h2,
.public-content-section h3,
.public-content-section p {
    position: relative;
}

.public-content-section h1,
.public-content-section .public-content-heading {
    margin: 0 0 1.1rem;
    padding: 0;
    color: #d23363;
    border-bottom: 0;
    font-size: 1.8rem;
    line-height: 1.25;
}

.public-content-section h2 {
    margin-bottom: 1.1rem;
    color: #d23363;
    font-size: 1.15rem;
    line-height: 1.55;
}

.public-content-section h3 {
    margin-bottom: 1rem;
    color: #d23363;
    font-size: 1.65rem;
    line-height: 1.25;
}

.public-content-section h3 a {
    color: inherit;
    text-decoration: none;
}

.public-content-section p {
    color: #645d61;
    line-height: 1.65;
}

.public-content-section:last-child {
    margin-bottom: 0;
}

.public-content-section .clear.padding20 {
    height: 0;
    margin: 0;
}

.public-shell-header {
    position: relative;
    z-index: 1020;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--public-shell-border);
    box-shadow: 0 5px 22px rgba(71, 55, 63, 0.06);
}

.public-shell-header__accent {
    height: 5px;
    background: var(--public-shell-teal);
}

.public-shell-navbar {
    min-height: 112px;
}

.public-shell-navbar > .public-shell-container {
    display: flex;
    min-height: 112px;
    gap: 1.25rem;
    align-items: center;
}

.public-shell-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.public-shell-brand img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}

.public-shell-navigation {
    margin-left: auto;
}

.public-shell-navigation ul {
    display: flex;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-shell-navigation li {
    position: relative;
    margin: 0;
    padding: 0;
}

.public-shell-navigation a,
.public-shell-dropdown__toggle {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    padding: 0.65rem 0.6rem;
    align-items: center;
    color: var(--public-shell-muted);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.public-shell-navigation a::after,
.public-shell-dropdown__toggle::after {
    position: absolute;
    right: 0.8rem;
    bottom: 0.35rem;
    left: 0.8rem;
    height: 2px;
    content: "";
    background: var(--public-shell-teal);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.public-shell-navigation a:hover,
.public-shell-navigation a:focus,
.public-shell-navigation a.active,
.public-shell-dropdown__toggle:hover,
.public-shell-dropdown__toggle:focus,
.public-shell-dropdown__toggle.active {
    color: var(--public-shell-pink);
    outline: none;
}

.public-shell-navigation a:hover::after,
.public-shell-navigation a:focus::after,
.public-shell-navigation a.active::after,
.public-shell-dropdown__toggle:hover::after,
.public-shell-dropdown__toggle:focus::after,
.public-shell-dropdown__toggle.active::after {
    transform: scaleX(1);
}

.public-shell-dropdown__toggle span {
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    border-top: 0.3rem solid currentColor;
    border-right: 0.3rem solid transparent;
    border-left: 0.3rem solid transparent;
}

.public-shell-dropdown__menu {
    position: absolute;
    top: calc(100% - 0.1rem);
    right: auto;
    left: 0;
    display: none !important;
    min-width: 13rem;
    width: max-content;
    max-width: min(300px, calc(100vw - 2rem));
    padding: 0.45rem !important;
    background: #fff;
    border: 1px solid var(--public-shell-border);
    border-radius: 0.35rem;
    box-shadow: var(--public-shell-shadow);
}

.public-shell-dropdown__menu li,
.public-shell-dropdown__menu a {
    width: 100%;
}

.public-shell-dropdown__menu a {
    min-height: 0;
    padding: 0.6rem 0.75rem;
    color: var(--public-shell-ink);
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.public-shell-navigation > ul > .public-shell-dropdown:nth-last-child(-n + 4) .public-shell-dropdown__menu {
    right: 0;
    left: auto;
}

.public-shell-dropdown__menu a::after {
    display: none;
}

.public-shell-dropdown__menu a:hover,
.public-shell-dropdown__menu a:focus,
.public-shell-dropdown__menu a.active {
    color: var(--public-shell-pink-dark);
    background: var(--public-shell-pink-soft);
}

.public-shell-dropdown:hover .public-shell-dropdown__menu,
.public-shell-dropdown:focus-within .public-shell-dropdown__menu,
.public-shell-dropdown.is-open .public-shell-dropdown__menu {
    display: grid !important;
}

.public-shell-navbar__toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 9px;
    background: #fff;
    border: 1px solid var(--public-shell-border);
    border-radius: 4px;
    cursor: pointer;
}

.public-shell-navbar__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--public-shell-pink);
}

.public-shell-footer {
    width: 100%;
    margin-top: 4rem;
    color: #fff;
    background: #383336;
}

.public-shell-footer__accent {
    height: 8px;
    background: var(--public-shell-pink);
}

.public-shell-footer__content {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.8fr) auto;
    gap: 3rem;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.public-shell-footer__brand {
    margin-bottom: 0.75rem;
    color: #f05a88;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
}

.public-shell-footer__brand span {
    display: block;
    color: var(--public-shell-teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.public-shell-footer p {
    max-width: 44ch;
    margin: 0;
    color: #ddd6d9;
    font-size: 0.9rem;
    line-height: 1.6;
}

.public-shell-footer__links {
    display: grid;
    gap: 0.45rem;
}

.public-shell-footer__links a {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: none;
}

.public-shell-footer__links a:hover,
.public-shell-footer__links a:focus {
    color: var(--public-shell-teal);
}

.public-shell-footer__social {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
}

.public-shell-footer__social a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: #fff;
    border-radius: 50%;
    transition: transform 150ms ease;
}

.public-shell-footer__social a:hover,
.public-shell-footer__social a:focus {
    transform: translateY(-2px);
}

.public-shell-footer__social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.public-shell-footer__legal {
    padding: 0.85rem 0;
    color: #fff;
    background: var(--public-shell-teal-dark);
    font-size: 0.78rem;
    line-height: 1.5;
}

.public-shell-footer__legal .public-shell-container {
    text-align: center;
}

@media (max-width: 1100px) {
    .public-shell-navigation a,
    .public-shell-dropdown__toggle {
        padding-inline: 0.5rem;
    }

    .public-shell-navigation a::after,
    .public-shell-dropdown__toggle::after {
        right: 0.5rem;
        left: 0.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    .public-shell-navbar > .public-shell-container {
        gap: .75rem;
    }

    .public-shell-brand img { width: 175px; }
    .public-shell-navigation > ul > li > a {
        padding-inline: .2rem;
    }
}

@media (max-width: 991.98px) {
    .public-shell-navbar {
        min-height: 88px;
    }

    .public-shell-navbar > .public-shell-container {
        min-height: 88px;
        flex-wrap: wrap;
        padding-block: 0.75rem;
    }

    .public-shell-brand img {
        width: 220px;
    }

    .public-shell-navbar__toggle {
        display: block;
    }

    .public-shell-navigation {
        display: none;
        flex-basis: 100%;
        margin-left: 0;
        padding-top: 0.6rem;
        border-top: 1px solid var(--public-shell-border);
    }

    .public-shell-navigation.is-open {
        display: block;
    }

    .public-shell-navigation ul {
        display: grid;
        gap: 0;
        align-items: stretch;
    }

    .public-shell-navigation a,
    .public-shell-dropdown__toggle {
        width: 100%;
        min-height: 42px;
        padding: 0.65rem 0.25rem;
        justify-content: space-between;
    }

    .public-shell-navigation a::after,
    .public-shell-dropdown__toggle::after {
        right: auto;
        bottom: 0.35rem;
        left: 0.25rem;
        width: 34px;
    }

    .public-shell-dropdown__menu {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 0 0 0.5rem 1rem !important;
        border: 0;
        box-shadow: none;
    }

    .public-shell-dropdown__menu a {
        white-space: normal;
    }

    .public-shell-footer__content {
        grid-template-columns: 1fr 1fr;
    }

    .public-shell-footer__social {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    :root {
        --public-shell-content-gutter: 1.25rem;
    }

    body.public-site-page:not(.public-home-v3) .public-content-section {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 1.25rem 1rem 1.35rem;
    }

    .public-content-section h1,
    .public-content-section .public-content-heading {
        font-size: 1.55rem;
    }

    .public-content-section h2 {
        font-size: 1.05rem;
    }

    .public-content-section h3 {
        font-size: 1.4rem;
    }

    .public-shell-footer {
        margin-top: 3rem;
    }

    .public-shell-footer__content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .public-shell-footer__social {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .public-shell-navbar__toggle {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-shell-navigation a::after,
    .public-shell-dropdown__toggle::after,
    .public-shell-footer__social a {
        transition: none;
    }
}
