/* embedded code */
.code-box {
    background-color: #080808;
    color: white;
    border-radius: 12px;
    border: 1px solid rgb(54, 54, 54);
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
}

.code-box code {
    font-size: 1.1rem;
}

code_y {
    color: rgb(247, 227, 50);
}

code_g {
    color: rgb(116, 116, 116);
}

/* Dropdown (collapsible) */
.drop {
    padding: 1px;
}

.drop-toggle {
    width: 100%; 
    text-align: left;
    background:rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
    padding: 14px 16px; 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 8px;
    cursor: pointer;
}

.drop-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.drop-toggle:focus { 
    outline:none; 
    box-shadow:0 0 0 4px var(--ring); 
}

.chev { 
    width:18px; 
    height:18px; 
    transition: transform 0.6s;
}

.drop[aria-expanded="true"] .chev{ transform: rotate(180deg) }

.drop-panel {
    overflow: hidden;
    transition: grid-template-rows 0.6s ease-in-out, opacity 0.6s;
    display: grid; 
    grid-template-rows: 0fr; 
    margin-top: 6px;
    margin-bottom: 6px;
}

.drop[aria-expanded="true"] .drop-panel {
    grid-template-rows: 1fr; 
    opacity: 1;
}

.panel-inner { min-height: 0; }

.content-box {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding:16px;
    background:rgba(255,255,255,.03);
}

.content-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* OS segmented selector with sliding pill */
.seg {
    position: relative; 
    display: grid; 
    grid-template-columns: repeat(3,1fr);
    background:rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 25px; 
    padding: 6px; 
    gap: 6px;
    margin-top: 10px;
}

.seg button {
    position: relative; 
    appearance: none; 
    border: 0; 
    background: transparent;
    color: rgba(255, 255, 255, 0.836); 
    padding: 10px 12px; 
    border-radius: 25px; 
    cursor: pointer;
    font-weight: 600; 
    letter-spacing: .2px;
    transition: color 0.6s;
}

.seg button:focus { 
    outline: none; 
    box-shadow: 0 0 0 4px var(--ring) inset 
}

.seg button[aria-selected="true"] { 
    color:#001018
}

.pill{
    position: absolute; 
    top: 6px; 
    left: 6px; 
    height: calc(100% - 12px); 
    width: calc(33.333% - 4px);
    background-color: white;
    border-radius: 25px; 
    box-shadow: 0 10px 20px rgba(34,211,238,.25), 10px 0 20px rgba(238, 34, 136, 0.25);
    transition: transform 0.6s;
}

.pill.win { transform: translateX(0%) }
.pill.mac { transform: translateX(100%) }
.pill.lin { transform: translateX(200%) }

.btn-d {
    padding: 10px 12px;
    background-color: white;
    border: 1px solid transparent;
    color: black;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    transition: box-shadow 0.6s, color 0.6s, border-color 0.6s, background 0.6s;
}

.btn-d:hover {
    border-color: rgba(255, 255, 255, 0.397);
    color: rgb(255, 255, 255);
    background-color: transparent;
    box-shadow: 0 10px 20px rgba(34,211,238,.25), 10px 0 20px rgba(238, 34, 136, 0.25);
}