/* Shared learner chrome. Palette from docs/design-system/tokens.css, layout from home.html. */
.fs-shell {
    --shell-bg: #0b141b;
    --shell-line: #213240;
    --shell-text: #e7eef4;
    --shell-muted: #8a9bab;
    --shell-green: #23bf65;
    --shell-pink: #e81c4d;
    --shell-s2: #15242f;
    --shell-glass: rgba(16, 28, 37, .96);
    --shell-radius: 18px;
    --shell-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    background: var(--shell-bg);
    color: var(--shell-text);
    font-family: peyda, Vazirmatn, system-ui, sans-serif;
    line-height: 1.9;
}
[data-theme="light"] .fs-shell {
    --shell-bg: #f3f6f8;
    --shell-line: #d9e2e9;
    --shell-text: #0f1c26;
    --shell-muted: #5a6a78;
    --shell-green: #0e8a43;
    --shell-s2: #e9eff3;
    --shell-glass: rgba(255, 255, 255, .96);
}
/* Redesigned pages already paint the shared background on the document. */
body:has(.course-page) > .fs-shell {
    background: transparent;
}
.fs-shell :where(a, summary, button) {
    color: inherit;
    font: inherit;
    text-decoration: none;
}
.fs-shell :where(a, summary, button):focus-visible {
    outline: 2px solid var(--shell-green);
    outline-offset: 3px;
}
.fs-shell [hidden] { display: none !important; }
.fs-shell-wrap {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
}
.fs-shell-logo {
    display: inline-block;
    flex: none;
    font: 700 17px/1.9 var(--shell-mono);
    color: var(--shell-green);
    white-space: nowrap;
}
.fs-shell-logo:hover { color: var(--shell-green); }
.fs-shell-logo b { color: var(--shell-text); }
.fs-shell-icon {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fs-shell-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.fs-shell-header {
    position: relative;
    z-index: 31;
    background-image:
        radial-gradient(900px 420px at 85% -80px, rgba(35, 191, 101, .13), transparent 70%),
        radial-gradient(700px 380px at 5% 120px, rgba(232, 132, 92, .09), transparent 70%);
}
.fs-shell-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 18px;
}
.fs-shell-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--shell-muted);
    font-size: 14.5px;
}
.fs-shell-nav > a,
.fs-shell-nav > details > summary {
    transition: color .2s;
    white-space: nowrap;
}
.fs-shell-nav :is(a, summary):is(:hover, [aria-current]) { color: var(--shell-text); }
.fs-shell-actions { display: flex; align-items: center; gap: 10px; }
.fs-shell-circle,
.fs-shell-login {
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid var(--shell-line);
    background: transparent;
    color: var(--shell-text);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.fs-shell-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
}
.fs-shell :is(.fs-shell-circle, .fs-shell-login):is(:hover, [aria-current]) {
    border-color: var(--shell-green);
    color: var(--shell-green);
}
.fs-shell-theme svg,
.fs-shell-menu svg,
.fs-shell-social svg { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fs-shell-theme:hover svg { transform: rotate(35deg); }
.fs-shell-menu:hover svg { transform: scaleX(.82); }
.fs-shell-social a:hover svg { transform: rotate(-8deg) scale(1.12); }
.fs-shell-moon,
[data-theme="light"] .fs-shell-sun { display: none; }
[data-theme="light"] .fs-shell-moon { display: block; }
.fs-shell-menu { display: none; }
.fs-shell-cart { position: relative; }
.fs-shell-count {
    position: absolute;
    top: -6px;
    inset-inline-start: -6px;
    min-width: 20px;
    height: 20px;
    padding-inline: 4px;
    border: 2px solid var(--shell-bg);
    border-radius: 999px;
    background: var(--shell-pink);
    color: white;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.fs-shell-login {
    display: inline-flex;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 16px 7px 12px;
    font-size: 14px;
    white-space: nowrap;
}
.fs-shell-guest { display: inline-block; padding-inline: 18px; }
.fs-shell-account .fs-shell-login span {
    max-width: 15ch;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-shell-account .fs-shell-icon { width: 17px; height: 17px; color: var(--shell-muted); }

.fs-shell-disclosure { position: relative; }
.fs-shell-disclosure summary { list-style: none; cursor: pointer; }
.fs-shell-disclosure summary::-webkit-details-marker { display: none; }
.fs-shell-nav .fs-shell-disclosure summary { display: flex; align-items: center; gap: 5px; }
.fs-shell-chevron { width: 14px; height: 14px; transition: transform .2s; }
.fs-shell-disclosure[open] .fs-shell-chevron { transform: rotate(180deg); }
.fs-shell-panel {
    list-style: none;
    position: absolute;
    inset-block-start: calc(100% + 9px);
    inset-inline-start: 0;
    min-width: max-content;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--shell-line);
    border-radius: 14px;
    background: var(--shell-glass);
    color: var(--shell-text);
    box-shadow: 0 24px 50px -24px rgba(0,0,0,.5);
    backdrop-filter: blur(12px);
}
.fs-shell-account .fs-shell-panel { inset-inline: auto 0; min-width: 170px; }
.fs-shell-panel a {
    display: block;
    padding: 6px 12px;
    border-radius: 9px;
    color: var(--shell-text);
    font-size: 14px;
}
.fs-shell-panel a:hover { background: var(--shell-s2); color: var(--shell-green); }

.fs-shell-footer {
    margin-block-start: 110px;
    padding-block: 56px 30px;
    border-block-start: 1px solid var(--shell-line);
    border-radius: 0;
    color: var(--shell-muted);
    font-size: 14.5px;
}
.fs-shell-footer-grid {
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);
    gap: 40px;
}
.fs-shell-footer h2 {
    margin: 0 0 12px;
    color: var(--shell-text);
    font-size: 15px;
    font-weight: 700;
    line-height: inherit;
}
.fs-shell-footer ul {
    list-style: none;
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
}
.fs-shell-footer :is(li a, .fs-shell-seal) { transition: color .2s; }
.fs-shell-footer :is(li a, .fs-shell-seal):hover { color: var(--shell-green); }
.fs-shell-brand p { max-width: 32ch; margin: 10px 0 16px; }
.fs-shell-social { display: flex; gap: 10px; }
.fs-shell-seal {
    width: 84px;
    height: 84px;
    padding: 6px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--shell-line);
    border-radius: 14px;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.6;
}
.fs-shell-seal img { object-fit: contain; }
.fs-shell-footer-bottom {
    margin-block-start: 44px;
    padding-block-start: 20px;
    border-block-start: 1px solid var(--shell-line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}
.fs-shell-domain { font-family: var(--shell-mono); }
.fs-shell-top {
    position: fixed;
    z-index: 25;
    inset-block-end: 20px;
    inset-inline-end: 20px;
    background: var(--shell-glass);
}

@media (max-width: 960px) {
    .fs-shell-menu { display: grid; }
    .fs-shell-guest { padding-inline: 14px; }
    .fs-shell-guest span,
    .fs-shell-account .fs-shell-login span { display: none; }
    .fs-shell-account .fs-shell-login { width: 38px; height: 38px; padding: 0; }
    .fs-shell-nav {
        display: none;
        position: absolute;
        inset-block-start: calc(100% - 6px);
        inset-inline: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--shell-line);
        border-radius: var(--shell-radius);
        background: var(--shell-glass);
        color: var(--shell-text);
        box-shadow: 0 24px 50px -24px rgba(0,0,0,.5);
        backdrop-filter: blur(12px);
    }
    [data-menu-open] .fs-shell-nav { display: flex; }
    .fs-shell-nav > a,
    .fs-shell-nav > details > summary { padding: 9px 14px; border-radius: 12px; }
    .fs-shell-nav > a:hover,
    .fs-shell-nav > details > summary:hover { background: var(--shell-s2); }
    .fs-shell-nav .fs-shell-panel {
        position: static;
        min-width: 0;
        margin-inline-start: 14px;
        box-shadow: none;
        backdrop-filter: none;
    }
    .fs-shell-footer { margin-block-start: 84px; }
    .fs-shell-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 20px; }
    .fs-shell-brand { grid-column: 1 / -1; }
    body:has(.course-page) .fs-shell-footer { padding-block-end: 90px; }
    body:has(.course-page) .fs-shell-top { inset-block-end: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .fs-shell * { transition: none !important; }
}
