/* First and Second Season Sires hubs (/first-season-sires/, /second-season-sires/).
   Replaces the older season-sires.css on both pages. */

h1 {
    font-size: 1.7em;
}

.fss {
    font-size: 14px;
}

    .fss a {
        color: #1a7596;
    }

.fss-muted {
    color: #777;
    font-size: 0.85em;
}

.fss-empty {
    color: #777;
    padding: 12px 0;
    margin: 0;
}

/* ---- Sections ---- */

.fss-section {
    margin: 0 0 32px;
}

.fss-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    border-top: 2px solid #fa9022;
    padding-top: 6px;
    margin-bottom: 12px;
}

    .fss-section-head h2 {
        color: #fa9022;
        font-size: 1.15em;
        font-weight: 700;
        margin: 0;
        padding: 0;
        border: 0;
        text-decoration: none;
    }

    .fss-section-head > a {
        font-size: 0.85em;
    }

/* ---- Leader tiles ---- */

.fss-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.fss-tile {
    border: 1px solid #e3e3e3;
    border-top: 3px solid #4daece;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
    min-width: 0;
}

.fss-tile-label {
    font-size: 0.78em;
    letter-spacing: 0.02em;
    color: #777;
}

.fss-tile-name {
    font-weight: 700;
    font-size: 1.05em;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .fss-tile-name a {
        color: #222;
    }

.fss-tile-value {
    font-size: 0.82em;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Leading sires table ---- */

.fss-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.fss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    font-variant-numeric: tabular-nums;
}

    .fss-table th,
    .fss-table td {
        padding: 7px 8px;
        text-align: right;
        border-bottom: 1px solid #e5e5e5;
        white-space: nowrap;
        vertical-align: top;
    }

    .fss-table thead th {
        background: #f5f5f5;
        font-weight: 600;
        border-bottom: 1px solid #d3d3d3;
    }

    .fss-table .fss-rank {
        width: 28px;
        text-align: center;
        color: #999;
    }

    .fss-table .fss-sire {
        text-align: left;
        white-space: normal;
    }

        .fss-table td.fss-sire a {
            font-weight: 600;
        }

    .fss-table .fss-top-earner {
        text-align: left;
    }

    .fss-table tbody tr:hover {
        background: #fafafa;
    }

    .fss-table tbody tr:first-child td {
        background: #fff8ef;
    }

.fss-ctry {
    font-weight: 400;
    color: #777;
}

.fss-by {
    display: block;
    font-size: 0.85em;
    color: #777;
}

.fss-stakes {
    color: #c26a00;
    font-weight: 600;
}

.fss-money {
    font-weight: 600;
}

.fss-abbr {
    display: none;
}

.fss-table-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    margin-top: 8px;
}

.fss-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.88em;
}

.fss .fss-primary-link {
    font-weight: 700;
}

/* ---- Runners coming up ---- */

.fss-runner-day {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

    .fss-runner-day:last-child {
        border-bottom: 0;
    }

.fss-runner-date {
    flex: 0 0 90px;
    font-weight: 700;
    padding-top: 4px;
}

.fss-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fss .fss-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 10px;
    border: 1px solid #cfe9f2;
    border-radius: 14px;
    background: #f3fafc;
    color: #1a7596;
    font-size: 0.88em;
    text-decoration: none;
}

    .fss .fss-chip:hover {
        background: #4daece;
        border-color: #4daece;
        color: #fff;
    }

.fss-chip-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 0.85em;
    font-weight: 700;
    text-align: center;
}

/* ---- News ---- */

.fss-news {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}

.fss .fss-story {
    display: flex;
    gap: 12px;
    color: #222;
    text-decoration: none;
    min-width: 0;
}

    .fss .fss-story:hover .fss-story-headline {
        text-decoration: underline;
    }

.fss-story-img {
    flex: 0 0 120px;
}

    .fss-story-img img {
        width: 120px;
        height: 90px;
        object-fit: cover;
        border-radius: 3px;
        display: block;
    }

.fss-story-headline {
    font-weight: 700;
    color: #1a7596;
    line-height: 1.25;
    margin-bottom: 4px;
}

.fss-story-preview {
    font-size: 0.85em;
    color: #444;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fss-news-ad {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* ---- Tablet / mobile ---- */

@media (max-width: 1000px) {
    .fss-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .fss-news {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .fss-table .fss-opt {
        display: none;
    }

    .fss-full {
        display: none;
    }

    .fss-abbr {
        display: inline;
    }

    .fss-table th,
    .fss-table td {
        padding: 6px 5px;
    }

    .fss-runner-day {
        flex-direction: column;
        gap: 6px;
    }

    .fss-runner-date {
        flex-basis: auto;
        padding-top: 0;
    }

    .fss-story-img {
        flex-basis: 96px;
    }

        .fss-story-img img {
            width: 96px;
            height: 72px;
        }
}
