.story-pilot,
.story-pilot * {
    box-sizing: border-box;
}

#content .story-pilot {
    display: block;
    container-type: inline-size;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    overflow: visible;
    background: #34393f;
    color: #f5f5f5;
    font: 15px/1.3 Arial, Helvetica, sans-serif;
    text-align: left;
    text-decoration: none;
}

#content a.story-pilot,
#content a.story-pilot:visited,
#content a.story-pilot:hover,
#content a.story-pilot:focus {
    color: inherit !important;
    text-decoration: none !important;
}

#content #contentBody > .story-pilot,
#content #contentBody + .story-pilot {
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

#content a.story-pilot:not(.story-pilot--light),
#content a.story-pilot:not(.story-pilot--light):visited,
#content a.story-pilot:not(.story-pilot--light):hover,
#content a.story-pilot:not(.story-pilot--light):focus {
    color: #f5f5f5 !important;
}

.story-pilot__header {
    display: flex;
    min-height: 34px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px 6px;
    background: #24292f;
}

.story-pilot__heading {
    min-width: 0;
    color: #f5f5f5;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.story-pilot__heading span {
    color: #f2981d;
}

.story-pilot__age {
    flex: 0 0 auto;
    padding-top: 2px;
    color: #b8bbc0;
    font-size: 12px;
    line-height: 1;
}

.story-pilot__main {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 7px 9px 2px;
}

.story-pilot__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    aspect-ratio: 560 / 301;
    object-fit: cover;
}

.story-pilot__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
    padding: 6px 0 5px;
}

.story-pilot__lead {
    margin: 0 0 9px;
    font-size: 15px;
    line-height: 1.35;
}

.story-pilot__lead strong {
    color: inherit;
    font-size: inherit;
    font-style: normal;
}

.story-pilot__meta {
    margin: 0 0 8px;
    color: #e1e3e5;
    font-size: 13px;
    line-height: 1.25;
}

.story-pilot__button {
    display: flex;
    width: 100%;
    max-width: 250px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 12px;
    background: #f2981d;
    color: #111 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.story-pilot:hover .story-pilot__button,
.story-pilot:focus-visible .story-pilot__button {
    background: #ffa72c;
    color: #111 !important;
}

.story-pilot:focus-visible {
    outline: 2px solid #f2981d;
    outline-offset: 2px;
}

.story-pilot__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 9px 5px;
    font-size: 12px;
    line-height: 1.1;
}

.story-pilot__brand {
    font-weight: 700;
}

.story-pilot__ad {
    color: #b8bbc0;
}

#content .story-pilot.story-pilot--light {
    border-color: #d9d9d9;
    background: #fff;
    color: #2b2b2b;
}

#content #contentBody + .story-pilot.story-pilot--light {
    border-top-color: #9ba2a9;
    border-bottom-color: #9ba2a9;
}

.story-pilot--light .story-pilot__header {
    background: #f5f5f5;
}

.story-pilot--light .story-pilot__heading {
    color: #2b2b2b;
}

.story-pilot--light .story-pilot__age,
.story-pilot--light .story-pilot__ad {
    color: #999;
}

.story-pilot--light .story-pilot__meta {
    color: #4c4c4c;
}

.story-pilot-list-slot {
    width: 100%;
    margin: 0 0 24px;
}

#content .story-pilot-list-slot .story-pilot {
    margin: 0;
    border-left: 2px solid #fff;
}

.story-pilot-list-slot .story-pilot__header {
    margin-left: 8px;
}

#content .story-pilot-list-slot .story-pilot.story-pilot--light {
    border-left-color: #d9d9d9;
}

@container (max-width: 520px) {
    .story-pilot__header {
        min-height: 44px;
        padding: 7px 8px 6px;
    }

    .story-pilot__heading {
        width: 245px;
        max-width: calc(100% - 35px);
        font-size: 19px;
    }

    .story-pilot__main {
        display: block;
        padding: 7px 0 0;
    }

    .story-pilot__image {
        aspect-ratio: 337 / 166;
    }

    .story-pilot__content {
        padding: 10px 0 0;
    }

    .story-pilot__lead {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .story-pilot__meta {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .story-pilot__button {
        max-width: none;
        min-height: 34px;
    }

    .story-pilot__footer {
        padding: 7px 0 4px;
    }

    .story-pilot-list-slot .story-pilot__main,
    .story-pilot-list-slot .story-pilot__footer {
        width: calc(100% - 8px);
        margin-left: 8px;
    }
}

@media (max-width: 600px) {
    .story-pilot__header {
        min-height: 44px;
        padding: 7px 8px 6px;
    }

    .story-pilot__heading {
        width: 245px;
        max-width: calc(100% - 35px);
        font-size: 19px;
    }

    .story-pilot__main {
        display: block;
        padding: 7px 0 0;
    }

    .story-pilot__image {
        aspect-ratio: 337 / 166;
    }

    .story-pilot__content {
        padding: 10px 0 0;
    }

    .story-pilot__lead {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .story-pilot__meta {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .story-pilot__button {
        max-width: none;
        min-height: 34px;
    }

    .story-pilot__footer {
        padding: 7px 0 4px;
    }

    .story-pilot-list-slot .story-pilot__main,
    .story-pilot-list-slot .story-pilot__footer {
        width: calc(100% - 8px);
        margin-left: 8px;
    }
}
