/* ***********************************************************************
 *
 *  File:   custom.css
 *
 *  Descr:  Custom CSS for the Mach document
 *
 *  Author: Jomar Hønsi, 2026
 *
 * ************************************************************************/

/* ** Source table *******************************************************/
table#index {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;           /* clip thead corners */
    background-color: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    margin-top: 30px;
    font-size: 0.95em;
}

table#index thead tr {
    background-color: rgb(224, 231, 209);
    color: #fff;
    color: #366;
}

table#index th {
    padding: 10px 14px;
    text-align: left;
    letter-spacing: .03em;
    border-bottom: 2px solid #96aaaa;
    white-space: nowrap;
}

table#index td {
    padding: 9px 14px;
    border-bottom: 1px solid #c8c49e;
    vertical-align: top;
    color: #333;
}

/* zebra stripe */
table#index tbody tr:nth-child(even) td {
    background-color: #e8e8c8;
}

table#index tbody tr:nth-child(odd) td {
    background-color: var(--bg-color);
}

/* hover highlight */
table#index tbody tr:hover td {
    background-color: #f3f1d2;
    transition: background-color .15s ease;
}

/* row-number column */
table#index td:first-child {
    color: #888;
    font-size: 0.85em;
    text-align: center;
    width: 2em;
    white-space: nowrap;
}

/* edition (link) column */
table#index td:nth-child(2) {
    white-space: nowrap;
    font-weight: 600;
}

table#index a {
    color: #1a6060;
    text-decoration: none;
    border-bottom: 1px dotted #1a6060;
}

table#index a:hover {
    color: #0d3d3d;
    border-bottom-style: solid;
}