/*
 * Winners pages (/winners, /winners/{year}, /winners/{year}/{category}).
 *
 * These are standalone pages rather than sections of the one-page homepage, so they use
 * .winners-section instead of the theme's .works — .works paints a large clip-path triangle
 * below itself to transition into the next section, which has nothing to transition into here.
 */
.title-section__background {
    pointer-events: none;
}

.winners-section {
    position: relative;
    background-color: #fecb1c;
    padding: 14rem 0 6rem 0;
}

@media (max-width: 767.98px) {
    .winners-section {
        padding: 10rem 0 3rem 0;
    }
}

/* The theme only styles h2 inside a title section; these pages lead with an h1. */
.title-section__dark h1 {
    position: relative;
    z-index: 1;
    color: #000;
    font-size: 3rem;
    text-transform: capitalize;
}

@media (max-width: 767.98px) {
    .title-section__dark h1 {
        font-size: 2.5rem;
        margin-bottom: 0;
    }
}

/* Breadcrumb */
.winner__breadcrumb {
    position: relative;
    /* Above .title-section__dark, which is also z-index: 1 but later in the DOM. */
    z-index: 2;
    margin-bottom: 2rem;
    font-size: .875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.winner__breadcrumb a {
    color: #1a1a1a;
    border-bottom: 1px solid rgba(26, 26, 26, .35);
}

.winner__breadcrumb a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.winner__breadcrumb i {
    font-size: .625rem;
    vertical-align: middle;
    opacity: .5;
}

/* Award line above the winner's name */
.winner__award {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: .75rem;
    padding: .5rem 1.25rem;
    background-color: #1a1a1a;
    border-radius: 2rem;
    color: #fecb1c;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.winner__tagline {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
}

/* Profile column */
.winner__profile {
    position: relative;
    z-index: 1;
}

.winner__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background-color: rgba(26, 26, 26, .08);
    border-radius: .5rem;
}

.winner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner__media i {
    color: rgba(26, 26, 26, .35);
    font-size: 5rem;
}

.winner__meta {
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
}

.winner__meta li {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, .15);
}

.winner__meta a {
    color: #1a1a1a;
    border-bottom: 1px solid rgba(26, 26, 26, .35);
    word-break: break-word;
}

.winner__meta a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* Social links */
.winner__socials a {
    display: inline-block;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 .5rem .5rem 0;
    background-color: #1a1a1a;
    border-radius: 50%;
    color: #fecb1c;
    line-height: 2.75rem;
    text-align: center;
}

.winner__socials a:hover {
    background-color: #fff;
    color: #1a1a1a;
}

/* The winner's own description, rendered from the markdown body */
.winner__description {
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
}

.winner__description p {
    margin-bottom: 1.25rem;
}

.winner__description h2,
.winner__description h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

/* Winners write their own bios, so markdown lists need their markers back:
   the theme strips them globally with `body ul li { list-style: none }`. */
.winner__description ul,
.winner__description ol {
    margin: 0 0 1.25rem 0;
    padding-left: 1.5rem;
}

.winner__description ul li {
    list-style: disc;
}

.winner__description ol li {
    list-style: decimal;
}

.winner__description li {
    margin-bottom: .35rem;
    padding-left: .25rem;
}

.winner__description a {
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.winner__description blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid #1a1a1a;
    font-size: 1.25rem;
    font-style: italic;
}

/* Back link — the theme's .btn-outline-primary renders white, which is unreadable on yellow */
.winner__back {
    display: inline-block;
    margin-top: 2rem;
    padding: .875rem 2rem;
    background-color: #1a1a1a;
    color: #fecb1c;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.winner__back:hover {
    background-color: #fff;
    color: #1a1a1a;
}

/* Winner summary cards on the index pages */
.winner-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    background-color: #fff;
    border-radius: .5rem;
}

.winner-card:hover {
    background-color: #1a1a1a;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .15);
}

.winner-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background-color: rgba(26, 26, 26, .08);
    border-radius: 50%;
}

.winner-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-card__media i {
    color: #1a1a1a;
    font-size: 1.75rem;
}

.winner-card:hover .winner-card__media {
    background-color: rgba(254, 203, 28, .15);
}

.winner-card:hover .winner-card__media i {
    color: #fecb1c;
}

.winner-card__award {
    margin-bottom: .5rem;
    color: #8a7210;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.winner-card__name {
    margin-bottom: .25rem;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.winner-card__tagline {
    margin-bottom: .75rem;
    color: #555;
    font-size: .9375rem;
}

.winner-card__brief {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: #333;
}

.winner-card__more {
    /* The brief normally carries flex-grow; this keeps footers aligned across a row
       even when a winner has no brief set. */
    margin-top: auto;
    color: #1a1a1a;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.winner-card__more i {
    font-size: .625rem;
    vertical-align: middle;
}

.winner-card:hover .winner-card__award {
    color: #fecb1c;
}

.winner-card:hover .winner-card__name,
.winner-card:hover .winner-card__more {
    color: #fff;
}

.winner-card:hover .winner-card__tagline,
.winner-card:hover .winner-card__brief {
    color: rgba(255, 255, 255, .8);
}

/* Per-year headings on /winners */
.winners-index__year-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #1a1a1a;
}

.winners-index__year-header h2 {
    margin: 0;
    font-size: 2.5rem;
}

.winners-index__year-header a {
    color: #1a1a1a;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.winners-index__year-header a i {
    font-size: .625rem;
    vertical-align: middle;
}

/* Links to other years at the foot of a year page */
.winners-year__other-title {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.winners-year__other a {
    display: inline-block;
    margin: 0 .75rem .75rem 0;
    padding: .5rem 1.25rem;
    background-color: #1a1a1a;
    border-radius: 2rem;
    color: #fecb1c;
    font-size: .875rem;
    font-weight: 700;
}

.winners-year__other a:hover {
    background-color: #fff;
    color: #1a1a1a;
}

/*
 * /winners lists every year at a glance, so it uses a table rather than the cards used on
 * /winners/{year}. Bootstrap's .table styles assume a light page, so this is standalone.
 */
.winners-table {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: .5rem;
    border-collapse: collapse;
    overflow: hidden;
}

.winners-table th {
    padding: 1rem 1.5rem;
    background-color: #1a1a1a;
    color: #fecb1c;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.winners-table td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(26, 26, 26, .12);
    vertical-align: middle;
}

.winners-table tbody tr:first-child td {
    border-top: 0;
}

.winners-table tbody tr:hover {
    background-color: rgba(254, 203, 28, .14);
}

.winners-table__award {
    width: 34%;
    color: #1a1a1a;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.winners-table__award i {
    color: #8a7210;
}

.winners-table__winner a {
    color: #1a1a1a;
    font-family: "Oswald", sans-serif;
    font-size: 1.375rem;
}

.winners-table__winner a:hover {
    color: #8a7210;
}

.winners-table__winner a i {
    font-size: .625rem;
    vertical-align: middle;
}

.winners-table__tagline {
    display: block;
    color: #555;
    font-size: .9375rem;
}

/* Stack into labelled rows on narrow screens, where a two-column table does not fit. */
@media (max-width: 575.98px) {
    .winners-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .winners-table td {
        display: block;
        border-top: 0;
    }

    .winners-table__award {
        width: auto;
        padding: 1.25rem 1.5rem .25rem 1.5rem;
        white-space: normal;
    }

    .winners-table__winner {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .winners-table tbody tr + tr .winners-table__award {
        border-top: 1px solid rgba(26, 26, 26, .12);
    }
}
