.tt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.tt-ad-row {
    grid-column: 1 / -1;
    text-align: center;
    margin: 10px 0 20px;
}

    /* text-align: center only centers inline content, so the ad divs (block-level,
       constrained by max-width) need their own auto margins to actually center. */
    .tt-ad-row [class^="div-gpt-ad-"] {
        margin-left: auto;
        margin-right: auto;
    }

.tt-card {
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 16px;
    background: #fff;
    overflow-x: auto;
}

    .tt-card h2 {
        font-size: 1.1em;
        margin: 0 0 10px;
    }

        .tt-card h2 a {
            color: inherit;
            text-decoration: none;
        }

            .tt-card h2 a:hover {
                text-decoration: underline;
            }

.tt-table {
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
    font-size: 0.85em;
}

    .tt-table th,
    .tt-table td {
        padding: 6px 8px;
        text-align: right;
        white-space: nowrap;
        border-bottom: 1px solid #e5e5e5;
    }

    .tt-table th:first-child,
    .tt-table td:first-child {
        text-align: center;
        color: #999;
    }

    .tt-table th:nth-child(2),
    .tt-table td:nth-child(2) {
        text-align: left;
    }

    .tt-table thead th {
        background: #f5f5f5;
        font-weight: 600;
        white-space: normal;
    }

    .tt-table tbody tr:hover {
        background: #fafafa;
    }

.tt-th-abbr {
    display: none;
}

.tt-card-footer {
    margin-top: 10px;
    text-align: right;
    font-size: 0.85em;
}

@media (max-width: 700px) {
    .tt-grid {
        grid-template-columns: 1fr;
    }
}

/* Tighten so all four data columns (Sire, Runners, Winners, $) fit without the
   card having to scroll horizontally on tablet and mobile widths. */
@media (max-width: 900px) {
    .tt-th-full {
        display: none;
    }

    .tt-th-abbr {
        display: inline;
    }

    .tt-table {
        min-width: 0;
        font-size: 0.78em;
    }

        .tt-table th,
        .tt-table td {
            padding: 5px 4px;
        }

        .tt-table th:nth-child(2),
        .tt-table td:nth-child(2) {
            white-space: normal;
            word-break: break-word;
        }
}
