/* The search shares Astra's identity row on both sides of its own breakpoint. */
#masthead [data-section="title_tagline"]:has(.aa-nav-lookup) { gap: clamp(.6rem, 1.5vw, 1.5rem); }
#masthead .aa-nav-lookup { display: flex; align-items: center; }
#masthead .aa-nav-search {
    display: flex; align-items: center; gap: 0;
    width: clamp(14rem, 17.5vw, 17.5rem); margin: 0; padding: 0;
    background: #f7f5fa; border: 1px solid #c9c2d3; border-radius: .65rem;
}
#masthead .aa-nav-search:focus-within { border-color: #5023bc; }
#masthead .aa-nav-search label { flex: 1; min-width: 0; margin: 0; }
#masthead .aa-nav-search input[type="search"] {
    display: block; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: .5rem 0 .5rem .85rem;
    height: 44px; color: #21182f; font: inherit; font-size: .91rem; background: transparent; border: 0; border-radius: .5rem;
}
#masthead .aa-nav-search input::placeholder { color: #584e64; opacity: 1; }
#masthead .aa-nav-search button, #masthead .aa-nav-disclosure summary {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px;
    margin: 0; padding: 0; line-height: 1; background: transparent; color: #421d96; border: 0; border-radius: .55rem; cursor: pointer;
}
#masthead .aa-nav-disclosure summary { list-style: none; }
#masthead .aa-nav-disclosure summary::-webkit-details-marker { display: none; }
#masthead .aa-nav-disclosure[open] summary, #masthead .aa-nav-search button:hover,
#masthead .aa-nav-disclosure summary:hover { background: #eee8fc; }
#masthead .aa-nav-disclosure { position: relative; }
#masthead .aa-nav-disclosure .aa-nav-search {
    position: absolute; z-index: 10; top: calc(100% + .35rem); left: 0;
    background: white; width: min(19rem, calc(100vw - 2rem)); box-shadow: 0 10px 25px #24123926;
}
#masthead .aa-nav-lookup > .aa-nav-search { display: none; }
#masthead:has(.aa-nav-disclosure[open]) { z-index: 99; }
#masthead #ast-mobile-header [data-section="title_tagline"] { width: 100%; justify-content: space-between; }
#masthead #ast-mobile-header .site-header-primary-section-left { flex: 1; }
#masthead #ast-mobile-header .ast-builder-grid-row:has(.aa-nav-lookup) { grid-template-columns: minmax(0,1fr) auto; }
#masthead #ast-mobile-header .aa-nav-disclosure .aa-nav-search { left: auto; right: -2.75rem; }
@media (min-width: 78.125rem) {
    #masthead #ast-desktop-header .aa-nav-lookup > .aa-nav-search { display: flex; }
    #masthead #ast-desktop-header .aa-nav-disclosure { display: none; }
    #masthead #ast-desktop-header .ast-builder-grid-row:has(.aa-nav-lookup) {
        grid-template-columns: minmax(max-content, 1fr) auto auto;
        column-gap: clamp(.65rem, 1.35vw, 1.5rem);
    }
}

.aa-site-active .aa-home-v4 .aa-editorial-intro {
    display: block; max-width: 38rem;
    padding-block: clamp(2rem, 4.6vw, 4.5rem);
}
.aa-site-active .aa-home-v4 .aa-editorial-intro #aa-start-title {
    max-width: 12ch; margin: 0; line-height: 1.02; letter-spacing: -.04em; font-size: clamp(2.7rem, 5.5vw, 5.15rem);
}
.aa-site-active .aa-editorial-intro h1 em { display: block; width: fit-content; max-width: 100%; color: #dccaff; font-style: normal; }
.aa-site-active .aa-home-v4 .aa-editorial-intro p {
    max-width: 39ch; margin: clamp(.9rem, 1.8vw, 1.45rem) 0 0;
    color: #f0e9fc; font-size: clamp(1rem, 1.3vw, 1.22rem); line-height: 1.52;
}
.aa-site-active .aa-intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.3rem; margin-top: clamp(1.1rem, 2vw, 1.7rem); }
.aa-site-active .aa-intro-links a { display: inline-flex; gap: .75rem; min-height: 46px; align-items: center; font-weight: 650; font-size: .98rem; }
.aa-site-active .aa-intro-links .aa-intro-primary {
    padding: .65rem 1.05rem; border-radius: .5rem; background: #fff; color: #3d1c74; text-decoration: none;
}
.aa-site-active .aa-intro-links .aa-intro-primary:hover { background: #ece3fc; color: #301362; }
.aa-site-active .aa-intro-links .aa-intro-advice { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.aa-site-active .aa-intro-links a:focus-visible { outline: 3px solid white !important; outline-offset: 4px; }
@media (min-width: 44rem) and (max-width: 55.99rem) and (min-height: 32.01rem) {
    .aa-site-active .aa-home-v4 .aa-editorial-intro { max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
    .aa-site-active .aa-home-v4 .aa-editorial-intro p { margin-top: 0; }
    .aa-site-active .aa-home-v4 .aa-editorial-intro .aa-intro-links { grid-column: 2; margin-top: .6rem; }
}
@media (max-width: 43.99rem) {
    .aa-site-active .aa-home-v4 .aa-editorial-intro { padding-block: 1.7rem 1.35rem; }
    .aa-site-active .aa-intro-links a { font-size: .92rem; }
    .aa-site-active .aa-intro-links { column-gap: .85rem; }
}

/* Brand marks keep their outlines and share one quiet surface. */
.aa-site-active .aa-home-v4 .aa-home-partners { background: #f6f5f7; border: 0; }
.aa-site-active .aa-home-v4 .aa-partners-heading h2 { color: #4e4759; font-size: clamp(1.05rem, 1.5vw, 1.32rem); }
.aa-site-active .aa-home-v4 .aa-partners-track li {
    background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0;
}
.aa-site-active .aa-home-v4 .aa-partners-track img {
    mix-blend-mode: multiply; filter: grayscale(1); opacity: .8;
}
.aa-site-active .aa-home-v4 .aa-partners-track li:hover img,
.aa-site-active .aa-home-v4 .aa-partners-viewport:focus-visible img { filter: grayscale(0); opacity: 1; }
.aa-site-active .aa-editorial-reviews { background: #fff; color: #221a2d; padding-block: clamp(2.25rem, 5vw, 4.5rem); }
.aa-site-active .aa-editorial-reviews h2 { margin: 0 0 1.3rem; font-size: clamp(1.65rem, 3.4vw, 3rem); }
.aa-site-active .aa-review-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; }
.aa-site-active .aa-review-list figure {
    display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; margin: 0; max-width: 43rem;
    padding: clamp(1.2rem, 2.2vw, 2rem); background: #f4f0fa; border-radius: .8rem;
}
.aa-site-active .aa-review-list blockquote { margin: 0; padding: 0; border: 0; }
.aa-site-active .aa-review-list blockquote p { margin: 0; color: #2b2038; font-size: 1.12rem; line-height: 1.55; overflow-wrap: anywhere; }
.aa-site-active .aa-review-list figcaption { display: grid; gap: .25rem; overflow-wrap: anywhere; }
.aa-site-active .aa-review-list figcaption a { color: #5023bc; text-underline-offset: .18em; }

@media (prefers-reduced-motion: no-preference) {
    .aa-site-active #content .aa-editorial-intro h1 em { animation: aa-intro-word 580ms cubic-bezier(.15,.75,.2,1) both !important; }
    .aa-site-active #content .aa-home-v4 .aa-discovery-hero-photo img { animation: aa-intro-photo 720ms cubic-bezier(.15,.75,.2,1) both !important; }
    .aa-site-active #content .aa-intro-links .aa-intro-primary svg { transition: translate 160ms ease-out !important; }
    .aa-site-active .aa-intro-primary:is(:hover,:focus-visible) svg { translate: 3px 0; }
    .aa-site-active #content .aa-partners-track img { transition: filter 180ms ease-out, opacity 180ms ease-out !important; }
    @keyframes aa-intro-word { from { opacity: .72; translate: 0 .19em; } to { opacity: 1; translate: 0 0; } }
    @keyframes aa-intro-photo { from { scale: 1.055; } to { scale: 1; } }
}

/* Astra lets the branding component grow to a full line on small screens. */
#masthead #ast-mobile-header [data-section="title_tagline"]:has(.aa-nav-lookup) {
    flex-flow: row nowrap;
    align-items: center;
    min-width: 0;
}
#masthead #ast-mobile-header [data-section="title_tagline"] > .site-branding {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
}
#masthead #ast-mobile-header .aa-nav-lookup { flex: 0 0 auto; }
#masthead #ast-mobile-header .aa-nav-disclosure { position: static; }
#masthead #ast-mobile-header .aa-nav-disclosure .aa-nav-search {
    inset: 100% var(--aa-parcours-gutter, 1rem) auto auto;
    width: min(20rem, calc(100% - 2 * var(--aa-parcours-gutter, 1rem)));
}
