/* RustLabs wiki — extra polish on top of theme/css/variables.css (.rustlabs) */

/* Content headings */
.content main h1,
.content main h2,
.content main h3,
.content main h4 {
    color: #fafaf9;
}
.content main h1 {
    border-bottom: 2px solid #c2410c;
    padding-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

/* Tables */
.content main table {
    width: 100%;
}
.content main th {
    color: #f5f5f4;
    background: #221b18;
}

/* Code blocks */
.content main pre {
    border-radius: 8px;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

/* Figures from the mirrored docs */
.content main figure {
    margin: 1.25rem 0;
    text-align: center;
}
.content main figure img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #2c2624;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}
.content main figcaption {
    color: #a8a29e;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* <details> blocks used for collapsible command groups */
.content main details {
    background: #1a1514;
    border: 1px solid #2c2624;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    margin: 0.6rem 0;
}
.content main details > summary {
    color: #f0906b;
    cursor: pointer;
    font-weight: 600;
}
.content main details[open] > summary {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.content main blockquote {
    border-left: 4px solid #c2410c;
    border-radius: 0 6px 6px 0;
}

/* Callouts converted from GitBook {% hint %} blocks */
.content main .callout {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #c2410c;
    border-radius: 0 8px 8px 0;
    background: #1c1715;
}
.content main .callout > :first-child {
    margin-top: 0;
}
.content main .callout > :last-child {
    margin-bottom: 0;
}
.content main .callout-info {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}
.content main .callout-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}
.content main .callout-danger {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.content main .callout-success {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

/* Entry-point icons inside command tables (were <h2> in GitBook) */
.content main .entry-icon {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    white-space: nowrap;
}

/* Tab panels converted from GitBook {% tabs %} blocks */
.content main .tab-group {
    margin: 1rem 0;
}
.content main details.tab {
    background: #1a1514;
    border: 1px solid #2c2624;
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    margin: 0.4rem 0;
}
.content main details.tab > summary {
    color: #f0906b;
    cursor: pointer;
    font-weight: 600;
    padding: 0.15rem 0;
}
.content main details.tab[open] > summary {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #2c2624;
    padding-bottom: 0.35rem;
}

/* Sidebar */
#mdbook-sidebar {
    border-right: 1px solid #26211e;
}
.sidebar-scrollbox .chapter-item > a,
.sidebar-scrollbox .chapter-item > a:visited {
    border-radius: 6px;
}
.sidebar-scrollbox .chapter-item > a:hover {
    background: rgba(224, 95, 43, 0.1);
    color: #f0906b;
}

/* Menu bar */
#mdbook-menu-bar {
    border-bottom: 1px solid #26211e;
}

/* Search UI */
#mdbook-searchbar {
    border-radius: 999px;
    padding-left: 0.9rem;
}
#mdbook-searchresults li a {
    border-radius: 6px;
}

/* Print / mobile tweaks */
@media print {
    .content main figure img {
        box-shadow: none;
    }
}
