/* =========================================================
   HanPunch Fighter Directory
   Shortcode wrapper: .hp-directory
   ========================================================= */

.hp-directory {
    --hp-ink: #171714;
    --hp-muted: #696861;
    --hp-line: #deddd5;
    --hp-soft-line: #ebeae4;
    --hp-paper: #ffffff;
    --hp-white: #ffffff;
    --hp-blue: #173c68;
    --hp-blue-dark: #102c4e;
    --hp-green: #23613f;
    --hp-green-bg: #e8f3ec;
    --hp-gray-bg: #efefeb;
    --hp-red: #8c352e;
    --hp-red-bg: #f6e9e7;

    width: 100%;
    color: var(--hp-ink);
    font-family: inherit;
}

.hp-directory *,
.hp-directory *::before,
.hp-directory *::after {
    box-sizing: border-box;
}

.hp-directory a {
    text-decoration: none;
}

.hp-directory-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 48px;
    border-top: 1px solid var(--hp-line);
    border-bottom: 1px solid var(--hp-line);
    background:
        linear-gradient(90deg, rgba(23, 60, 104, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(23, 60, 104, 0.035) 1px, transparent 1px),
        var(--hp-paper);
    background-size: 32px 32px;
}

.hp-directory-hero::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -75px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(23, 60, 104, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.hp-directory-hero__inner,
.hp-directory-shell {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

.hp-directory-hero__inner {
    position: relative;
    z-index: 1;
    padding: 72px 0 36px;
}

.hp-directory-eyebrow {
    margin: 0 0 18px;
    color: var(--hp-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hp-directory-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
    gap: 72px;
    align-items: end;
}

.hp-directory-hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.hp-directory-deck {
    max-width: 760px;
    margin: 28px 0 0;
    color: #4d4c46;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.6;
}

.hp-directory-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--hp-line);
    border-bottom: 1px solid var(--hp-line);
}

.hp-directory-stat {
    padding: 18px 16px;
    border-right: 1px solid var(--hp-line);
}

.hp-directory-stat:first-child {
    padding-left: 0;
}

.hp-directory-stat:last-child {
    border-right: 0;
}

.hp-directory-stat strong,
.hp-directory-stat span {
    display: block;
}

.hp-directory-stat strong {
    margin-bottom: 7px;
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hp-directory-stat span {
    color: var(--hp-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-directory-note {
    margin: 38px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 23, 20, 0.12);
    color: var(--hp-muted);
    font-size: 13px;
    line-height: 1.6;
}

.hp-directory-shell {
    padding-bottom: 80px;
}

/* Filters */

.hp-directory-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(145px, 0.75fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--hp-line);
    background: var(--hp-white);
    box-shadow: 0 12px 35px rgba(20, 24, 28, 0.04);
}

.hp-directory-filter label {
    display: block;
    margin-bottom: 8px;
    color: #525149;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hp-directory-filter input,
.hp-directory-filter select {
    width: 100%;
    min-height: 47px;
    margin: 0;
    border: 1px solid #cfcec6;
    border-radius: 0;
    background-color: var(--hp-white);
    color: var(--hp-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hp-directory-filter input {
    padding: 0 14px 0 42px;
}

.hp-directory-filter select {
    padding: 0 34px 0 12px;
}

.hp-directory-filter input:focus,
.hp-directory-filter select:focus {
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px rgba(23, 60, 104, 0.1);
}

.hp-directory-search-wrap {
    position: relative;
}

.hp-directory-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 15px;
    height: 15px;
    border: 1.8px solid #6f6e67;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.hp-directory-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 1.8px;
    background: #6f6e67;
    transform: rotate(45deg);
    transform-origin: left center;
}

.hp-directory-filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 47px;
}

.hp-directory-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 20px;
    border: 1px solid var(--hp-blue);
    border-radius: 0;
    background: var(--hp-blue);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.hp-directory-button:hover {
    border-color: var(--hp-blue-dark);
    background: var(--hp-blue-dark);
}

.hp-directory-reset {
    color: var(--hp-muted) !important;
    font-size: 13px;
    font-weight: 700;
}

.hp-directory-reset:hover {
    color: var(--hp-ink) !important;
}

/* Results header */

.hp-directory-results-bar {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.hp-directory-results-count {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hp-directory-results-caption {
    margin: 5px 0 0;
    color: var(--hp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.hp-directory-updated {
    padding-bottom: 2px;
    color: var(--hp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Directory table */

.hp-directory-table-wrap {
    overflow-x: auto;
    border-top: 2px solid var(--hp-ink);
    border-bottom: 1px solid var(--hp-line);
    background: var(--hp-white);
}

.hp-directory-table {
    width: 100%;
    min-width: 1080px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.hp-directory-table th,
.hp-directory-table td {
    border: 0;
    border-bottom: 1px solid var(--hp-soft-line);
    text-align: left;
    vertical-align: middle;
}

.hp-directory-table th {
    padding: 14px 16px;
    background: #faf9f5;
    color: #5d5c55;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hp-directory-table td {
    padding: 15px 16px;
    color: #3f3e39;
    font-size: 13px;
    line-height: 1.45;
}

.hp-directory-table tbody tr {
    background: var(--hp-white);
    transition: background 150ms ease;
}

.hp-directory-table tbody tr:hover {
    background: #fafaf7;
}

.hp-directory-table tbody tr:last-child td {
    border-bottom: 0;
}

.hp-directory-fighter {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
}

.hp-directory-photo-link {
    flex: 0 0 auto;
}

.hp-directory-photo {
    display: block;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--hp-line);
    border-radius: 2px;
    object-fit: cover;
    object-position: center top;
    background: var(--hp-gray-bg);
}

.hp-directory-photo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-blue);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hp-directory-name {
    display: inline-block;
    color: var(--hp-ink) !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.hp-directory-name:hover {
    color: var(--hp-blue) !important;
}

.hp-directory-native-name {
    display: block;
    margin-top: 4px;
    color: var(--hp-muted);
    font-size: 12px;
    line-height: 1.3;
}

.hp-directory-hpr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(23, 60, 104, 0.2);
    background: rgba(23, 60, 104, 0.06);
    color: var(--hp-blue);
    font-size: 13px;
    font-weight: 800;
}

.hp-directory-muted {
    color: #96958e;
    font-size: 12px;
}

.hp-directory-rankings {
    color: #56554f;
    font-size: 12px;
    white-space: nowrap;
}

.hp-directory-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--hp-gray-bg);
    color: #62615b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hp-directory-status::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.72;
}

.hp-directory-status--active {
    background: var(--hp-green-bg);
    color: var(--hp-green);
}

.hp-directory-status--retired {
    background: var(--hp-red-bg);
    color: var(--hp-red);
}

.hp-directory-status--inactive {
    background: #efefeb;
    color: #67665f;
}

.hp-directory-profile-cell {
    text-align: right !important;
}

.hp-directory-profile-link {
    color: var(--hp-blue) !important;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.hp-directory-profile-link:hover {
    color: var(--hp-blue-dark) !important;
}

/* Pagination */

.hp-directory-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 32px;
}

.hp-directory-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--hp-line);
    background: var(--hp-white);
    color: var(--hp-ink) !important;
    font-size: 12px;
    font-weight: 800;
}

.hp-directory-page:hover,
.hp-directory-page.is-current {
    border-color: var(--hp-blue);
    background: var(--hp-blue);
    color: #fff !important;
}

.hp-directory-page--nav {
    padding-inline: 16px;
}

.hp-directory-page--dots {
    border-color: transparent;
    background: transparent;
}

.hp-directory-page--dots:hover {
    border-color: transparent;
    background: transparent;
    color: var(--hp-ink) !important;
}

/* Empty state and project statement */

.hp-directory-empty {
    padding: 72px 28px;
    border: 1px solid var(--hp-line);
    background: var(--hp-paper);
    text-align: center;
}

.hp-directory-empty__eyebrow {
    margin: 0 0 12px;
    color: var(--hp-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-directory-empty h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.035em;
}

.hp-directory-empty p:not(.hp-directory-empty__eyebrow) {
    margin: 14px 0 24px;
    color: var(--hp-muted);
}

.hp-directory-about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 80px;
    margin-top: 72px;
    padding: 44px 0;
    border-top: 1px solid var(--hp-line);
    border-bottom: 1px solid var(--hp-line);
}

.hp-directory-about h2 {
    max-width: 570px;
    margin: 0;
    font-size: clamp(29px, 3.2vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hp-directory-about > p {
    align-self: end;
    max-width: 670px;
    margin: 0;
    color: #55544d;
    font-size: 16px;
    line-height: 1.75;
}

/* Accessibility */

.hp-directory .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet */

@media (max-width: 1180px) {
    .hp-directory-hero__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hp-directory-stats {
        max-width: 660px;
    }

    .hp-directory-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hp-directory-filter--search {
        grid-column: span 2;
    }

    .hp-directory-filter-actions {
        justify-content: flex-start;
    }
}

/* Mobile card layout */

@media (max-width: 760px) {
    .hp-directory-hero {
        margin-bottom: 28px;
    }

    .hp-directory-hero__inner,
    .hp-directory-shell {
        width: min(100% - 28px, 1440px);
    }

    .hp-directory-hero__inner {
        padding: 46px 0 28px;
    }

    .hp-directory-hero h1 {
        font-size: clamp(40px, 13vw, 61px);
    }

    .hp-directory-deck {
        margin-top: 20px;
        font-size: 16px;
    }

    .hp-directory-stats {
        grid-template-columns: 1fr;
        border-bottom: 0;
    }

    .hp-directory-stat,
    .hp-directory-stat:first-child {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: baseline;
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid var(--hp-line);
    }

    .hp-directory-stat strong {
        margin: 0;
        font-size: 28px;
    }

    .hp-directory-stat span {
        text-align: right;
    }

    .hp-directory-note {
        margin-top: 28px;
    }

    .hp-directory-filters {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .hp-directory-filter--search {
        grid-column: auto;
    }

    .hp-directory-filter-actions {
        justify-content: space-between;
    }

    .hp-directory-results-bar {
        display: block;
    }

    .hp-directory-updated {
        display: block;
        margin-top: 12px;
    }

    .hp-directory-table-wrap {
        overflow: visible;
        border-top: 0;
        border-bottom: 0;
        background: transparent;
    }

    .hp-directory-table,
    .hp-directory-table tbody,
    .hp-directory-table tr,
    .hp-directory-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .hp-directory-table thead {
        display: none;
    }

    .hp-directory-table tbody {
        display: grid;
        gap: 14px;
    }

    .hp-directory-table tbody tr {
        padding: 18px;
        border: 1px solid var(--hp-line);
        background: var(--hp-white);
    }

    .hp-directory-table td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        padding: 9px 0;
        border-bottom: 1px solid var(--hp-soft-line);
        font-size: 13px;
    }

    .hp-directory-table td::before {
        content: attr(data-label);
        color: #77766f;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .hp-directory-table td:first-child {
        display: block;
        padding-top: 0;
        padding-bottom: 16px;
    }

    .hp-directory-table td:first-child::before {
        display: none;
    }

    .hp-directory-table td:last-child {
        border-bottom: 0;
    }

    .hp-directory-fighter {
        min-width: 0;
    }

    .hp-directory-photo {
        width: 66px;
        height: 66px;
    }

    .hp-directory-profile-cell {
        display: block !important;
        padding-top: 15px !important;
        text-align: left !important;
    }

    .hp-directory-profile-cell::before {
        display: none;
    }

    .hp-directory-profile-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        color: var(--hp-blue) !important;
        font-size: 12px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .hp-directory-rankings {
        white-space: normal;
    }

    .hp-directory-about {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 52px;
        padding: 36px 0;
    }

    .hp-directory-about > p {
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .hp-directory-filter-actions {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .hp-directory-button {
        width: 100%;
    }

    .hp-directory-table td {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .hp-directory-page--nav {
        width: 100%;
    }
}

/* =========================================================
   DIRECTORY-SPECIFIC OVERRIDES
   ========================================================= */

/* Team Directory: search + region + country + sort + actions */
.hp-team-directory .hp-directory-filters {
    grid-template-columns:
        minmax(260px, 1.6fr)
        repeat(3, minmax(145px, 0.75fr))
        auto;
}

/* Promotion Directory uses the shared five-control grid. */
.hp-promotion-directory .hp-directory-filters {
    grid-template-columns:
        minmax(260px, 1.6fr)
        repeat(4, minmax(145px, 0.75fr))
        auto;
}

/* Logos should remain fully visible in Team and Promotion rows. */
.hp-team-directory .hp-directory-photo,
.hp-promotion-directory .hp-directory-photo {
    object-fit: contain;
    object-position: center;
    padding: 4px;
    background: #fff;
}

/* Keep fighter portraits cropped naturally. */
.hp-directory:not(.hp-team-directory):not(.hp-promotion-directory) .hp-directory-photo {
    object-fit: cover;
    object-position: center top;
    padding: 0;
}

/* =========================================================
   DIRECTORY PAGE TITLE HIDING
   ========================================================= */

/* Fighter Directory */
body.page-id-2185 .entry-content > h1:first-child,
body.page-id-2185 .post-content > h1:first-child,
body.page-id-2185 .single-content > h1:first-child,
body.page-id-2185 article > h1:first-child,
body.page-id-2185 article > header:first-child,
body.page-id-2185 .content-area > h1:first-child,

/* Promotion Directory */
body.page-id-3102 .entry-content > h1:first-child,
body.page-id-3102 .post-content > h1:first-child,
body.page-id-3102 .single-content > h1:first-child,
body.page-id-3102 article > h1:first-child,
body.page-id-3102 article > header:first-child,
body.page-id-3102 .content-area > h1:first-child {
    display: none !important;
}

/* =========================================================
   DIRECTORY OVERRIDES: TABLET
   ========================================================= */

@media (max-width: 1180px) {
    .hp-team-directory .hp-directory-filters,
    .hp-promotion-directory .hp-directory-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hp-team-directory .hp-directory-filter--search,
    .hp-promotion-directory .hp-directory-filter--search {
        grid-column: span 2;
    }
}

/* =========================================================
   DIRECTORY OVERRIDES: MOBILE
   ========================================================= */

@media (max-width: 760px) {
    .hp-team-directory .hp-directory-filters,
    .hp-promotion-directory .hp-directory-filters {
        grid-template-columns: 1fr;
    }

    .hp-team-directory .hp-directory-filter--search,
    .hp-promotion-directory .hp-directory-filter--search {
        grid-column: auto;
    }

    .hp-team-directory .hp-directory-photo,
    .hp-promotion-directory .hp-directory-photo {
        padding: 5px;
    }
}

/* =========================================================
   PROMOTION DIRECTORY: FULL-WIDTH PAGE RESET
   Page ID: 3102
   ========================================================= */

/*
 * The theme's default page template places page content inside a
 * constrained white card. The directory already provides its own
 * internal 1440px content width, so the surrounding theme card is
 * removed on this page only.
 */

body.page-id-3102 .site-content,
body.page-id-3102 #content,
body.page-id-3102 .content-area,
body.page-id-3102 .site-main,
body.page-id-3102 main.site-main,
body.page-id-3102 article,
body.page-id-3102 .entry-content,
body.page-id-3102 .post-content,
body.page-id-3102 .single-content,
body.page-id-3102 .entry-wrapper,
body.page-id-3102 .post-wrapper,
body.page-id-3102 .inside-article,
body.page-id-3102 .wp-block-post-content {
    max-width: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/*
 * Some theme layouts apply the visible card styling to an immediate
 * wrapper around the article rather than to the article itself.
 */
body.page-id-3102 .site-main > article,
body.page-id-3102 .content-area > article,
body.page-id-3102 article.page,
body.page-id-3102 article.type-page {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/*
 * Break only the Promotion Directory shortcode out to the viewport.
 * Its hero becomes edge-to-edge while .hp-directory-hero__inner and
 * .hp-directory-shell continue to constrain their contents to 1440px.
 */
body.page-id-3102 .hp-promotion-directory {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-right: -50vw;
    margin-left: -50vw;
}

/* Prevent a horizontal scrollbar caused by viewport breakout rounding. */
body.page-id-3102 {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body.page-id-3102 {
        overflow-x: hidden;
    }
}

/* Keep the directory flush with the theme content region. */
body.page-id-3102 .hp-promotion-directory,
body.page-id-3102 .hp-promotion-directory:first-child,
body.page-id-3102 .entry-content > .hp-promotion-directory:first-child {
    margin-top: 0;
}

/* Mobile: preserve the viewport breakout without extra theme padding. */
@media (max-width: 760px) {
    body.page-id-3102 .site-content,
    body.page-id-3102 #content,
    body.page-id-3102 .content-area,
    body.page-id-3102 .site-main,
    body.page-id-3102 article,
    body.page-id-3102 .entry-content,
    body.page-id-3102 .post-content,
    body.page-id-3102 .single-content,
    body.page-id-3102 .inside-article,
    body.page-id-3102 .wp-block-post-content {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* =========================================================
   EVENT DIRECTORY
   Add this to the bottom of directory.css
   ========================================================= */

.hp-event-directory .hp-directory-filters {
    grid-template-columns:
        minmax(260px, 1.6fr)
        repeat(4, minmax(145px, 0.75fr))
        auto;
}

.hp-event-directory .hp-directory-photo {
    width: 52px;
    height: 70px;
    padding: 0;
    object-fit: cover;
    object-position: center;
    background: #f1f0eb;
}

.hp-event-directory__poster-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hp-event-directory__identity {
    min-width: 290px;
}

.hp-event-directory__date {
    color: var(--hp-ink);
    font-size: 13px;
    white-space: nowrap;
}

.hp-event-directory__venue,
.hp-event-directory__place {
    display: block;
}

.hp-event-directory__venue {
    color: var(--hp-ink);
    font-weight: 700;
}

.hp-event-directory__place {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: 12px;
}

.hp-directory-status--upcoming {
    background: rgba(23, 60, 104, 0.08);
    color: var(--hp-blue);
}

.hp-directory-status--completed {
    background: var(--hp-green-bg);
    color: var(--hp-green);
}

.hp-directory-status--cancelled,
.hp-directory-status--canceled {
    background: var(--hp-red-bg);
    color: var(--hp-red);
}

.hp-directory-status--postponed {
    background: #f5eedc;
    color: #7b5b16;
}

.hp-directory-status--date-tba {
    background: var(--hp-gray-bg);
    color: #62615b;
}

/* Replace 0000 with the WordPress page ID of the Events Directory. */
body.page-id-3324 .entry-content > h1:first-child,
body.page-id-3324 .post-content > h1:first-child,
body.page-id-3324 .single-content > h1:first-child,
body.page-id-3324 article > h1:first-child,
body.page-id-3324 article > header:first-child,
body.page-id-3324 .content-area > h1:first-child {
    display: none !important;
}

body.page-id-3324 .site-content,
body.page-id-3324 #content,
body.page-id-3324 .content-area,
body.page-id-3324 .site-main,
body.page-id-3324 main.site-main,
body.page-id-3324 article,
body.page-id-3324 .entry-content,
body.page-id-3324 .post-content,
body.page-id-3324 .single-content,
body.page-id-3324 .entry-wrapper,
body.page-id-3324 .post-wrapper,
body.page-id-3324 .inside-article,
body.page-id-3324 .wp-block-post-content {
    max-width: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.page-id-3324 .site-main > article,
body.page-id-3324 .content-area > article,
body.page-id-3324 article.page,
body.page-id-3324 article.type-page {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.page-id-3324 .hp-event-directory {
    position: relative;
    left: 50%;
    width: 100vw !important;
    max-width: none !important;
    margin-right: -50vw !important;
    margin-left: -50vw !important;
}

body.page-id-3324 {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body.page-id-3324 {
        overflow-x: hidden;
    }
}

body.page-id-3324 .hp-event-directory,
body.page-id-3324 .hp-event-directory:first-child,
body.page-id-3324 .entry-content > .hp-event-directory:first-child {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .hp-event-directory .hp-directory-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hp-event-directory .hp-directory-filter--search {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .hp-event-directory .hp-directory-filters {
        grid-template-columns: 1fr;
    }

    .hp-event-directory .hp-directory-filter--search {
        grid-column: auto;
    }

    .hp-event-directory .hp-directory-photo {
        width: 58px;
        height: 78px;
    }

    .hp-event-directory__identity {
        min-width: 0;
    }

    body.page-id-3324 .site-content,
    body.page-id-3324 #content,
    body.page-id-3324 .content-area,
    body.page-id-3324 .site-main,
    body.page-id-3324 article,
    body.page-id-3324 .entry-content,
    body.page-id-3324 .post-content,
    body.page-id-3324 .single-content,
    body.page-id-3324 .inside-article,
    body.page-id-3324 .wp-block-post-content {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* =========================================================
   MMA EVENTS PAGE: HIDE THEME PAGE TITLE
   Page ID: 3324
   ========================================================= */

body.page-id-3324 .entry-header,
body.page-id-3324 .page-header,
body.page-id-3324 .post-header,
body.page-id-3324 .entry-title,
body.page-id-3324 .page-title,
body.page-id-3324 h1.entry-title,
body.page-id-3324 h1.page-title,
body.page-id-3324 article > header,
body.page-id-3324 .site-main > header {
    display: none !important;
}

