:root {
    color-scheme: dark;
    --top: 48px;
    --ink: #fff;
    --header-bg: #100926;
    --panel-bg: #19122c;
}
* {
    box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
figure,
ul,
ol {
    margin: 0;
}
body {
    color: var(--ink);
    background: var(--header-bg);
    font:
        14px/1.45 Arial,
        sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
}
img,
video,
canvas {
    display: block;
    max-width: 100%;
}
[hidden] {
    display: none !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #e8fffb;
    outline-offset: 4px;
}
.topbar {
    position: fixed;
    z-index: 30;
    inset: 0 0 auto;
    height: var(--top);
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 0 15px;
    background: var(--header-bg);
    border-bottom: 1px solid #ffffff13;
}
.topbar .home {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.edition-label {
    opacity: 0.68;
}
.bag {
    width: 15px;
    height: 15px;
    clip-path: polygon(11% 21%, 35% 18%, 36% 5%, 52% 0%, 70% 5%, 72% 16%, 90% 13%, 100% 94%, 11% 100%, 0% 91%);
    background: #fff;
    color: var(--header-bg);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 10px;
}
.topbar button {
    border: 0;
    background: transparent;
    padding: 7px 2px;
}
.topbar button:hover,
.topbar .shop:hover {
    opacity: 0.72;
}
.topbar .right {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    white-space: nowrap;
}
.topbar .primary {
    padding: 7px 15px;
    color: #101020;
    background: #fff;
    border-radius: 20px;
}
.topbar details {
    position: relative;
}
.topbar summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
}
.topbar summary::after {
    content: "";
    width: 6px;
    height: 6px;
    transform: rotate(45deg) translateY(-2px);
    border-right: 1px solid;
    border-bottom: 1px solid;
}
.topbar summary::-webkit-details-marker {
    display: none;
}
.edition-menu {
    position: absolute;
    left: -10px;
    top: 32px;
    width: 230px;
    background: var(--panel-bg);
    padding: 8px;
    border: 1px solid #ffffff32;
    border-radius: 6px;
}
.edition-menu a {
    display: block;
    padding: 10px;
}
.edition-menu a:hover,
.edition-menu a[aria-current] {
    background: #ffffff20;
}
.topbar .mobile-search {
    display: none;
}
.search-icon {
    width: 9px;
    height: 9px;
    display: inline-block;
    border: 1px solid;
    border-radius: 50%;
    position: relative;
    margin: 0 4px 1px 4px;
}
.search-icon::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 1px;
    right: -3px;
    bottom: -1px;
    background: currentColor;
    transform: rotate(48deg);
}
.search-dialog {
    width: min(560px, calc(100% - 32px));
    max-height: 70vh;
    top: 10vh;
    margin: 0 auto;
    padding: 14px;
    color: #fff;
    background: var(--panel-bg);
    border: 1px solid #ffffff50;
    border-radius: 9px;
}
.search-dialog::backdrop {
    background: #030516c0;
}
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input {
    min-width: 0;
    flex: 1;
    padding: 10px;
    background: #ffffff10;
    border: 1px solid #ffffff35;
    border-radius: 4px;
}
.search-form button {
    background: #ffffff16;
    border: 1px solid #ffffff40;
    border-radius: 4px;
    padding: 0 10px;
}
.search-results {
    margin-top: 10px;
    max-height: 48vh;
    overflow: auto;
}
.search-results a {
    display: block;
    padding: 10px 7px;
    border-bottom: 1px solid #ffffff20;
}
.search-results a:hover {
    background: #ffffff15;
}
.search-results span {
    display: block;
    font-size: 12px;
    opacity: 0.75;
}
.skip {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 10px;
    padding: 10px;
    background: #fff;
    color: #111;
    transform: translateY(-105%);
}
.skip:focus {
    transform: none;
}
.study-footer {
    position: relative;
    z-index: 1;
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid #ffffff30;
    font-size: 12px;
}
.study-footer a {
    margin: 0 9px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 700px) {
    :root {
        --top: 58px;
    }
    .topbar {
        gap: 14px;
        padding: 0 18px;
        font-size: 13px;
    }
    .topbar .home {
        gap: 9px;
        line-height: 1.17;
    }
    .brand-label,
    .edition-label {
        display: block;
    }
    .topbar .right {
        gap: 0;
        order: 2;
    }
    .topbar details {
        order: 3;
    }
    .topbar summary {
        display: block;
        width: 23px;
        height: 18px;
        position: relative;
    }
    .topbar summary span,
    .topbar > button,
    .topbar .shop {
        display: none;
    }
    .topbar summary::after {
        position: absolute;
        inset: 4px 0 auto;
        width: 21px;
        height: 9px;
        border: solid currentColor;
        border-width: 2px 0;
        transform: none;
    }
    .edition-menu {
        left: auto;
        right: 0;
        top: 30px;
    }
    .topbar .mobile-search {
        display: block;
        padding: 10px;
    }
    .topbar .primary {
        padding: 7px 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
