/* The mobile menu keeps the site's paper, fine rules and pink accents. */
.sp-mobile-menu:not([open]) { display: none; }
.sp-mobile-menu {
    --sp-menu-gutter: clamp(24px, 5vw, 48px);
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--sp-paper);
    color: var(--sp-ink);
    overflow: hidden;
    overscroll-behavior: contain;
}
.sp-mobile-menu[open] { display: flex; flex-direction: column; }
.sp-mobile-menu::backdrop { background: #2c1b294d; }
.sp-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 20px;
    min-height: 84px;
    padding: max(16px, env(safe-area-inset-top)) var(--sp-menu-gutter) 16px;
    border-bottom: 1px solid var(--sp-line);
}
.sp-mobile-brand { display: block; flex: 0 1 205px; }
.sp-mobile-brand img { display: block; width: 100%; height: auto; }
.sp-mobile-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid var(--sp-line);
    border-radius: 50%;
    background: white;
    color: var(--sp-ink);
    transition: background-color 240ms ease, color 240ms ease;
}
.sp-mobile-close:hover, .sp-mobile-close:focus-visible { background: var(--sp-pink); color: var(--sp-accent); }
.sp-mobile-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; overflow: clip; }
.sp-mobile-panel {
    position: absolute;
    inset: 0;
    padding: 18px var(--sp-menu-gutter) 28px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #ead8e2 transparent;
    visibility: hidden;
    background: var(--sp-paper);
}
.sp-mobile-panel.is-current, .sp-mobile-panel.is-leaving { visibility: visible; }
.sp-mobile-panel.is-leaving { pointer-events: none; }
.sp-mobile-panel.is-root { padding-top: clamp(28px, 5vh, 48px); }
.sp-mobile-title { margin: 12px 0 24px; font-size: clamp(1.8rem, 5vw, 2.25rem); line-height: 1.22; text-wrap: balance; }
.sp-mobile-title:focus { outline: none; }
.sp-mobile-back {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% + 8px);
    min-height: 44px;
    margin-left: -8px;
    padding: 0 8px;
    border: 0;
    background: var(--sp-paper);
    box-shadow: 0 -18px 0 0 var(--sp-paper);
    color: var(--sp-muted);
    font-size: .875rem;
    font-weight: 500;
}
.sp-mobile-back:hover { color: var(--sp-accent); }
.sp-mobile-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--sp-line); }
.sp-mobile-links li { border-bottom: 1px solid var(--sp-line); }
.sp-mobile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 70px;
    padding: 16px 0;
    border: 0;
    background: transparent;
    color: var(--sp-ink);
    text-align: left;
    font-family: var(--sp-font-heading);
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.025em;
    transition: color 220ms ease;
}
.is-root .sp-mobile-link { min-height: 84px; font-size: clamp(1.6rem, 6vw, 2rem); }
.sp-mobile-link[aria-current="page"], .sp-mobile-link:hover, .sp-mobile-link:focus-visible { color: var(--sp-accent); }
.sp-mobile-arrow { position: relative; display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; color: var(--sp-accent); }
.sp-mobile-arrow::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--sp-pink); transition: transform 360ms cubic-bezier(.2,.7,.3,1) 50ms, background-color 220ms ease; }
.sp-mobile-arrow svg { position: relative; transition: transform 240ms cubic-bezier(.2,.7,.3,1); }
.sp-mobile-back .sp-mobile-arrow { width: 22px; flex-basis: 22px; color: currentColor; transform: rotate(180deg); }
.sp-mobile-back .sp-mobile-arrow::before { display: none; }
.sp-mobile-overview { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin: -12px 0 22px; font-size: .875rem; font-weight: 600; }
.sp-mobile-overview .sp-mobile-arrow { width: 24px; flex-basis: 24px; }
.sp-mobile-overview .sp-mobile-arrow::before { display: none; }
.sp-mobile-footer {
    flex: 0 0 auto;
    padding: 20px var(--sp-menu-gutter) max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(160deg, #fcf2f7, #faf7f9);
    border-top: 1px solid var(--sp-line);
}
.sp-mobile-cta { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 9px 20px; width: 100%; }
.sp-mobile-cta .sp-mobile-arrow { color: white; }
.sp-mobile-cta .sp-mobile-arrow::before { background: #ffffff18; }
.sp-mobile-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: 8px; }
.sp-mobile-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sp-muted); font-size: .8rem; }
.sp-mobile-contact a:hover { color: var(--sp-accent); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    :is(.sp-mobile-link, .sp-mobile-overview, .sp-mobile-cta):hover .sp-mobile-arrow svg { transform: translateX(3px); }
    :is(.sp-mobile-link, .sp-mobile-cta):hover .sp-mobile-arrow::before { transform: translateX(3px); }
}
@media (max-height: 600px) {
    .sp-mobile-bar { min-height: 64px; padding-block: 10px; }
    .sp-mobile-footer { padding-block: 10px max(10px, env(safe-area-inset-bottom)); }
    .sp-mobile-contact { display: none; }
    .sp-mobile-panel.is-root { padding-top: 14px; }
    .sp-mobile-title { margin-block: 8px 18px; }
    .is-root .sp-mobile-link { min-height: 66px; }
}
