/* Public footer: a clear invitation, grouped destinations and a quiet legal row. */
@media screen {
    html:root .public-portal footer.site-footer.site-footer--grouped {
        --footer-max: 1180px;
        --footer-bg: #fff9fd;
        --footer-card: #fff;
        --footer-line: #e8d3e3;
        --footer-copy: #685565;
        --footer-heading: #281625;
        --footer-accent: #a00079;
        --footer-wash: #f7d9ed;
        display: block;
        position: relative;
        margin: 0;
        padding: clamp(28px, 3vw, 64px) 0 18px;
        border-top: 1px solid var(--footer-line);
        background: radial-gradient(ellipse at 12% 0, #f7d9ed66, transparent 45%), var(--footer-bg);
        color: var(--footer-heading);
    }

    html[data-theme="dark"] .public-portal footer.site-footer.site-footer--grouped {
        --footer-bg: #140a14;
        --footer-card: #20101e;
        --footer-line: #4d2843;
        --footer-copy: #cbbac8;
        --footer-heading: #fff4fb;
        --footer-accent: #ff60d2;
        --footer-wash: #6d174e;
        background: radial-gradient(ellipse at 12% 0, #54163e40, transparent 48%), var(--footer-bg);
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .shell {
        width: min(calc(100% - 2 * clamp(16px, 3vw, 96px)), var(--footer-max));
        max-width: var(--footer-max);
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
        align-items: center;
        position: relative;
        isolation: isolate;
        gap: 36px;
        padding: clamp(26px, 2.5vw, 48px);
        margin-bottom: 32px;
        border: 1px solid var(--footer-line);
        border-radius: 28px;
        background: radial-gradient(ellipse at 88% 10%, var(--footer-wash), transparent 65%), var(--footer-card);
        box-shadow: 0 16px 48px #45052a0b, inset 0 1px #ffffff18;
        overflow: hidden;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-copy {
        min-width: 0;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation .eyebrow {
        margin: 0 0 14px;
        color: var(--footer-accent);
        font-size: clamp(12px, .5vw, 16px);
        font-weight: 750;
        letter-spacing: .15em;
        line-height: 1.5;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation h2 {
        max-width: 30ch;
        margin: 0 0 18px;
        color: var(--footer-heading);
        font-size: clamp(30px, 2.2vw, 42px);
        font-weight: 800;
        letter-spacing: -.035em;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation h2 em {
        color: var(--footer-accent);
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation p:not(.eyebrow) {
        max-width: 60ch;
        margin: 0;
        color: var(--footer-copy);
        font-size: 16px;
        line-height: 1.6;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-mark {
        display: block;
        position: absolute;
        inset: -30px 18% auto auto;
        color: var(--footer-accent);
        opacity: .07;
        transform: rotate(-13deg);
        pointer-events: none;
        z-index: 0;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-mark .portal-icon {
        width: clamp(200px, 17vw, 420px);
        height: auto;
        stroke-width: 1;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-actions {
        display: grid;
        align-items: stretch;
        justify-items: stretch;
        gap: 12px;
        min-width: 0;
        position: relative;
        z-index: 1;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-actions .button {
        display: flex;
        gap: 14px;
        justify-content: center;
        align-items: center;
        min-height: 56px;
        padding: 14px 18px;
        border: 1px solid #d52aad;
        border-radius: 14px;
        background: linear-gradient(135deg, #d4099e, #970076);
        box-shadow: 0 8px 22px #b4007828, inset 0 1px #ffffff30;
        color: #fff;
        font-size: 16px;
        font-weight: 750;
        line-height: 1.4;
        text-decoration: none;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-business {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 64px;
        padding: 12px 14px;
        border: 1px solid var(--footer-line);
        border-radius: 14px;
        background: var(--footer-card);
        color: var(--footer-heading);
        text-align: center;
        text-decoration: none;
        line-height: 1.4;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-business span { color: var(--footer-copy); font-size: 13px; }
    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-business strong { color: var(--footer-heading); font-size: 14px; font-weight: 650; }

    html:root .public-portal footer.site-footer.site-footer--grouped .footer-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: clamp(18px, 2vw, 40px);
        padding-block: 0 32px;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .footer-brand {
        display: block;
        grid-column: auto;
        min-width: 0;
        padding: 22px 0;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .site-original-logo { width: clamp(220px, 16vw, 280px); }
    html:root .public-portal footer.site-footer.site-footer--grouped .footer-brand > p { margin-top: 22px; max-width: 30ch; color: var(--footer-copy); font-size: 16px; line-height: 1.7; }

    html:root .public-portal footer.site-footer.site-footer--grouped .footer-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 24px clamp(16px, 1.5vw, 28px);
        border: 1px solid var(--footer-line);
        border-radius: 18px;
        background: var(--footer-card);
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .footer-group h2 {
        margin: 0 0 14px;
        color: var(--footer-heading);
        font-size: 17px;
        font-weight: 750;
        line-height: 1.4;
        letter-spacing: -.015em;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .footer-group > a {
        display: flex;
        align-items: center;
        min-height: 38px;
        margin: 0;
        padding: 6px 0;
        color: var(--footer-copy);
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: anywhere;
        text-decoration: none;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped :is(.footer-group > a, .footer-meta a):hover {
        color: var(--footer-accent);
        text-decoration: underline;
        text-underline-offset: 5px;
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-actions > a:hover { border-color: var(--footer-accent); }
    html:root .public-portal footer.site-footer.site-footer--grouped a:focus-visible { outline: 3px solid var(--footer-accent); outline-offset: 4px; }

    html:root .public-portal footer.site-footer.site-footer--grouped .footer-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px 24px;
        padding-block: 20px 0;
        border-top: 1px solid var(--footer-line);
        color: var(--footer-copy);
    }

    html:root .public-portal footer.site-footer.site-footer--grouped .footer-meta p { margin: 0; color: var(--footer-copy); font-size: 14px; line-height: 1.6; }
    html:root .public-portal footer.site-footer.site-footer--grouped .footer-meta p span { display: inline; }
    html:root .public-portal footer.site-footer.site-footer--grouped .footer-meta nav { gap: 8px 24px; font-size: 14px; }
    html:root .public-portal footer.site-footer.site-footer--grouped .footer-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--footer-copy); font-size: 14px; }

    @media (min-width: 1600px) {
        html:root .public-portal footer.site-footer.site-footer--grouped { --footer-max: 3520px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation { grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); padding: clamp(40px, 2vw, 64px); margin-bottom: 40px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation h2 { font-size: clamp(42px, 1.7vw, 64px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation p:not(.eyebrow) { font-size: clamp(17px, .6vw, 22px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-actions .button { min-height: 64px; font-size: clamp(18px, .6vw, 22px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-business { min-height: 76px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-business span { font-size: clamp(14px, .45vw, 17px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-business strong { font-size: clamp(16px, .5vw, 19px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-grid { padding-bottom: 40px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-group { padding: clamp(28px, 1vw, 40px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-group h2 { font-size: clamp(20px, .7vw, 26px); margin-bottom: 20px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-group > a { font-size: clamp(17px, .6vw, 22px); min-height: 44px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .site-original-logo { width: clamp(280px, 10vw, 360px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-brand > p { font-size: clamp(17px, .6vw, 22px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-meta :is(p, a) { font-size: clamp(14px, .5vw, 18px); }
    }

    @media (max-width: 1000px) {
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 4px 0; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-brand > p { margin: 0; }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
    }

    @media (max-width: 700px) {
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; border-radius: 22px; margin-bottom: 24px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-invitation h2 { font-size: clamp(27px, 5vw, 34px); }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-mark { display: none; }
        html:root .public-portal footer.site-footer.site-footer--grouped .portal-footer-actions { width: 100%; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-brand { display: block; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-brand > p { margin-top: 16px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-group > a { min-height: 44px; }
    }

    @media (max-width: 480px) {
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-grid { grid-template-columns: minmax(0, 1fr); }
        html:root .public-portal footer.site-footer.site-footer--grouped .footer-group { padding: 20px; }
    }
}
