.skip {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 200;
    padding: 12px 16px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--r);
}
.skip:focus {
    top: 16px;
}
#content:focus {
    outline: none;
}
/* Navigation */
#nav {
    --logo: 52px;
    --logo-big: clamp(64px, calc((100vw - 1100px) / 4.1), 100px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg);
    color: var(--ink);
    padding: 16px 0;
    box-shadow: 0 1px 0 var(--line);
    transition: background .25s, color .25s, padding .25s, box-shadow .25s;
}
#nav.over {
    position: fixed;
    background: transparent;
    color: #fff;
    padding: 24px 0;
    box-shadow: none;
}
#nav.over.solid {
    background: var(--bg);
    color: var(--ink);
    padding: 16px 0;
    box-shadow: 0 1px 0 var(--line);
}
/* Logo far left, links far right. On photo-hero pages (nav "over") the logo starts big and shrinks on scroll; nothing moves sideways. */
#nav .wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
    min-height: var(--logo);
    transition: min-height .25s;
}
#nav.over:not(.solid) .wrap {
    min-height: var(--logo-big);
}
#nav .logo {
    position: absolute;
    top: 0;
    left: 32px;
    display: block;
    height: var(--logo);
    transition: height .25s, top .25s;
}
#nav.over:not(.solid) .logo {
    height: var(--logo-big);
}
#nav .logo img {
    display: block;
    height: 100%;
    width: auto;
    transition: opacity .25s;
}
#nav .logo-light {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
#nav.over:not(.solid) .logo-dark {
    opacity: 0;
}
#nav.over:not(.solid) .logo-light {
    opacity: 1;
}
#nav .right {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}
/* Two right-aligned rows: the site links, then the treatments, which take the phone number when the bar drops it */
#nav .links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}
#nav .links .row {
    display: flex;
    gap: 22px;
}
#nav .links .row.treat {
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--accent);
}
#nav.over:not(.solid) .links .row.treat {
    color: #fff;
}
#nav.over:not(.solid) .links .row.treat a {
    opacity: .85;
}
#nav .links a {
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
}
#nav .links .row.treat a {
    padding-bottom: 1px;
}
#nav .links a.on,
#nav .links a:hover {
    border-color: currentColor;
}
#nav .links .phone2 {
    display: none;
    color: var(--ink);
}
#nav.over:not(.solid) .links .row.treat .phone2 {
    color: #fff;
    opacity: 1;
}
#nav .phone {
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
}
#nav .phone-ico {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: inherit;
}
.burger {
    display: none;
    width: 28px;
    height: 20px;
    padding: 0;
    background: none;
    border: 0;
    border-top: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    position: relative;
    color: inherit;
    cursor: pointer;
}
.burger:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin-top: -1.25px;
    border-top: 2.5px solid currentColor;
}

/* Below 1360px the phone number leaves the bar and the links step down to fit beside the big logo. */
@media (max-width: 1359px) {
    #nav {
        --logo-big: clamp(48px, calc((100vw - 880px) / 4.1), 100px);
    }
    #nav .phone {
        display: none;
    }
    #nav .right {
        gap: 20px;
    }
    #nav .links {
        font-size: 13px;
    }
    #nav .links .row {
        gap: 18px;
    }
    #nav .links .row.treat {
        font-size: 11.5px;
    }
    #nav .links .phone2 {
        display: inline;
        font-size: 13px;
        letter-spacing: .02em;
        margin-left: 6px;
    }
}
/* 981 to 1140: about 55px between the big logo and the links */
@media (max-width: 1140px) {
    #nav {
        --logo-big: clamp(44px, calc((100vw - 795px) / 4.1), 100px);
    }
    #nav .links {
        font-size: 12px;
        letter-spacing: .05em;
    }
    #nav .links .row {
        gap: 12px;
    }
    #nav .links .row.treat {
        font-size: 11px;
        letter-spacing: .06em;
    }
    #nav .links .phone2 {
        font-size: 12px;
        margin-left: 4px;
    }
}
