/*
   TOM.COOL LOCAL NAVIGATION
   The hamburger always opens the current studio's real route map. The 9-dot
   control remains reserved for switching between studios.
*/
:root { --studio-header-height: 72px; }

/* The real tom.cool mark stays present in every studio header. The SVG is the
   primary asset; the existing PNG is a deliberate browser fallback. */
.tomcool-logo-mark {
    display: inline-grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    place-items: center;
    overflow: hidden;
}

.tomcool-logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.studio-local-nav-toggle {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--studio-toggle-border, rgba(255, 255, 255, .2));
    border-radius: 14px;
    color: var(--studio-toggle-ink, #fff);
    background: var(--studio-toggle-background, rgba(255, 255, 255, .08));
    box-shadow: var(--studio-toggle-shadow, inset 0 1px rgba(255, 255, 255, .1));
    cursor: pointer;
    place-content: center;
    gap: 5px;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.studio-local-nav-toggle:hover,
.studio-local-nav-toggle[aria-expanded="true"] {
    border-color: var(--studio-nav-accent, #a5b4fc);
    background: var(--studio-toggle-active-background, rgba(255, 255, 255, .15));
    transform: translateY(-1px);
}

.studio-local-nav-toggle:focus-visible,
.studio-local-nav a:focus-visible {
    outline: 2px solid var(--studio-nav-accent, #a5b4fc);
    outline-offset: 3px;
}

.studio-local-nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 4px;
    background: currentColor;
    transition: transform .2s ease;
}

.studio-local-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.studio-local-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.studio-local-nav {
    position: fixed;
    z-index: 3150;
    inset: var(--studio-header-height, 72px) 0 0;
    min-height: calc(100dvh - var(--studio-header-height, 72px));
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--studio-nav-ink, #fff);
    background:
        radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--studio-nav-accent, #a5b4fc) 22%, transparent), transparent 30%),
        var(--studio-nav-background, #11121d);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

.studio-local-nav[hidden] { display: none !important; }

.studio-local-nav__inner {
    width: min(100% - 32px, 38rem);
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(1.6rem, 7vw, 3rem) 0 max(2rem, env(safe-area-inset-bottom));
}

.studio-local-nav__eyebrow {
    margin: 0 0 1.3rem;
    color: var(--studio-nav-accent, #a5b4fc);
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.studio-local-nav__links { display: grid; border-top: 1px solid var(--studio-nav-line, rgba(255, 255, 255, .15)); }

.studio-local-nav__links a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem .1rem;
    border-bottom: 1px solid var(--studio-nav-line, rgba(255, 255, 255, .15));
    color: inherit;
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -.035em;
    text-decoration: none;
    transition: color .18s ease, padding .18s ease;
}

.studio-local-nav__links a::after { color: var(--studio-nav-accent, #a5b4fc); content: '↗'; font-size: .9em; font-weight: 500; }
.studio-local-nav__links a:hover,
.studio-local-nav__links a[aria-current="page"] { padding-inline: .6rem; color: var(--studio-nav-accent, #a5b4fc); }
.studio-local-nav__links a[aria-current="page"]::after { content: '•'; }

.studio-local-nav__cta {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    margin-top: 1.6rem;
    align-items: center;
    justify-content: center;
    padding: .8rem 1rem;
    border: 1px solid var(--studio-nav-accent, #a5b4fc);
    border-radius: 14px;
    color: var(--studio-nav-cta-ink, #10111a);
    background: var(--studio-nav-accent, #a5b4fc);
    font-size: .86rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.studio-local-nav__note { margin: 1.15rem 0 0; color: var(--studio-nav-muted, rgba(255, 255, 255, .62)); font-size: .78rem; line-height: 1.5; }
body.studio-local-nav-open { overflow: hidden; }

@media (max-width: 900px) {
    .studio-local-nav-toggle { display: grid !important; }
    body[data-studio] section[id] { scroll-margin-top: calc(var(--studio-header-height, 72px) + 18px); }
}

/* Do not let iOS zoom into a focused form field. This shared shell is used
   by the studio sites, so the safeguard belongs here instead of per page. */
@media (max-width: 760px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px;
    }
}

@media (min-width: 901px) {
    .studio-local-nav { display: none !important; }
}

/* design.tom.cool switches to its compact header earlier because its desktop
   navigation deliberately has more breathing room. */
@media (min-width: 901px) and (max-width: 1100px) {
    [data-studio-nav-layout="wide"] .studio-local-nav-toggle { display: grid !important; }
    [data-studio-nav-layout="wide"] .studio-local-nav:not([hidden]) { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
    .studio-local-nav-toggle,
    .studio-local-nav-toggle span,
    .studio-local-nav__links a { transition: none; }
}
