/* TeaLeaf Documentation - Custom Theme */

:root {
    --tl-green: #4a9e4a;
    --tl-green-light: #e8f5e8;
    --tl-blue: #3a7bd5;
    --tl-orange: #e67e22;
    --tl-gray: #636e72;
}

/* Navigation sidebar width */
.sidebar {
    width: 280px;
}

/* Inline code styling */
:not(pre) > code {
    padding: 2px 5px;
    border-radius: 3px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

table th {
    background-color: var(--tl-green-light);
    font-weight: 600;
}

.navy table th {
    background-color: #2c3e50;
}

.ayu table th {
    background-color: #1a1f29;
}

table td, table th {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

/* Blockquote callouts */
blockquote {
    border-left: 4px solid var(--tl-green);
    padding: 0.5em 1em;
    margin: 1em 0;
}

/* Tip/Warning/Note callouts via bold first paragraph */
blockquote p:first-child strong:first-child {
    display: inline-block;
    margin-bottom: 0.25em;
}

/* Mermaid diagram containers */
.mermaid {
    text-align: center;
    margin: 1.5em 0;
}

/* API reference tables */
table.api-table td:first-child {
    font-family: monospace;
    white-space: nowrap;
}

/* Section headers with anchors */
h2, h3 {
    margin-top: 1.5em;
}

/* Code block titles */
pre > code::before {
    display: block;
    font-size: 0.85em;
    color: var(--tl-gray);
    margin-bottom: 0.5em;
}

/* Version badge */
.version-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--tl-green);
    color: white;
    font-size: 0.85em;
    font-weight: 600;
}

/* Platform grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1em 0;
}

/* Command reference cards */
.command-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1em;
    margin: 1em 0;
}

.command-card h3 {
    margin-top: 0;
}


/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}
