/* Custom CSS for PoolParty documentation */

/* White background for the logo area */
.wy-side-nav-search {
    background-color: #ffffff;
}

/* Hide the home icon and project name text, keep the link for the logo */
.wy-side-nav-search > a {
    font-size: 0;
}

/* Hide the home icon */
.wy-side-nav-search > a .icon-home:before {
    content: none;
}

/* Ensure the logo displays properly and is clickable */
.wy-side-nav-search > a img.logo {
    display: block;
}

/* Hide version text */
.wy-side-nav-search > div.version {
    display: none;
}

/* Improve code block styling */
.highlight {
    background: #f8f8f8;
}

/* Better table styling */
table.docutils {
    border-collapse: collapse;
    width: 100%;
}

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

/* Pool output display blocks */
.pp-pool {
    background: #f7f9fb;
    border-left: 3px solid #3b82f6;
    padding: 6px 14px 8px;
    margin: 2px 0 18px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.87em;
    line-height: 1.75;
    border-radius: 0 4px 4px 0;
    overflow-x: auto;
}
.pp-header {
    display: block;
    font-family: sans-serif;
    font-size: 0.82em;
    color: #6b7280;
    margin-bottom: 3px;
    font-style: normal;
}
/* Tagged region content (blue) */
.pp-region  { color: #1d4ed8; font-weight: 600; }
/* Mutated / substituted bases (red) */
.pp-mut     { color: #dc2626; font-weight: 600; }
/* Deleted bases / gap markers (grey) */
.pp-del     { color: #9ca3af; }
/* Inserted sequences (green) */
.pp-ins     { color: #16a34a; font-weight: 600; }
/* Alternating codon colours */
.pp-codon-a { color: #2563eb; }
.pp-codon-b { color: #dc2626; }
.pp-codon-c { color: #059669; }
/* XML tag literals — used in region_scan / region_multiscan output */
.pp-xtag       { color: #c0392b; }
.pp-xtag-b     { color: #2980b9; }
.pp-xtag-cre   { color: #16a085; }
.pp-xtag-light { color: #b0b0b0; }
/* User-specified styles (tutorials / custom output) */
.pp-style-blue   { color: #2563eb; }
.pp-style-purple { color: #800080; }
.pp-style-orange { color: #ff8c00; }
.pp-style-bold   { font-weight: bold; }
.pp-style-green  { color: #22c55e; font-weight: bold; }
/* Truncation indicator */
.pp-ellipsis { color: #9ca3af; font-style: italic; }

/* DataFrame-style table inside pp-pool */
.pp-pool table.pp-df {
    border-collapse: collapse;
    width: auto;
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}
.pp-pool table.pp-df th,
.pp-pool table.pp-df td {
    padding: 1px 12px 1px 0;
    text-align: left;
    border: none;
    white-space: nowrap;
}
.pp-pool table.pp-df th {
    color: #6b7280;
    font-weight: 600;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 3px;
}

/* Improve API reference readability */
dl.py.function > dt,
dl.py.class > dt,
dl.py.method > dt {
    background-color: #f0f0f0;
    padding: 6px 10px;
    border-left: 3px solid #2980b9;
}
