/* STROBIA Verse 4.1 — Operating Systems Academy accents and diagrams.
   Loads after the shared strobia-v2.css and networking-course.css styles. */

.os4 .sv2-eyebrow,
.os4 .net-stage-label,
.os4 .net-mini-index,
.os4 .net-label,
.os4 .net-example>span {
    color: #34d399
}

.os4 .net-mini-index,
.os4 .net-label {
    background: rgba(52, 211, 153, .1)
}

.os4 .net-label {
    border-color: rgba(52, 211, 153, .25)
}

.os4 .net-banner {
    border-color: rgba(52, 211, 153, .29);
    background: radial-gradient(circle at 90% 10%, rgba(52, 211, 153, .12), transparent 45%), linear-gradient(115deg, rgba(37, 99, 235, .12), rgba(52, 211, 153, .04));
}

.os4 .net-banner h1 em {
    background: linear-gradient(100deg, #34d399, #22d3ee 65%, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.os4 .net-badges span {
    color: #34d399;
    border-color: rgba(52, 211, 153, .3);
    background: rgba(52, 211, 153, .06)
}

.os4 .net-lesson-nav[aria-current="page"] {
    background: rgba(52, 211, 153, .1);
    box-shadow: inset 3px 0 #34d399
}

.os4 .net-stage summary:hover {
    background: rgba(52, 211, 153, .045)
}

.os4 #os-lesson-search {
    width: calc(100% - 38px);
    border-radius: 11px;
    border: 1px solid var(--sv-line);
    background: var(--sv-card-2);
    color: var(--sv-text);
    padding: 11px 13px;
    margin: 0 19px 18px;
    outline-offset: 3px;
    font-size: 13px
}

.os4 #os-lesson-search:focus {
    border-color: #34d399
}

#os-sidebar-content[hidden] {
    display: none!important
}

.os4 .net-concept {
    border-left-color: #34d399;
    background: linear-gradient(90deg, rgba(52, 211, 153, .1), transparent)
}

.os4 .net-lesson h2 {
    letter-spacing: -.6px
}

.os4 .net-check {
    border-color: rgba(52, 211, 153, .3);
    background: linear-gradient(125deg, rgba(52, 211, 153, .06), rgba(168, 85, 247, .04))
}

.os4 .net-check-head {
    color: var(--sv-mint)
}

.os4 .net-option:hover:not(:disabled) {
    border-color: #34d399
}

.os4 .net-option-index {
    color: #34d399;
    background: rgba(52, 211, 153, .11)
}

.os4 .net-nav-button.primary {
    background: linear-gradient(115deg, #0f766e, #2563eb);
    border-color: rgba(52, 211, 153, .5)
}

.os4 .os-next-path {
    border-color: rgba(52, 211, 153, .3);
    background: linear-gradient(115deg, rgba(52, 211, 153, .075), rgba(34, 211, 238, .05))
}

.os-hero-terminal {
    width: 100%;
    min-width: 0;
    max-width: 480px;
    justify-self: end;
    border: 1px solid #2f665c;
    border-radius: 19px;
    background: #06151e;
    color: #d4f8ef;
    box-shadow: 0 23px 54px rgba(0, 0, 0, .22);
    padding: 18px 22px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.55
}

.os-terminal-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #17423d;
    padding-bottom: 12px;
    margin-bottom: 15px
}

.os-terminal-chrome span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fb7185
}

.os-terminal-chrome span:nth-child(2) {
    background: #fbbf24
}

.os-terminal-chrome span:nth-child(3) {
    background: #34d399
}

.os-terminal-chrome small {
    margin-left: auto;
    font-size: 10px;
    color: #74a89d
}

.os-hero-terminal p {
    margin: 0 0 7px!important;
    font-size: 12px!important;
    line-height: 1.8!important;
    color: #a9c1bf!important;
    overflow-wrap: anywhere
}

.os-hero-terminal p span {
    color: #34d399
}

.os-hero-terminal p:nth-last-of-type(1) {
    margin-top: 12px!important
}

.os-terminal-caption {
    border-top: 1px solid #17423d;
    padding-top: 10px;
    margin-top: 13px;
    color: #6da497;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px
}

.os-cursor {
    color: #34d399;
    animation: osblink 1.2s steps(1) infinite
}

@keyframes osblink {
    50% {
        opacity: 0
    }
}

.os-diagram {
    border: 1px solid rgba(52, 211, 153, .25);
    border-radius: 15px;
    padding: 16px;
    margin: 0 0 25px;
    background: #071726;
    color: #dbfff6;
    overflow: hidden
}

.os-diagram-head {
    font-size: 10px;
    letter-spacing: 1.1px;
    color: #8bbfb4;
    font-weight: 800;
    margin-bottom: 12px
}

.os-visual-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 104px;
    padding: 8px
}

.os-visual-node {
    padding: 15px 13px;
    min-width: 88px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #286c68;
    background: #102b36;
    color: #c5fff0;
    font-size: 12px;
    font-weight: 800
}

.os-visual-node:nth-of-type(even) {
    border-color: #3581a0;
    color: #a6edff
}

.os-visual-edge {
    color: #34d399;
    font-size: 22px;
    font-weight: 850
}

.os-visual-sub {
    font-size: 11px;
    color: #83ada8;
    text-align: center;
    margin-top: 10px
}

.os-codebox {
    border: 1px solid #2d655c;
    border-radius: 15px;
    background: #071820;
    color: #dafcf4;
    overflow: hidden;
    margin: 13px 0 27px
}

.os-codebox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    background: #102b31;
    border-bottom: 1px solid #29534d;
    color: #a0e4d1;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .6px
}

.os-codebox-body {
    padding: 16px 18px;
    display: grid;
    gap: 12px
}

.os-code-command,
.os-code-output {
    margin: 0;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.85;
    font-family: Consolas, Monaco, monospace
}

.os-code-command {
    color: #5eead4
}

.os-code-output {
    color: #d1eee6
}

.os-code-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 13px
}

.os-action {
    border: 1px solid #336962;
    border-radius: 9px;
    background: #17443f;
    color: #dafaf3;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer
}

.os-action:hover {
    background: #205b54
}

.os-code-note {
    margin: 0 16px 16px;
    color: #90c0b5;
    font-size: 11px;
    line-height: 1.7
}

.os-practice {
    background: rgba(52, 211, 153, .045);
    border: 1px solid rgba(52, 211, 153, .22);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px
}

.os-practice h3 {
    margin: 0 0 7px;
    font-size: 18px
}

.os-practice p {
    color: var(--sv-muted);
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 11px
}

.os-practice .os-practice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.os-practice a {
    display: inline-block;
    color: var(--sv-text);
    border: 1px solid rgba(52, 211, 153, .45);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none
}

.os-warning {
    display: flex;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, .35);
    background: rgba(251, 191, 36, .06);
    color: var(--sv-text);
    font-size: 12px;
    line-height: 1.6;
    margin: 10px 0 26px
}

.os-explanation {
    font-size: 12px;
    color: var(--sv-muted);
    line-height: 1.8
}

.os-quiz-reset {
    margin-top: 12px
}

.os4 .net-lesson-footer {
    gap: 12px
}

.os4 #os-lesson[aria-busy="true"] {
    opacity: .7
}

@media(max-width:1080px) {
    .os-hero-terminal {
        justify-self: center;
        max-width: 650px
    }
}

@media(max-width:520px) {
    .os-hero-terminal {
        padding: 14px
    }
    .os-visual-node {
        min-width: 65px;
        padding: 12px 8px;
        font-size: 10px
    }
    .os-visual-edge {
        font-size: 16px
    }
    .os-codebox-body {
        padding: 11px
    }
    .os-codebox-top {
        padding: 11px
    }
}

@media(prefers-reduced-motion:reduce) {
    .os-cursor {
        animation: none
    }
}


/* Linux 4.2 — saved lesson and quiz status */

.os4 .os-saved-quiz {
    margin: 14px 0;
    padding: 10px 13px;
    border: 1px solid rgba(52, 211, 153, .3);
    background: rgba(52, 211, 153, .08);
    border-radius: 10px;
    color: var(--sv-text);
    font-size: 12px;
    line-height: 1.6
}

.os4 .os-quiz-save-status {
    margin-top: 8px;
    min-height: 18px;
    color: var(--sv-muted);
    font-size: 12px
}

.os4 .os-completion {
    border: 1px solid rgba(52, 211, 153, .34);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0 26px;
    background: linear-gradient(110deg, rgba(52, 211, 153, .08), rgba(34, 211, 238, .04))
}

.os4 .os-completion h3 {
    margin: 0 0 5px;
    color: var(--sv-text);
    font-size: 17px
}

.os4 .os-completion p {
    color: var(--sv-muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 0 0 12px
}

.os4 .os-completion .net-nav-button {
    padding: 12px 17px
}

.os4 .os-completion .net-nav-button:disabled {
    cursor: default;
    opacity: .85
}

.os4 .os-lesson-complete .net-nav-sub {
    color: #34d399;
    font-weight: 800
}

.os4 .os-signin-link {
    display: inline-block;
    padding: 11px 15px;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, .5);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    color: var(--sv-text)
}

.os4 .os-save-feedback {
    margin-top: 9px;
    color: var(--sv-muted)
}

.os4 #os-progress-note a {
    color: inherit;
    text-decoration: underline;
    font-weight: 750
}