.site-footer {
    --footer-text: #d3dceb;
    --footer-rule: #ffffff29;
    color: #fff;
    background: linear-gradient(115deg, #12213e, #0b172c 70%, #111a30);
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 calc(5rem + env(safe-area-inset-bottom));
    border-top: 3px solid #a92e3b;
}

.footer-shell {
    width: min(90rem, calc(100% - 3rem));
    margin-inline: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr 1.2fr 1fr;
}

.footer-grid > * {
    min-width: 0;
    padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

.footer-grid > :first-child {
    padding-left: 0;
}

.footer-grid > :last-child {
    padding-right: 0;
}

.footer-grid > * + * {
    border-left: 1px solid var(--footer-rule);
}

.footer-brand {
    display: inline-block;
    margin-bottom: .9rem;
    text-decoration: none;
}

.footer-brand img {
    width: min(100%, 13rem);
    height: auto;
}

.footer-identity p {
    max-width: 33ch;
    color: var(--footer-text);
}

.footer-identity .footer-coverage {
    color: var(--accent);
    font-size: .86rem;
    font-weight: 700;
}

.footer-column h2 {
    font-size: .85rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-column h2::after {
    display: block;
    width: 1.8rem;
    height: 2px;
    margin-top: .65rem;
    background: var(--accent);
    content: "";
}

.footer-links {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    gap: .55rem;
    align-items: baseline;
}

.footer-links a::before {
    content: "›" / "";
    color: var(--accent);
}

.footer-links a,
.footer-details a,
.footer-legal a {
    color: var(--footer-text);
    text-decoration: none;
}

.footer-links a:hover,
.footer-details a:hover,
.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-quote {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.2rem;
    padding: .6rem .8rem;
    border-radius: .35rem;
    background: #a92e3b;
    color: #fff;
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
}

.footer-quote:hover {
    background: #892532;
}

.footer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    margin: clamp(1.5rem, 4vw, 3rem) 0 0;
    border-block: 1px solid var(--footer-rule);
}

.footer-details > div {
    min-width: 0;
    padding: 1rem;
    text-align: center;
}

.footer-details dt {
    margin-bottom: .25rem;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-details dd {
    margin: 0;
    color: var(--footer-text);
    overflow-wrap: anywhere;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
    padding-top: 1.15rem;
    color: var(--footer-text);
    font-size: .82rem;
}

.footer-legal p {
    margin: 0;
}

.footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.1rem;
}

.site-footer a:focus-visible {
    outline-color: var(--accent);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.5rem;
    }

    .footer-grid > :nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .footer-grid > :nth-child(even) {
        padding-right: 0;
    }
}

@media (max-width: 560px) {
    .footer-shell {
        width: calc(100% - 2rem);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .footer-grid > * {
        padding: 1rem 0;
    }

    .footer-grid > * + * {
        border-left: 0;
        border-top: 1px solid var(--footer-rule);
    }

    .footer-details > div {
        padding-inline: 0;
        text-align: left;
    }
}

.float-actions{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:6;display:flex;gap:.5rem}
.quick-action{padding:.55rem .8rem;border:1px solid #242424;border-radius:.4rem;background:#12213e;color:#fff;text-decoration:none;font-weight:700}
.quick-action-chat {
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    padding: 0;
    border-color: transparent;
    border-radius: 50%;
    color: #12213e;
    background: var(--accent);
}

.quick-action-chat:hover {
    background: #fac0c3;
}
.quick-action-top {
    position: absolute;
    right: 0;
    bottom: calc(100% + .5rem);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.quick-action-top svg {
    color: var(--accent);
}

.quick-action-top:hover {
    background: #203451;
}

.assistant{width:min(28rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:1rem;border:1px solid var(--line);border-radius:.65rem;color:var(--ink);background:#fff}
.assistant::backdrop{background:#1a1918aa}
.assistant-header,.assistant-form{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.assistant-header h2{font-size:1.4rem;margin:0}
.assistant button{background:var(--paper);border:1px solid var(--line);border-radius:.35rem;padding:.3rem .55rem}
.assistant-log{overflow:auto;max-height:min(44dvh,20rem);padding:.75rem 0;overflow-wrap:anywhere}
.assistant-log p{padding:.45rem .6rem;background:var(--paper);border-radius:.3rem}
.assistant-log .question{background:#f6e5cc}
.assistant-prompts{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.65rem}
.assistant-form input{width:100%;min-width:0;border:1px solid var(--line);padding:.35rem .5rem}
