/* Global controls on the public commercial site. */
.c-site .c-menu-toggle[aria-expanded="true"] svg:first-child,
.c-site .c-menu-toggle[aria-expanded="false"] svg:last-child {
    display: none;
}

.c-nav-link[aria-expanded="true"] svg,
.c-technical-details[open] > summary svg {
    transform: rotate(180deg);
}

.c-site .c-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .25em;
}

.c-site .c-technical-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    list-style: none;
}

.c-technical-details summary::-webkit-details-marker { display: none; }
.c-site :is(.c-faq-list, .c-technical-details) summary svg { flex: 0 0 18px; width: 18px; height: 18px; }

.c-site .c-faq-list {
    --faq-inset: clamp(1rem, 1.7vw, 1.75rem);
    --faq-radius: .9rem;
    display: grid;
    align-content: start;
    gap: .625rem;
    min-width: 0;
}

.c-site .c-faq-list details {
    border: 1px solid #d4e0e8;
    border-radius: var(--faq-radius);
    background: #f8fbfd;
}

.c-site .c-faq-list details[open] {
    border-color: #a7c3d1;
    background: #f0f7f8;
}

.c-site .c-faq-list summary {
    min-height: 3.75rem;
    padding: 1rem var(--faq-inset);
    gap: 1rem;
    border-radius: calc(var(--faq-radius) - 1px);
    color: #102e40;
    line-height: 1.5;
}

.c-site .c-faq-list summary svg { color: #466678; }
.c-site .c-faq-list details[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }

.c-site .c-faq-list details > p {
    box-sizing: content-box;
    max-width: 72ch;
    margin: 0;
    padding: 0 var(--faq-inset) 1.3rem;
    color: #40586b;
    line-height: 1.65;
}

@media (hover: hover) {
    .c-site .c-faq-list summary:hover { background-color: #eaf2f6; }
}

.c-site :is(.c-header, .c-cookie, .c-footer, .c-work-controls) :is(a, button):focus-visible,
.c-site :is(.c-faq-list, .c-editorial-module, .c-technical-details) summary:focus-visible,
.c-site .c-whatsapp:focus-visible {
    outline: 3px solid #3633a7;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white;
}

.c-site .c-editorial-module summary:focus-visible {
    outline-color: #d9d7ff;
    box-shadow: none;
}

.c-site .c-footer-bottom :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; }
.c-site:has(.c-whatsapp) .c-footer-bottom { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

.c-site .c-whatsapp {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 52px;
    padding: .6rem 1.1rem;
    border: 1px solid #07553e;
    border-radius: 999px;
    color: white;
    background: #086746;
    box-shadow: 0 4px 14px #123b2e2b;
    font-size: .9375rem;
    font-weight: 620;
    line-height: 1.3;
    text-decoration: none;
}

.c-site .c-whatsapp svg { width: 26px; height: 26px; flex: none; }
.c-site .c-whatsapp span { display: inline; }
.c-site .c-whatsapp:hover { background: #09573c; }
.c-site .c-whatsapp:active { background: #074730; }
.c-site[data-cookie-visible="true"] .c-whatsapp { bottom: max(var(--c-cookie-obstruction), env(safe-area-inset-bottom)); }

@media (max-width: 1100px) {
    .c-site:has(.c-nav[data-open="true"]) .c-whatsapp { visibility: hidden; }
}

@media (max-width: 760px), (max-height: 480px) {
    .c-site .c-whatsapp {
        width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }
    .c-site .c-whatsapp span { display: none; }
    .c-site[data-cookie-visible="true"] .c-whatsapp { visibility: hidden; }
}

@media (max-width: 760px) {
    .c-site:has(.c-whatsapp) .c-footer-bottom { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .c-site :is(.c-nav-link, .c-faq-list summary, .c-technical-details summary) svg { transition: none; }
}

@media (forced-colors: active) {
    .c-site .c-whatsapp { border-color: LinkText; }
}
