/* Skip link for keyboard and screen-reader users (WCAG 2.4.1). Hidden until it receives
   keyboard focus, then overlaid in the top-left corner above every fixed bar in Planner
   (highest existing z-index is the workflow tooltip at 1070). Bootstrap sr-only-focusable is
   not used: it is missing from the legacy layout, and its focused state is position: static,
   which would push the page down instead of overlaying it. */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    transition: none;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    width: auto;
    height: auto;
    max-width: calc(100vw - 2rem);
    margin: 0.5rem;
    padding: 0.75rem 1rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    opacity: 1;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 2px solid #212529;
    text-decoration: underline;
    outline: 2px solid #00b7f7;
    outline-offset: 2px;
}

/* The target is focused programmatically through the fragment; a focus ring around the whole
   content area adds nothing. The scroll margin keeps the content from sliding under the 60px
   fixed navigation bars. */
#main-content {
    scroll-margin-top: 60px;
}

#main-content:focus {
    outline: none;
}
