/* 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;
    transition: background .2s;
}
.drop-toggle:hover { background: rgba(255,255,255,.07); }
.drop-toggle:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.drop-title { font-size: 1.1rem; font-weight: bold; }

.chev {
    width: 18px; height: 18px; flex-shrink: 0;
    transition: transform .4s ease;
}
.drop[aria-expanded="true"] .chev { transform: rotate(180deg); }

.drop-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s ease, opacity .4s;
    opacity: 0;
    overflow: hidden;
    margin-top: 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;
    flex-wrap: wrap;
    gap: 8px;
}

/* ─── Doc tabs ────────────────────────────────────────────────────────── */
.doc-tabs-wrap { margin-top: 24px; }

.doc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.doc-tabs::-webkit-scrollbar { display: none; }

.doc-tab {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,.45);
    padding: 8px 14px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.doc-tab:hover { color: rgba(255,255,255,.8); }
.doc-tab--active,
.doc-tab[aria-selected="true"] {
    color: #fff;
    border-bottom-color: #fff;
    font-weight: 600;
}
.doc-tab:focus { outline: none; box-shadow: 0 0 0 2px var(--ring) inset; }

.doc-tab-panel { padding-top: 4px; }

/* ─── Ogem doc rendered content ───────────────────────────────────────── */
.ogem-doc-rendered {
    font-size: 14px;
    line-height: 1.75;
    color: inherit;
}
.ogem-doc-rendered h1 { font-size: 1.3rem; font-weight: 700; margin: 1.1em 0 .5em; }
.ogem-doc-rendered h2 { font-size: 1.1rem; font-weight: 700; margin: 1em 0 .4em; }
.ogem-doc-rendered h3 { font-size: .95rem; font-weight: 700; margin: .9em 0 .35em; }
.ogem-doc-rendered p  { margin: 0 0 .6em; }
.ogem-doc-rendered p:last-child { margin-bottom: 0; }
.ogem-doc-rendered strong { font-weight: 700; }
.ogem-doc-rendered ul,
.ogem-doc-rendered ol { margin: .4em 0 .6em 1.4em; padding: 0; }
.ogem-doc-rendered li { margin-bottom: .2em; }
.ogem-doc-rendered pre {
    background: #000;
    color: #e2e8f0;
    font-family: ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 1rem;
    border-radius: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    line-height: 1.6;
    margin: 8px 0;
}
.ogem-doc-rendered pre code {
    background: none;
    color: inherit;
    font-size: inherit;
    padding: 0;
}
.ogem-doc-rendered code {
    font-family: ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 1rem;
    background: rgba(255,255,255,.08);
    padding: 1px 5px;
    border-radius: 3px;
}

/* ─── Docker pull command ─────────────────────────────────────────────── */
.docker-pull {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 15px 12px;
    margin: 6px 0;
}
.docker-pull-cmd {
    flex: 1;
    font-family: ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: .85em;
    color: #e2e8f0;
    background: none;
    white-space: nowrap;
    overflow-x: auto;
}
.docker-pull-copy {
    appearance: none;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    border-radius: 5px;
    padding: 3px 10px;
    font-size: .8em;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.docker-pull-copy:hover { background: rgba(255,255,255,.2); }
