/* Mark real Binti links, including links inserted later, without changing their
 * labels, destinations or click behavior. The slash fixes the hostname boundary.
 * An empty masked pseudo-element is decorative and never becomes spoken text.
 * Continue is included before its destination is copied from the clicked link. */
a[href^="https://family.binti.com/" i]::after,
a[href^="//family.binti.com/" i]::after,
a[data-binti-continue]::after {
    content: "";
    display: inline-block;
    position: static;
    width: .9em;
    height: .9em;
    margin-inline-start: .4em;
    flex: 0 0 .9em;
    vertical-align: -.08em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}

/* Scoped dialog styling deliberately avoids the site's campaign popup selectors. */
html.gs-binti-popup-open { overflow: hidden; }
dialog.gs-binti-popup:not([open]) { display: none; }
dialog.gs-binti-popup {
    box-sizing: border-box;
    width: min(560px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #dedfdc;
    border-radius: 18px;
    color: #404041;
    background: #fff;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
    box-shadow: 0 18px 70px rgb(0 0 0 / 20%);
}
.gs-binti-popup::backdrop { background: rgb(9 21 58 / 64%); }
.gs-binti-popup .gs-binti-popup__panel { position: relative; padding: 38px; }
.gs-binti-popup .gs-binti-popup__logo {
    display: block; width: auto; height: auto; max-width: min(240px, 80%);
    max-height: 88px; margin: 0 0 26px; object-fit: contain; object-position: left;
}
.gs-binti-popup .gs-binti-popup__title {
    margin: 0 0 14px; padding: 0; color: #112257; font: inherit;
    font-size: clamp(26px, 5vw, 32px); font-weight: 700; line-height: 1.2;
    letter-spacing: -.02em; text-transform: none; overflow-wrap: anywhere;
}
.gs-binti-popup .gs-binti-popup__message p { margin: 0 0 14px; font: inherit; }
.gs-binti-popup .gs-binti-popup__new-tab { margin: 4px 0 24px; color: #555e6e; font-size: 14px; overflow-wrap: anywhere; }
.gs-binti-popup .gs-binti-popup__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gs-binti-popup .gs-binti-popup__continue,
.gs-binti-popup .gs-binti-popup__stay {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; flex: 1 1 185px; padding: 12px 18px; margin: 0;
    border: 2px solid #112257; border-radius: 999px; box-shadow: none;
    font: inherit; font-size: 16px; font-weight: 700; line-height: 1.35;
    text-decoration: none; text-transform: none; text-align: center;
    white-space: normal; overflow-wrap: anywhere; cursor: pointer;
}
.gs-binti-popup a.gs-binti-popup__continue { color: #fff; background: #112257; }
.gs-binti-popup a.gs-binti-popup__continue:hover { color: #fff; background: #263a71; }
.gs-binti-popup button.gs-binti-popup__stay { color: #112257; background: #fff; }
.gs-binti-popup button.gs-binti-popup__stay:hover { color: #112257; background: #f5f3ee; }
.gs-binti-popup .gs-binti-popup__privacy {
    margin-top: 22px; padding-top: 18px; border-top: 1px solid #e5e5df;
    color: #575c64; font-size: 14px; font-style: italic; line-height: 1.55; overflow-wrap: anywhere;
}
.gs-binti-popup .gs-binti-popup__privacy p { margin: 0; font: inherit; }
.gs-binti-popup button.gs-binti-popup__close {
    position: absolute; top: 8px; right: 8px; display: grid; place-items: center;
    width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: #112257;
    font: inherit; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: none;
}
.gs-binti-popup button.gs-binti-popup__close:hover { background: #f3f3f0; }
.gs-binti-popup :focus-visible { outline: 3px solid #926c15; outline-offset: 4px; }
.gs-binti-popup .gs-binti-popup__title:focus { outline: none; }
.gs-binti-popup [hidden] { display: none !important; }
@media (max-width: 480px) {
    .gs-binti-popup .gs-binti-popup__panel { padding: 30px 22px 24px; }
    .gs-binti-popup .gs-binti-popup__actions { flex-direction: column; }
    .gs-binti-popup .gs-binti-popup__continue,
    .gs-binti-popup .gs-binti-popup__stay { flex: none; width: 100%; }
}
/* No entrance animation: reduced-motion users receive the same stable handoff. */
