/* The app shell owns its reset; no Blocksy wrapper/chrome is generated. */
html:has(body.ms-frontend-shell),
body.ms-frontend-shell {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

body.ms-frontend-shell {
    color: #111;
    font-family: var(--ms-font-family-frontend);
    font-size: 1rem;
    font-weight: var(--ms-weight-body);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.ms-frontend-shell *,
.ms-frontend-shell *::before,
.ms-frontend-shell *::after {
    box-sizing: border-box;
}

.ms-frontend-shell #main-container,
.ms-frontend-shell #main {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.ms-frontend-shell :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, form) {
    margin: 0;
}

.ms-frontend-shell :where(h1) { font-weight: var(--ms-weight-heading); }
.ms-frontend-shell :where(h2, h3, h4, h5, h6) { font-weight: var(--ms-weight-section); }

.ms-frontend-shell :where(ul, ol) {
    padding: 0;
    list-style: none;
}

.ms-frontend-shell :where(a) {
    color: inherit;
    text-decoration: none;
}

.ms-frontend-shell :where(button, input, select, textarea) {
    margin: 0;
    font: inherit;
    color: inherit;
}

.ms-frontend-shell button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.ms-frontend-shell button:disabled {
    cursor: default;
}

.ms-frontend-shell :where(img, video, canvas) {
    max-width: 100%;
    vertical-align: middle;
}

/* Browser hidden semantics must survive component display:flex/grid rules. */
.ms-frontend-shell [hidden] {
    display: none !important;
}

/* Keep accessible labels/skip links available without taking layout space. */
.ms-frontend-shell .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    word-wrap: normal;
}

.ms-frontend-shell .screen-reader-text:focus {
    display: block;
    top: 5px;
    left: 5px;
    z-index: 100000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: #111;
    background: #fff;
    box-shadow: 0 0 0 2px #111;
    white-space: normal;
}
