/* The Home History instant-print treatment for sport and league fronts. */
#tsp-stories .tsp-section-history {
    min-width: 0;
    margin-block: 22px;
    padding: 18px;
    border: 1px solid #5c3a2e;
    border-top: 3px solid #a44e36;
    border-radius: 8px;
    background: repeating-linear-gradient(117deg, #fff5df08 0 1px, transparent 1px 5px), #362720;
    color: #fff7e8;
}

#tsp-stories .tsp-section-history > h2 {
    margin: 0 0 18px;
    color: #fff7e8;
    font: 700 clamp(25px, 3vw, 34px)/1 Georgia, serif;
    text-transform: none;
}

#tsp-stories .tsp-section-history > h2 > a {
    color: inherit;
    font-family: inherit;
    text-decoration: none;
}

#tsp-stories .tsp-section-history-empty > h2 {
    margin-bottom: 4px;
    font-size: clamp(21px, 2.25vw, 26px);
}

#tsp-stories .tsp-section-history-empty > p {
    margin: 0;
    color: #fff7e8;
    font-size: 14px;
    line-height: 1.4;
}

#tsp-stories .tsp-section-history-empty > p > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#tsp-stories .tsp-section-history-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#tsp-stories .tsp-section-history-card {
    position: relative;
    min-width: 0;
    margin: 0;
}

#tsp-stories .tsp-section-history-card::before {
    position: absolute;
    z-index: 1;
    top: -6px;
    left: 50%;
    width: clamp(32px, 4vw, 54px);
    height: 12px;
    background: #d5b98bc9;
    content: '';
    pointer-events: none;
    transform: translateX(-50%) rotate(-4deg);
}

#tsp-stories .tsp-section-history-card:nth-child(even)::before {
    transform: translateX(-50%) rotate(4deg);
}

#tsp-stories .tsp-section-history-card > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    box-sizing: border-box;
    height: 100%;
    gap: 9px;
    padding: clamp(7px, .8vw, 12px) clamp(7px, .8vw, 12px) clamp(12px, 1.3vw, 19px);
    background: #f6ecda;
    color: #33251e;
    text-decoration: none;
    box-shadow: 0 2px 5px #170f0a70;
}

#tsp-stories .tsp-section-history-card > a:hover { background: #fff7e8; }

#tsp-stories .tsp-section-history-card .v3-story-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 1px;
    background: #392d29;
}

#tsp-stories .tsp-section-history-card .v3-story-cover img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 35%;
}

#tsp-stories .tsp-section-history-card h3 {
    margin: 0;
    color: #33251e;
    font: 700 clamp(14px, 1.4vw, 20px)/1.22 Georgia, serif;
    overflow-wrap: anywhere;
}

#tsp-stories .tsp-section-history a:focus-visible {
    outline: 2px solid #fff7e8;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    #tsp-stories .tsp-section-history { padding: 18px 16px; }
}

@media (min-width: 761px) {
    #tsp-stories .tsp-section-history-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(12px, 1.45vw, 21px);
    }
}
