/* ==========================================================================
   Misc — clearfix, tables, utilities
   ========================================================================== */

/* Clearfix */
.cf::before,
.cf::after {
    content: "";
    display: table;
}

.cf::after {
    clear: both;
}

/* Styled tables (blog / handbook embeds) */
.styled-table {
    overflow-x: auto;
}

.styled-table.compact table {
    font-weight: 200;
    font-family: inherit;
}

.styled-table.compact td {
    padding: 5px;
}

.styled-table th {
    text-align: center;
}

.styled-table table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: var(--tf-font);
    min-width: 400px;
    box-shadow: 0 1px 0 var(--tf-card-border);
}

.styled-table thead tr {
    background-color: var(--tf-bg-mid);
    color: var(--tf-text-strong);
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid var(--tf-card-border);
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: var(--tf-ghost-hover-bg);
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: var(--tf-accent);
}

hr {
    padding-top: 2em;
    padding-bottom: 2em;
    border: none;
}
