:root {
    --epic-content-width: 760px;
    --epic-wide-width: 1200px;

    /* Shared long-form reading typography */
    --epic-reading-font-size: 17px;
    --epic-reading-line-height: 1.7;
}

@media (max-width: 800px) {
    :root {
        --epic-reading-font-size: 16px;
    }
}

/* Shared default width for Kadence content rows */
.wp-block-kadence-rowlayout > .kt-row-column-wrap {
    max-width: var(--epic-wide-width);
    margin-left: auto;
    margin-right: auto;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

.site-shell {
    width: min(100% - 2rem, var(--epic-wide-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid #D7DBDE;
    background: #FAF8F3;
}

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }
}

.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #101820;
    text-decoration: none;
}

.site-brand__logo-image {
    display: block;
    width: 34px;
    height: auto;
    flex: 0 0 auto;
}

.site-brand__name {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: Geist, Arial, sans-serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
}

.site-brand__epic {
    color: #196375;
}

.site-brand__fans {
    color: #A91B2B;
}

.site-brand__media {
    color: #1B1F22;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list li {
    margin: 0;
}

.site-nav__list a {
    color: #5D6871;
    font-family: Geist, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus {
    color: #101820;
}

.site-nav__list .menu-item-has-children > a::after {
    content: "⌄";
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    transform: translateY(-1px);
}

.site-nav__list .sub-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 190px;
    margin: 12px 0 0;
    padding: 10px 0;
    list-style: none;
    border: 1px solid #D7DBDE;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.10);
}

.site-nav__list li {
    position: relative;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
    display: block;
}

.site-nav__list .sub-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
}

.site-nav__list .sub-menu a:hover {
    background: #F5F7F7;
}

.site-footer {
    margin-top: 0;
    padding: 72px 0 28px;
    border-top: 0;
    background: #081116;
    color: #FFFFFF;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(300px, 340px) repeat(3, max-content);
    column-gap: 64px;
    row-gap: 40px;
    justify-content: space-between;
}

.site-brand--footer {
    margin-bottom: 28px;
}

.site-brand--footer .site-brand__epic {
    color: #196375;
}

.site-brand--footer .site-brand__fans {
    color: #A91B2B;
}

.site-brand--footer .site-brand__media {
    color: #FFFFFF;
}

.site-footer__intro {
    max-width: 340px;
    margin: 0;
    color: #84919A;
    font-family: Geist, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

/* Optional per-property data attribution and independence notices. */
.site-footer__disclaimers {
    max-width: 340px;
    margin-top: 18px;
    color: #84919A;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}

.site-footer__disclaimers p {
    margin: 0 0 8px;
}

.site-footer__disclaimers p:last-child {
    margin-bottom: 0;
}

.site-footer__heading {
    margin: 0 0 22px;
    color: #84919A;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 0;
}

.site-footer li + li {
    margin-top: 14px;
}

.site-footer a {
    color: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none;
    transition: opacity 0.16s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #FFFFFF;
    opacity: 0.72;
}

.site-footer__bottom {
    margin-top: 66px;
    padding-top: 24px;
    border-top: 1px solid #263138;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer__bottom p {
    margin: 0;
    color: #84919A;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}

@media (max-width: 800px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
    }

    .site-nav__list {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.hero {
    padding: 6rem 0 5rem;
    background: #f5f1e8;
}

.hero__inner {
    display: flex;
    align-items: center;
    min-height: 420px;
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero__intro {
    max-width: 680px;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.fan-sites,
.features,
.faq {
    padding: 5rem 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

.fan-sites__grid,
.features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.fan-card,
.features__grid article {
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #fff;
}

.fan-card h3,
.features__grid h3 {
    margin-top: 0;
}

.fan-card a {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
}

.features {
    background: #f8f8f8;
}

.faq__list {
    max-width: 900px;
}

.faq details {
    border-top: 1px solid #dcdcdc;
    padding: 1rem 0;
}

.faq details:last-child {
    border-bottom: 1px solid #dcdcdc;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq details p {
    max-width: 760px;
}

@media (max-width: 700px) {
    .hero {
        padding: 4rem 0;
    }

    .hero__inner {
        min-height: auto;
    }

    .fan-sites__grid,
    .features__grid {
        grid-template-columns: 1fr;
    }
}

/* Global Epic Fans typography */
body,
p,
li,
input,
button,
textarea,
select {
    font-family: Geist, Arial, sans-serif;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
}

h4,
h5,
h6 {
    font-family: Geist, Arial, sans-serif;
}

/* Epic Fans default buttons */
.wp-block-button__link,
.wp-element-button {
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    transform: translateY(-2px);
}

/* Reusable section eyebrow */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: #1C6376;
    font-family: Geist, Arial, sans-serif !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 20px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-eyebrow::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    flex: 0 0 34px;
    background: #1C6376;
}

/* Global body typography */
body,
p,
li,
input,
textarea,
select {
    font-family: Geist, Arial, sans-serif;
    font-weight: 400;
}


/* Global body text colour */
body,
p,
li {
    color: #5D6871;
}

/* Global H3 typography */
h3.wp-block-heading {
    font-size: 25px;
    line-height: 1.1;
    font-weight: 600;
}

@media (max-width: 800px) {
    h3.wp-block-heading {
        font-size: 22px;
        line-height: 1.12;
    }
}

/* Global heading and paragraph spacing */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}

h1 {
    margin-bottom: 28px;
}

h2 {
    margin-top: 0;
    margin-bottom: 0;
    transform: scaleX(var(--epic-condensed-serif-scale, 0.90));
    transform-origin: left center;
}

h2 + h2 {
    margin-top: 0;
}

h2 + p {
    margin-top: 28px;
}

p {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Refine primary navigation to match live site */
.site-nav__list {
    gap: 1.45rem;
}

.site-nav__list a {
    color: #5D6871;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.site-nav__list .menu-item-has-children > a::after {
    content: "⌄";
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.8;
}

.site-nav__list .sub-menu {
    min-width: 170px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #D9DDDF;
    box-shadow: 0 8px 24px rgba(16, 24, 32, 0.10);
}

.site-nav__list .sub-menu a {
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #101820;
}

.site-nav__list .sub-menu a:hover {
    background: #F5F1E8;
}

/* Darken primary navigation */
.site-nav__list a {
    color: #46515A;
}

/* Match live primary navigation typography */
.site-nav__list a {
    color: #101820;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.site-nav__list a:hover,
.site-nav__list a:focus {
    color: #101820;
}

/* Soften primary navigation colour */
.site-nav__list a,
.site-nav__list a:hover,
.site-nav__list a:focus {
    color: #46515A;
}

/* Primary nav dropdown refinements */
.site-nav__list .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-nav__list .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.8;
}

.site-nav__list .sub-menu {
    top: 100%;
    left: -8px;
    margin-top: 0;
    padding-top: 10px;
}

/* Keeps hover active while moving from parent into dropdown */
.site-nav__list .menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

/* Refine nav chevrons + dropdown animation */
.site-nav__list .menu-item-has-children > a::after {
    transform: translateY(0) rotate(45deg);
}

.site-nav__list .sub-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);

    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}







/* Tighten footer menu spacing */
.site-footer__heading {
    margin-bottom: 16px;
}

.site-footer li + li {
    margin-top: 10px;
}

/* Remove gap above footer */
.site-footer {
    margin-top: 0 !important;
}

main#primary {
    margin-bottom: 0;
}

main#primary > *:last-child {
    margin-bottom: 0 !important;
}




/* Homepage topic strip */
.home-topic-strip {
    display: flex;
    align-items: center;
    justify-content: initial;
    gap: 0;
    position: static;
    left: auto;
    width: calc(100vw - 80px);
    max-width: none;
    margin-left: 50%;
    margin-right: auto;
    padding: 0;
    transform: translateX(-50%);
}

.home-topic-strip p {
    flex: 1 1 0;
    position: relative;
    margin: 0;
    color: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.home-topic-strip p:not(:last-child)::after {
    content: "•";
    position: absolute;
    top: 50%;
    right: 0;
    left: auto;
    transform: translate(50%, -50%);
    margin: 0;
    color: #FFD34D;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

/* Mobile navigation */
.site-nav-toggle {
    display: none;
}

@media (max-width: 800px) {
    .site-header__inner {
        min-height: 76px;
        padding: 0 4px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-brand__logo-image {
        width: 32px;
    }

    .site-brand__name {
        font-size: 16px;
    }

    .site-nav-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 0;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }

    .site-nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #101820;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .site-nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 14px 20px 20px;
        background: #FAF8F3;
        border-top: 1px solid #D7DBDE;
        border-bottom: 1px solid #D7DBDE;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity 0.16s ease,
            transform 0.16s ease,
            visibility 0.16s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav__list {
        display: block;
    }

    .site-nav__list > li {
        border-bottom: 1px solid #E1E4E6;
    }

    .site-nav__list > li:last-child {
        border-bottom: 0;
    }

    .site-nav__list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        font-size: 15px;
        line-height: 22px;
    }

    .site-nav__list .menu-item-has-children > a::after {
        width: 7px;
        height: 7px;
        transform: rotate(45deg);
        transition: transform 0.18s ease;
    }

    .site-nav__list .menu-item-has-children.submenu-open > a::after {
        transform: rotate(225deg);
    }

    .site-nav__list .sub-menu {
        position: static;
        display: none;
        margin: 0;
        padding: 0 0 10px 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .site-nav__list .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .site-nav__list .sub-menu a {
        padding: 10px 0;
        font-size: 14px;
        font-weight: 600;
    }

    .site-nav__list .menu-item-has-children::after {
        display: none;
    }
}

/* Mobile homepage hero */
@media (max-width: 800px) {

    /* Give hero content consistent mobile gutters */
    .kt-row-column-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Tighten top of homepage hero */
    .section-eyebrow {
        margin-top: 0;
        margin-bottom: 28px;
    }

}

/* Mobile content gutters */
@media (max-width: 800px) {
    .wp-block-kadence-rowlayout > .kt-row-column-wrap {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* Mobile primary buttons */
@media (max-width: 800px) {
    .wp-block-kadence-advancedbtn,
    .wp-block-kadence-advancedbtn .kb-button,
    .wp-block-buttons,
    .wp-block-button,
    .wp-block-button__link {
        width: 100%;
    }

    .wp-block-kadence-advancedbtn .kb-button,
    .wp-block-button__link {
        justify-content: center;
        text-align: center;
    }
}

/* Mobile topic strip: keep single horizontal line like live site */
@media (max-width: 800px) {
    .home-topic-strip {
        width: max-content;
        max-width: none;
        margin: 0;
        transform: none;
        justify-content: flex-start;
        overflow: visible;
        white-space: nowrap;
    }

    .home-topic-strip p {
        flex: 0 0 auto;
        min-width: 150px;
        text-align: center;
    }

    .home-topic-strip p:not(:last-child)::after {
        right: -12px;
        transform: translate(50%, -50%);
    }

    .home-topic-strip,
    .home-topic-strip * {
        white-space: nowrap;
    }

    .home-topic-strip-wrapper,
    .wp-block-kadence-rowlayout:has(.home-topic-strip) {
        overflow: hidden;
    }
}

/* Mobile footer: match live two-column layout */
@media (max-width: 520px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 38px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__grid > div:nth-child(4) {
        grid-column: 1 / 2;
    }

    .site-footer__bottom {
        margin-top: 48px;
        padding-top: 22px;
    }
}

/* Laptop/intermediate content gutters */
@media (min-width: 801px) and (max-width: 1280px) {
    .wp-block-kadence-rowlayout > .kt-row-column-wrap {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* Centre Advanced Images on tablet/mobile stacked layouts */
@media (max-width: 1280px) {
    .wp-block-kadence-image {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    .wp-block-kadence-image img {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Mobile menu - match live site */
@media (max-width: 800px) {

    .site-nav {
        top: 100%;
        padding: 14px 22px 22px;
        background: #FAF8F3;
        border-top: 1px solid #D7DBDE;
        border-bottom: 1px solid #D7DBDE;
        box-shadow: 0 8px 22px rgba(16, 24, 32, 0.06);
    }

    .site-nav__list {
        margin: 0;
        padding: 0;
    }

    .site-nav__list > li {
        margin: 0;
        border-bottom: 1px solid #D7DBDE;
    }

    .site-nav__list > li > a {
        min-height: 50px;
        padding: 13px 0;
        color: #5D6871;
        font-family: Geist, Arial, sans-serif;
        font-size: 17px;
        font-weight: 700;
        line-height: 24px;
    }

    .site-nav__list > .menu-item-has-children > a {
        color: #101820;
    }

    .site-nav__list .menu-item-has-children > a::after {
        width: 6px;
        height: 6px;
        margin-right: 3px;
        border-width: 0 1px 1px 0;
        opacity: 1;
    }

    .site-nav__list .sub-menu {
        padding: 0 0 10px 16px;
    }

    .site-nav__list .sub-menu li {
        border: 0;
    }

    .site-nav__list .sub-menu a {
        min-height: auto;
        padding: 9px 0;
        color: #5D6871;
        font-size: 15px;
        font-weight: 600;
        line-height: 22px;
    }

    .site-nav-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
        gap: 5px;
    }

    .site-nav-toggle span {
        width: 23px;
        height: 2px;
    }
}

@media (max-width: 800px) {
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
        max-height: calc(100vh - 76px);
        max-height: calc(100dvh - 76px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.is-open {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Mobile submenu behaviour and styling */
@media (max-width: 800px) {

    /* Never open mobile submenus from hover */
    .site-nav__list li:hover > .sub-menu,
    .site-nav__list li:focus-within > .sub-menu {
        display: none;
    }

    /* Open only after tapping the parent */
    .site-nav__list .menu-item-has-children.submenu-open > .sub-menu {
        display: block !important;
    }

    /* Live-site style submenu panel */
    .site-nav__list .sub-menu {
        margin: 0 0 10px;
        padding: 6px;
        background: #ECE9E2;
        border-radius: 8px;
    }

    .site-nav__list .sub-menu li {
        margin: 0;
        padding: 0;
    }

    .site-nav__list .sub-menu a {
        padding: 12px 10px;
        color: #101820;
        background: transparent;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 700;
    }

    .site-nav__list .sub-menu a:hover,
    .site-nav__list .sub-menu a:focus {
        color: #101820;
        background: rgba(255, 255, 255, 0.35);
        opacity: 1;
    }
}

/* Mobile H2 typography */
@media (max-width: 800px) {
    h2.wp-block-heading {
        font-size: 30px !important;
        line-height: 32px !important;
    }
}

/* Global mobile body typography */
@media (max-width: 800px) {
    main p,
    main li {
        font-size: 17px;
        line-height: 26px;
    }
}

/* Force mobile paragraph typography over block-level responsive values */
@media (max-width: 800px) {
    main .wp-block-paragraph {
        font-size: 17px !important;
        line-height: 26px !important;
    }
}

/* Global major section H2 typography */
h2.wp-block-heading {
    font-size: 76px;
    line-height: 73px;
    font-weight: 500;
}

/* Scale H2 line-height with its font size */
h2.wp-block-heading {
    line-height: 0.96;
}

/* App selector */
.app-selector {
    overflow: hidden;
    padding: 5px;
    background: #fff;
    border: 1px solid #D7DBDE;
    border-radius: 10px;
}

.app-selector__item {
    margin: 0 !important;
    min-height: 50px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    color: #5D6871;
    font-family: Geist, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    border-radius: 7px;
    cursor: pointer;
}

.app-selector__item.is-active {
    background: #C8102E;
    color: #fff;
    font-weight: 700;
}

/* Compact desktop selector */
@media (min-width: 801px) {
    .app-selector {
        width: max-content !important;
        max-width: 100%;
        margin-left: auto;
        margin-top: 0;
        transform: translateY(72px);
    }

    .app-selector__item {
        flex: 0 0 auto !important;
        min-height: 42px;
        padding: 10px 16px;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }
}

/* App feature panels */
.app-feature-panel,
.app-feature-panel h1,
.app-feature-panel h2,
.app-feature-panel h3,
.app-feature-panel h4,
.app-feature-panel p,
.app-feature-panel li {
    color: #FFFFFF;
}

.app-feature-panel p,
.app-feature-panel li {
    font-family: Geist, Arial, sans-serif;
}




/* Default button typography - individual block settings may override */
:where(
    .wp-block-kadence-advancedbtn .kb-button,
    .wp-block-button__link,
    .wp-element-button
) {
    font-family: Geist, Arial, sans-serif;
    font-weight: 800;
}


/* Global button hover lift */
.wp-block-button__link,
.wp-element-button,
.wp-block-kadence-advancedbtn .kb-button,
.wp-block-kadence-image a img {
    transition: transform 0.18s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-kadence-advancedbtn .kb-button:hover,
.wp-block-kadence-image a:hover img {
    transform: translateY(-2px);
}

/* App-store badge link structure */
.app-store-badges a {
    display: block;
    width: 100%;
}

/* Feature-panel date label */
.app-feature-panel__date {
    font-family: "Geist", sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0 0 22px 0;
}

/* Match feature-panel eyebrow to live-site tab style */
.app-feature-panel__eyebrow {
    display: inline-block;
    position: relative;
    font-family: "Geist", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0 0 26px 0;
    padding-bottom: 7px;
}

.app-feature-panel__eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: currentColor;
}

/* Refine feature-panel eyebrow underline */
.app-feature-panel__eyebrow::after {
    width: 48px;
    height: 2px;
    background: currentColor;
    opacity: 0.55;
}

/* App CTA structure */
.app-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Shared app CTA button appearance */
.app-cta-row .wp-block-kadence-advancedbtn .kb-button {
    color: #101820;
    background: #FFD769;
    font-size: var(--global-kb-font-size-sm, 0.9rem);
    border-radius: 5px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.app-cta-row .wp-block-kadence-advancedbtn .kb-button:hover,
.app-cta-row .wp-block-kadence-advancedbtn .kb-button:focus {
    color: #101820;
    background: #FDED9E;
}

.app-store-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
}

.app-store-badges > .wp-block-kadence-image {
    margin: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

.app-store-badges img {
    display: block;
    width: auto !important;
    height: 48px;
    max-height: none;
    object-fit: contain;
}

/* Mobile CTA layout */
@media (max-width: 800px) {

    .app-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .app-cta-row > .wp-block-kadence-advancedbtn {
        width: 100%;
    }

    .app-cta-row > .wp-block-kadence-advancedbtn .kb-button {
        width: 100%;
        justify-content: center;
    }

    .app-store-badges {
        width: 100%;
        justify-content: flex-start;
    }

    .app-store-badges img {
        height: 42px;
    }
}

/* Feature panel mobile typography */
@media (max-width: 800px) {

    main .app-feature-panel p.app-feature-panel__eyebrow {
        font-size: 10px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.5px;
    }

    main .app-feature-panel p.app-feature-panel__date {
        font-size: 10px !important;
        line-height: 1.2 !important;
        letter-spacing: 2px;
    }

    .app-feature-panel h2.wp-block-heading {
        font-size: 46px !important;
        line-height: 0.98 !important;
    }
}

/* Refine small mobile labels */
@media (max-width: 800px) {

    main .app-feature-panel p.app-feature-panel__eyebrow,
    main .app-feature-panel p.app-feature-panel__date,
    main p.section-eyebrow {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    main .app-feature-panel p.app-feature-panel__date {
        letter-spacing: 2px;
    }

    main p.section-eyebrow {
        letter-spacing: 1.6px;
    }
}

/* Number app selector items automatically */
.app-selector {
    counter-reset: app-selector-item;
}

.app-selector__item {
    counter-increment: app-selector-item;
}

.app-selector__item::before {
    content: counter(app-selector-item, decimal-leading-zero);
    flex: 0 0 auto;
    margin-right: 10px;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.4px;
    opacity: 0.45;
}

.app-selector__item.is-active::before {
    opacity: 0.65;
}

/* Mobile component typography/layout corrections */
@media (max-width: 800px) {

    /* Keep the red topic strip compact and on one clipped line */
    .home-topic-strip p {
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    .home-topic-strip p:not(:last-child)::after {
        top: 50%;
        right: 0;
        left: auto;
        font-size: 8px;
        line-height: 1;
        transform: translate(50%, -50%);
    }

    /* App selector matches live-site stacked mobile layout */
    .app-selector {
        width: 100% !important;
        max-width: 100%;
    }

    .app-selector__item {
        width: 100% !important;
        box-sizing: border-box;
        justify-content: flex-start;
    }
}

/* Align mobile topic strip closer to live site */
@media (max-width: 800px) {
    .home-topic-strip {
        margin-left: -22px;
    }
}

/* Reusable app feature slider */
.app-feature-panel {
    position: relative;
}

.app-feature-panel[hidden] {
    display: none !important;
}

.app-feature-panel__nav {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.app-feature-panel__nav-button {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.10);
    color: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.app-feature-panel__nav-button:hover,
.app-feature-panel__nav-button:focus-visible {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
}

.app-feature-panel__nav-button--previous {
    left: 14px;
}

.app-feature-panel__nav-button--next {
    right: 14px;
}

@media (max-width: 800px) {
    .app-feature-panel__nav-button {
        top: 18px;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .app-feature-panel__nav-button--previous {
        left: 14px;
    }

    .app-feature-panel__nav-button--next {
        right: 14px;
    }
}

/* App selector state colours */
.app-selector__item {
    background: #FFFFFF !important;
    color: #5D6871 !important;
}

/* First app/property active colour */
.app-selector__item:nth-child(1).is-active {
    background: #C8102E !important;
    color: #FFFFFF !important;
}

/* Second app/property active colour */
.app-selector__item:nth-child(2).is-active {
    background: #702477 !important;
    color: #FFFFFF !important;
}

.app-selector__item:not(.is-active)::before {
    opacity: 0.40;
}

.app-selector__item.is-active::before {
    color: #FFFFFF;
    opacity: 0.65;
}

/* Refine feature cards to match live site */
.feature-card {
    background: #FFFFFF;
    border: 1px solid #D8DCDD;
    padding: 18px;
    margin-right: -1px;
    margin-bottom: -1px;
}

/* Card number + category line */
.feature-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.feature-card__number,
.feature-card__label {
    margin: 0 !important;
    font-family: "Geist", sans-serif;
    font-size: 11px !important;
    line-height: 17px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-card__number {
    color: #5D6871;
    font-weight: 500;
}

.feature-card__label {
    color: #1C6376;
    font-weight: 900;
}

.feature-card__label--accent {
    color: #C8102E;
}

/* Editorial card title */
.feature-card__title {
    margin: 14px 0 8px;
    color: #101820;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px !important;
    font-weight: 600;
    line-height: 1.08 !important;
}

/* Card body */
.feature-card__text {
    margin: 0;
    color: #5D6871;
    font-family: "Geist", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* Feature-card images */
.feature-card .wp-block-kadence-image,
.feature-card .wp-block-image {
    margin: 0;
}

.feature-card img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #E5E0D7;
    border-radius: 8px;
}

/* Refine feature-card body text */
.feature-card p.feature-card__text {
    font-size: 16px !important;
    line-height: 24px !important;
}

/* Mobile feature-card refinements */
@media (max-width: 800px) {

    /* Don't apply the global Kadence gutter again inside the card grid */
    .feature-card-grid > .kt-row-column-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Keep card meta typography compact */
    main .feature-card p.feature-card__number {
        font-size: 9px !important;
        line-height: 14px !important;
    }

    main .feature-card p.feature-card__label {
        font-size: 10px !important;
        line-height: 14px !important;
    }
}

/* Tighten space above feature-card grid on mobile */
@media (max-width: 800px) {
    .feature-card-grid {
        margin-block-start: 10px !important;
        margin-top: 10px !important;
    }
}

/* Tighten stacked feature overview columns on mobile */
@media (max-width: 800px) {
    .feature-overview > .kt-row-column-wrap {
        row-gap: 4px !important;
    }
}

/* Reusable sticky intro column for split-content sections */
@media (min-width: 801px) {
    .sticky-section-intro {
        position: sticky;
        top: 110px;
        align-self: start;
        z-index: 2;
    }
}

/* Sticky columns should behave normally when stacked on mobile */
@media (max-width: 800px) {
    .sticky-section-intro {
        position: static;
    }
}

/* Reusable content-width divider above major sections */
.content-divider-top > .kt-row-column-wrap {
    border-top: 1px solid #D7DBDE;
    padding-top: 72px;
}

/* Reusable legal/link cards */
.legal-link-card {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #D7DBDE !important;
    border-radius: 10px;
    overflow: hidden;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}

.legal-link-card > .kt-row-column-wrap {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    padding: 26px 68px 26px 28px !important;
}

.legal-link-card .wp-block-kadence-column,
.legal-link-card .kt-inside-inner-col {
    position: static !important;
}

.legal-link-card h3 {
    margin-bottom: 10px;
}

.legal-link-card p {
    margin-bottom: 0;
}

.legal-link-card p.legal-link-card__arrow {
    position: absolute !important;
    top: 50% !important;
    right: 28px !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    color: #17657A;
    font-size: 20px !important;
    line-height: 1 !important;
}

.legal-link-card + .legal-link-card {
    margin-top: 8px;
}

.legal-link-stack {
    gap: 8px !important;
    row-gap: 8px !important;
}

@media (max-width: 800px) {
    .legal-link-card > .kt-row-column-wrap {
        padding: 22px 54px 22px 20px !important;
    }
}

.legal-link-card:hover {
    transform: translateX(4px);
    border-color: #17657A;
}

/* Global title for standard pages; homepage uses its own content H1 */
.epic-page-layout__main > h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 82px;
    line-height: 1.05;
    font-weight: 500;
    color: #101820;
    transform: scaleX(var(--epic-condensed-serif-scale));
    transform-origin: left center;
}

/* Tighter tracking for standard page titles */
.epic-page-layout__main > h1 {
    letter-spacing: -0.035em;
}

/* Standard page layout — homepage has its own layout */
body:not(.home) {
    background: #F7F4EE;
}

/* White mobile background for fan-property content pages */
@media (max-width: 700px) {
    body:not(.home):has(.site-brand__name--property) {
        background: #FFFFFF;
    }
}

body:not(.home) .epic-page-layout__main {
    padding-top: 47px;
    padding-bottom: 0;
}

@media (max-width: 800px) {
    body:not(.home) .epic-page-layout__main {
        padding-top: 24px;
        padding-bottom: 64px;
    }
}

/* Global in-content text links */
main a:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay) {
    color: #1C6376;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

main a:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):hover,
main a:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):focus {
    color: #124D5D;
}

/* Shared standard-page reading typography.
   Homepage and specialised components retain their own rules. */
body:not(.home) main.site-shell p,
body:not(.home) main.site-shell li {
    font-size: var(--epic-reading-font-size);
    line-height: var(--epic-reading-line-height);
}

/* Standard page H2 typography — homepage keeps its own larger section headings */
body:not(.home) main.site-shell h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px !important;
    line-height: 44px !important;
    font-weight: 600;
    letter-spacing: 0;
}

/* Reusable legal-page callout */
.legal-callout {
    background: #FFFFFF !important;
    border-left: 4px solid #1C6376 !important;
    margin-bottom: 44px !important;
}

.legal-callout > .kt-row-column-wrap {
    padding: 26px 28px !important;
}

.legal-callout .kt-inside-inner-col {
    padding: 0 !important;
}

.legal-callout p {
    margin: 0 !important;
}

@media (max-width: 800px) {
    .legal-callout > .kt-row-column-wrap {
        padding: 22px 24px !important;
    }
}

/* Standard page H3 typography — homepage keeps its own H3 styling */
body:not(.home) main.site-shell h3 {
    font-family: Geist, Arial, sans-serif;
    font-size: 18px !important;
    line-height: 28px !important;
    font-weight: 700;
    letter-spacing: 0;
}

/* Space between standard-page H2 and following H3 */
body:not(.home) main.site-shell h2 + h3 {
    margin-top: 18px;
}

body:not(.home) main.site-shell h3 {
    margin-bottom: 8px;
}

/* Mobile standard-page heading sizes — homepage keeps its own typography */
@media (max-width: 800px) {
    body:not(.home) .epic-page-layout__main > h1 {
        font-size: 38px;
        line-height: 40px;
    }

    body:not(.home) main.site-shell h2 {
        font-size: 24px !important;
        line-height: 32px !important;
    }
}

/* Contact form checkbox sizing */
.wp-block-kadence-advanced-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.wp-block-kadence-advanced-form label {
    line-height: 1.45;
}

/* Kadence Advanced Form checkbox sizing */
.kb-radio-check-item input.kb-checkbox-style {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px;
    margin: 2px 8px 0 0 !important;
}

.kb-radio-check-item {
    display: flex;
    align-items: flex-start;
}

/* Larger custom tick for Kadence form checkboxes */
.kb-radio-check-item input.kb-checkbox-style {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 1px solid #9AA3AA;
    border-radius: 3px;
    background: #FFFFFF;
    cursor: pointer;
}

.kb-radio-check-item input.kb-checkbox-style:checked {
    background: #1C6376;
    border-color: #1C6376;
}

.kb-radio-check-item input.kb-checkbox-style:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kb-radio-check-item input.kb-checkbox-style:focus-visible {
    outline: 2px solid #1C6376;
    outline-offset: 2px;
}

/* Contact form card */
.contact-form-card > .kt-inside-inner-col {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px !important;
    box-shadow: 0 18px 40px rgba(16, 24, 32, 0.12);
}

.contact-form-card > .kt-inside-inner-col > p:first-child {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 14px !important;
    line-height: 22px !important;
}

@media (max-width: 800px) {
    .contact-form-card > .kt-inside-inner-col {
        padding: 24px 20px !important;
    }
}

/* Contact form finishing touches */
.contact-form-card .kb-adv-form-submit-button {
    background: #1C6376 !important;
    border-color: #1C6376 !important;
    border-radius: 6px !important;
    font-weight: 700;
}

.contact-form-card .kb-adv-form-submit-button:hover,
.contact-form-card .kb-adv-form-submit-button:focus {
    background: #124D5D !important;
    border-color: #124D5D !important;
}

.contact-form-card > .kt-inside-inner-col {
    box-shadow: 0 16px 34px rgba(16, 24, 32, 0.10);
}

/* Space above Kadence contact form response messages */
.contact-form-card .kb-form-message,
.contact-form-card .kb-adv-form-message,
.contact-form-card [class*="success"],
.contact-form-card [class*="message"] {
    margin-top: 14px !important;
}

/* Contact form mobile refinements */
@media (max-width: 800px) {
    /* Let the form card use more of the mobile width */
    .contact-form-card {
        margin-left: -8px;
        margin-right: -8px;
    }

    /* Reduce internal card padding */
    .contact-form-card > .kt-inside-inner-col {
        padding: 20px 16px !important;
    }

    /* Remove Kadence's infield label indentation */
    .contact-form-card .kb-adv-form-label {
        left: 0 !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .contact-form-card .kb-adv-form-field {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Prevent sticky section intros from overlapping blocks in Gutenberg editor */
.editor-styles-wrapper .sticky-section-intro {
    position: static !important;
    top: auto !important;
}

/* Fan landing page section headings */
body.page-template-page-fan-landing main h2 {
    font-size: 58px;
    line-height: 1.02;
}

/* Keep the main app hero headline large */
body.page-template-page-fan-landing .app-feature-panel h2 {
    font-size: 76px;
    line-height: 0.96;
}

@media (max-width: 800px) {
    body.page-template-page-fan-landing main h2 {
        font-size: 38px;
        line-height: 1.04;
    }

    body.page-template-page-fan-landing .app-feature-panel h2 {
        font-size: 52px;
        line-height: 0.98;
    }
}

/* Reusable large feature screenshots */
.feature-showcase-image img {
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(16, 24, 32, 0.14);
    display: block;
}

@media (max-width: 800px) {
    .feature-showcase-image img {
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(16, 24, 32, 0.12);
    }
}

/* Fan feature rows: always show text before showcase image on mobile */
@media (max-width: 800px) {
    body.page-template-page-fan-landing
    .kt-row-column-wrap > .wp-block-kadence-column:has(.feature-showcase-image) {
        order: 2;
    }

    body.page-template-page-fan-landing
    .kt-row-column-wrap > .wp-block-kadence-column:not(:has(.feature-showcase-image)) {
        order: 1;
    }
}

/* Multisite property branding */
.site-brand__name--property span {
    color: #101820;
}

.site-brand--footer .site-brand__name--property span {
    color: #FFFFFF;
}

/* =========================================================
   Epic Fans timeline
   ========================================================= */

.epic-fans-timeline {
    width: 100%;
    margin: 0;
    background: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
}

.epic-fans-timeline__month {
    margin-bottom: 14px;
    color: #786a64;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
}

.epic-fans-timeline__dates {
    display: flex;
    gap: 0;
    width: 100%;
    padding: 0 0 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    border-bottom: 2px solid #8d7e77;
}

.epic-fans-timeline__date {
    position: relative;
    flex: 0 0 78px;
    min-height: 84px;
    padding: 4px 5px 8px;
    text-align: center;
}

.epic-fans-timeline__day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #62544e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    border-color: #c9232c;
    background: #fff3f2;
    color: #c9232c;
}

.epic-fans-timeline__date.is-selected::after {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 1px;
    height: 11px;
    background: #c9232c;
    content: "";
    transform: translateX(-50%);
}

.epic-fans-timeline__fixtures {
    margin-top: 7px;
}

.epic-fans-timeline__fixture-marker {
    display: block;
    color: #6a5e58;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.epic-fans-timeline__events {
    margin-top: 34px;
    overflow: hidden;
    touch-action: pan-y;
}

.epic-fans-timeline__heading {
    margin: 0 0 20px;
    color: #b5121b;
    font-family: Geist, Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.epic-fans-timeline__event-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.epic-fans-timeline__event-card {
    position: relative;
    margin: 0;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid #e4ded9;
    border-radius: 14px;
    background: #fffdfa;
    box-shadow: 0 2px 8px rgba(16, 24, 32, 0.05);
}

.epic-fans-timeline__event-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: #b5121b;
    content: "";
}

.epic-fans-timeline__event-year {
    margin-bottom: 8px;
    color: #b5121b;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.epic-fans-timeline__event-title {
    margin: 0 0 8px;
    color: #554943;
    font-family: Geist, Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

.epic-fans-timeline__event-excerpt {
    margin: 0;
    color: #887872;
    font-size: 16px;
    line-height: 1.45;
}

.epic-fans-timeline__event-category {
    margin-top: 16px;
    color: #9a625f;
    font-size: 13px;
    font-weight: 700;
}

.epic-fans-timeline__empty {
    color: #786a64;
    font-size: 16px;
}


/* Mobile timeline */
@media (max-width: 800px) {

    .epic-fans-timeline__date {
        flex-basis: 58px;
        min-height: 78px;
    }

    .epic-fans-timeline__day {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .epic-fans-timeline__fixture-marker {
        font-size: 9px;
    }

    .epic-fans-timeline__events {
        margin-top: 14px;
    }

    .epic-fans-timeline__heading {
        font-size: 24px;
    }

    .epic-fans-timeline__event-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .epic-fans-timeline__event-card {
        padding: 19px 20px;
    }

    .epic-fans-timeline__event-year {
        font-size: 23px;
    }

    .epic-fans-timeline__event-title {
        font-size: 18px;
    }

    .epic-fans-timeline__event-excerpt {
        font-size: 15px;
    }
}

/* Timeline strip refinements */
.epic-fans-timeline__dates {
    overflow-x: auto;
    overflow-y: hidden;
}

.epic-fans-timeline__fixture-marker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Timeline month navigation + hidden scrollbar */
.epic-fans-timeline__month-row {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    margin-bottom: 14px;
}

.epic-fans-timeline__month {
    margin-bottom: 0;
}

.epic-fans-timeline__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d7e77;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.epic-fans-timeline__arrow:hover,
.epic-fans-timeline__arrow:focus-visible {
    color: #b5121b;
}

/* Compact timeline context label */
.epic-fans-timeline__header-label {
    position: absolute;
    top: 50%;
    left: 54px;
    z-index: 3;

    color: #b5121b;
    font-family: Geist, Arial, sans-serif;
    font-size: 17px;
    line-height: 1;
    font-weight: 800;

    white-space: nowrap;
    transform: translateY(-50%);
}

/* Timeline one-click return to today */
.epic-fans-timeline__today {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 36px;
    padding: 0 11px;

    border: 1px solid #ddd3cc;
    border-radius: 999px;
    background: #FFFFFF;

    color: #786a64;

    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;

    cursor: pointer;

    transform: translateY(-50%);

    box-shadow: 0 3px 10px rgba(16, 24, 32, 0.05);

    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.epic-fans-timeline__today[hidden] {
    display: none !important;
}

.epic-fans-timeline__today:hover,
.epic-fans-timeline__today:focus-visible {
    color: #b5121b;
    border-color: rgba(181, 18, 27, 0.42);
    box-shadow: 0 5px 14px rgba(16, 24, 32, 0.09);
}

.epic-fans-timeline__today-icon {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 700px) {
    .epic-fans-timeline__header-label {
        display: none;
    }

    .epic-fans-timeline__today {
        right: 50px;
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0;
    }

    .epic-fans-timeline__today-text {
        display: none;
    }
}

.epic-fans-timeline__dates {
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.epic-fans-timeline__dates::-webkit-scrollbar {
    display: none;
}

.epic-fans-timeline__dates.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* Timeline compact fixture markers */
.epic-fans-timeline__fixtures {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.epic-fans-timeline__fixture-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
}

.epic-fans-timeline__fixture-badge {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.epic-fans-timeline__fixture-value {
    min-width: 38px;
    text-align: center;
    color: #6a5e58;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 800px) {
    .epic-fans-timeline__fixture-badge {
        width: 15px;
        height: 15px;
    }

    .epic-fans-timeline__fixture-value {
        min-width: 34px;
        font-size: 11px;
    }
}

/* =========================================================
   Premium timeline visual pass
   ========================================================= */

.epic-fans-timeline {
    padding: 22px 24px 26px;
    border: 1px solid #e5ddd7;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 12px 34px rgba(16, 24, 32, 0.07);
}

.epic-fans-timeline__month-row {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    margin-bottom: 8px;
}

.epic-fans-timeline__month {
    color: #6f625c;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.epic-fans-timeline__arrow {
    width: 38px;
    height: 38px;
    border: 1px solid #ddd3cc;
    border-radius: 50%;
    background: #fffdfa;
    color: #786a64;
    font-size: 26px;
    box-shadow: 0 3px 10px rgba(16, 24, 32, 0.05);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}

.epic-fans-timeline__arrow:hover,
.epic-fans-timeline__arrow:focus-visible {
    color: #b5121b;
    border-color: rgba(181, 18, 27, 0.42);
    box-shadow: 0 5px 14px rgba(16, 24, 32, 0.09);
    transform: translateY(-1px);
}

.epic-fans-timeline__dates {
    gap: 2px;
    padding: 2px 0 12px;
    border-bottom: 2px solid #8f817a;
    scroll-snap-type: x proximity;
}

.epic-fans-timeline__date {
    flex: 0 0 74px;
    min-height: 78px;
    padding: 4px 4px 8px;
    scroll-snap-align: center;
}

.epic-fans-timeline__day {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #5d504a;
    font-size: 15px;
    font-weight: 800;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.epic-fans-timeline__date:hover .epic-fans-timeline__day {
    background: #f6efeb;
    transform: translateY(-1px);
}

.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    border: 1px solid #cf343c;
    background: #fff1f0;
    color: #b5121b;
    box-shadow:
        0 0 0 4px rgba(181, 18, 27, 0.06),
        0 4px 12px rgba(181, 18, 27, 0.10);
}

.epic-fans-timeline__date.is-selected::after {
    bottom: -13px;
    width: 2px;
    height: 13px;
    border-radius: 999px;
    background: #cf343c;
}

.epic-fans-timeline__fixtures {
    margin-top: 6px;
    min-height: 20px;
}

.epic-fans-timeline__fixture-marker {
    gap: 5px;
    padding: 3px 6px;
    border: 1px solid #ece4df;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(16, 24, 32, 0.05);
}

.epic-fans-timeline__fixture-badge {
    width: 17px;
    height: 17px;
    border-radius: 50%;
}

.epic-fans-timeline__fixture-value {
    min-width: 34px;
    color: #514640;
    font-size: 11px;
    font-weight: 800;
}

.epic-fans-timeline__events {
    margin-top: 28px;
}

.epic-fans-timeline__heading {
    position: relative;
    margin: 0 0 18px;
    padding-left: 18px;
    color: #b5121b;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.epic-fans-timeline__heading::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 30px;
    border-radius: 999px;
    background: #b5121b;
    content: "";
    transform: translateY(-50%);
}

.epic-fans-timeline__event-list {
    gap: 20px;
}

.epic-fans-timeline__event-card {
    padding: 24px 26px;
    border-color: #e7dfda;
    border-radius: 18px;
    background: color-mix(
        in srgb,
        var(--event-accent, #b5121b) 7%,
        #ffffff
    );
    box-shadow:
        0 4px 12px rgba(16, 24, 32, 0.05),
        0 14px 30px rgba(16, 24, 32, 0.035);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.epic-fans-timeline__event-card:hover {
    transform: translateY(-2px);
    border-color: #d9cec7;
    box-shadow:
        0 6px 16px rgba(16, 24, 32, 0.07),
        0 18px 36px rgba(16, 24, 32, 0.05);
}

.epic-fans-timeline__event-card::before {
    width: 6px;
    background: linear-gradient(
        to bottom,
        #b5121b 0%,
        #d33a43 100%
    );
}

.epic-fans-timeline__event-year {
    margin-bottom: 10px;
    color: #b5121b;
    font-size: 26px;
    font-weight: 900;
}

.epic-fans-timeline__event-title {
    margin-bottom: 10px;
    color: #4e433e;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.25;
}

.epic-fans-timeline__event-excerpt {
    color: #7f706a;
    font-size: 16px;
    line-height: 1.55;
}

.epic-fans-timeline__event-category {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f7efec;
    color: #9b5d5b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

/* Mobile premium timeline */
@media (max-width: 800px) {

    .epic-fans-timeline {
        padding: 16px 14px 20px;
        border-radius: 16px;
    }

    .epic-fans-timeline__month-row {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 6px;
        margin-bottom: 8px;
    }

    .epic-fans-timeline__arrow {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .epic-fans-timeline__month {
        font-size: 13px;
    }

    .epic-fans-timeline__date {
        flex-basis: 56px;
        min-height: 74px;
    }

    .epic-fans-timeline__day {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .epic-fans-timeline__fixture-marker {
        gap: 4px;
        padding: 2px 5px;
    }

    .epic-fans-timeline__fixture-badge {
        width: 15px;
        height: 15px;
    }

    .epic-fans-timeline__fixture-value {
        min-width: 30px;
        font-size: 10px;
    }

    .epic-fans-timeline__events {
        margin-top: 24px;
    }

    .epic-fans-timeline__heading {
        margin-bottom: 16px;
        padding-left: 14px;
        font-size: 23px;
    }

    .epic-fans-timeline__heading::before {
        width: 5px;
        height: 26px;
    }

    .epic-fans-timeline__event-list {
        gap: 14px;
    }

    .epic-fans-timeline__event-card {
        padding: 20px 20px 19px;
        border-radius: 15px;
    }

    .epic-fans-timeline__event-year {
        font-size: 23px;
    }

    .epic-fans-timeline__event-title {
        font-size: 18px;
    }

    .epic-fans-timeline__event-excerpt {
        font-size: 15px;
        line-height: 1.5;
    }

    .epic-fans-timeline__event-category {
        margin-top: 15px;
        font-size: 11px;
    }
}

/* =========================================================
   Timeline refinement pass: tighter dates + edge fade
   ========================================================= */

.epic-fans-timeline__dates {
    gap: 0;
    padding: 2px 18px 12px;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0,0,0,0.22) 14px,
        rgba(0,0,0,1) 38px,
        rgba(0,0,0,1) calc(100% - 38px),
        rgba(0,0,0,0.22) calc(100% - 14px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0,0,0,0.22) 14px,
        rgba(0,0,0,1) 38px,
        rgba(0,0,0,1) calc(100% - 38px),
        rgba(0,0,0,0.22) calc(100% - 14px),
        transparent 100%
    );
}

.epic-fans-timeline__date {
    flex: 0 0 54px;
    min-height: 74px;
    padding: 4px 1px 8px;
}

.epic-fans-timeline__day {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.epic-fans-timeline__fixtures {
    margin-top: 4px;
    min-height: 18px;
}

.epic-fans-timeline__fixture-marker {
    gap: 4px;
    padding: 2px 5px;
}

.epic-fans-timeline__fixture-badge {
    width: 15px;
    height: 15px;
}

.epic-fans-timeline__fixture-value {
    min-width: 28px;
    font-size: 10px;
}

@media (max-width: 800px) {
    .epic-fans-timeline__dates {
        padding: 2px 12px 10px;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            rgba(0,0,0,0.22) 10px,
            rgba(0,0,0,1) 26px,
            rgba(0,0,0,1) calc(100% - 26px),
            rgba(0,0,0,0.22) calc(100% - 10px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            rgba(0,0,0,0.22) 10px,
            rgba(0,0,0,1) 26px,
            rgba(0,0,0,1) calc(100% - 26px),
            rgba(0,0,0,0.22) calc(100% - 10px),
            transparent 100%
        );
    }

    .epic-fans-timeline__date {
        flex-basis: 48px;
        min-height: 68px;
        padding: 4px 0 6px;
    }

    .epic-fans-timeline__day {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .epic-fans-timeline__fixture-badge {
        width: 14px;
        height: 14px;
    }

    .epic-fans-timeline__fixture-value {
        min-width: 24px;
        font-size: 10px;
    }
}

/* =========================================================
   Timeline refinement pass 2
   - tighter dates
   - fixtures below the line like the app
   ========================================================= */

.epic-fans-timeline__panel {
    overflow: hidden;
}

.epic-fans-timeline__dates {
    gap: 0;
    padding: 2px 18px 0;
}

.epic-fans-timeline__date {
    flex: 0 0 44px;
    min-height: 96px;
    padding: 2px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.epic-fans-timeline__day {
    width: 36px;
    height: 36px;
    font-size: 14px;
    margin-bottom: 10px;
}

.epic-fans-timeline__track {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.epic-fans-timeline__date.is-active::after,
.epic-fans-timeline__date--active::after {
    top: 54px;
}

.epic-fans-timeline__fixtures {
    margin-top: 18px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.epic-fans-timeline__fixture-marker {
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.epic-fans-timeline__fixture-badge {
    width: 15px;
    height: 15px;
}

.epic-fans-timeline__fixture-value {
    min-width: 26px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

/* soften line edges a little */
.epic-fans-timeline__track::before {
    opacity: 0.92;
}

@media (max-width: 800px) {
    .epic-fans-timeline__dates {
        padding: 2px 12px 0;
    }

    .epic-fans-timeline__date {
        flex-basis: 40px;
        min-height: 88px;
    }

    .epic-fans-timeline__day {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
    }

    .epic-fans-timeline__date.is-active::after,
    .epic-fans-timeline__date--active::after {
        top: 50px;
    }

    .epic-fans-timeline__fixtures {
        margin-top: 16px;
        min-height: 18px;
        gap: 3px;
    }

    .epic-fans-timeline__fixture-badge {
        width: 14px;
        height: 14px;
    }

    .epic-fans-timeline__fixture-value {
        min-width: 24px;
        font-size: 11px;
    }
}

/* =========================================================
   Timeline structure correction
   - line beneath date numbers
   - fixtures/results beneath the line
   ========================================================= */

.epic-fans-timeline__dates {
    position: relative;
    border-bottom: 0;
    padding-top: 2px;
    padding-bottom: 0;
}

/* Actual horizontal timeline line */
.epic-fans-timeline__dates::after {
    position: absolute;
    z-index: 0;
    top: 54px;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 999px;
    background: #8f817a;
    content: "";
    pointer-events: none;
}

.epic-fans-timeline__date {
    position: relative;
    z-index: 1;
    flex: 0 0 44px;
    min-height: 88px;
    padding: 2px 0 0;
}

.epic-fans-timeline__day {
    margin-bottom: 0;
}

/* Selected-date marker reaches down to the timeline */
.epic-fans-timeline__date.is-selected::after {
    top: 44px;
    bottom: auto;
    width: 2px;
    height: 12px;
    z-index: 2;
}

/* Match markers now sit beneath the timeline */
.epic-fans-timeline__fixtures {
    position: absolute;
    z-index: 3;
    top: 64px;
    left: 50%;
    width: max-content;
    min-height: 0;
    margin: 0;
    transform: translateX(-50%);
}

.epic-fans-timeline__fixture-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 800px) {

    .epic-fans-timeline__dates::after {
        top: 51px;
        left: 12px;
        right: 12px;
    }

    .epic-fans-timeline__date {
        flex-basis: 40px;
        min-height: 84px;
    }

    .epic-fans-timeline__date.is-selected::after {
        top: 42px;
        height: 11px;
    }

    .epic-fans-timeline__fixtures {
        top: 61px;
    }
}

/* =========================================================
   Timeline refinement
   - selected date has NO vertical tick
   - only fixtures/results get vertical ticks
   - fixture ticks align centrally to the timeline line
   ========================================================= */

.epic-fans-timeline__date.is-selected::after {
    display: none;
}

.epic-fans-timeline__dates {
    position: relative;
}

.epic-fans-timeline__dates::after {
    top: 54px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #8f817a;
}

.epic-fans-timeline__date {
    min-height: 74px;
}

.epic-fans-timeline__fixtures {
    top: 61px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.epic-fans-timeline__fixture-marker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.epic-fans-timeline__fixture-marker::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -11px;
    transform: translateX(-50%);
    width: 2px;
    height: 11px;
    border-radius: 999px;
    background: #8f817a;
    pointer-events: none;
}

@media (max-width: 800px) {
    .epic-fans-timeline__dates::after {
        top: 51px;
        left: 12px;
        right: 12px;
    }

    .epic-fans-timeline__date {
        min-height: 70px;
    }

    .epic-fans-timeline__fixtures {
        top: 58px;
    }

    .epic-fans-timeline__fixture-marker::before {
        top: -10px;
        height: 10px;
    }
}

/* =========================================================
   Timeline structural correction
   - line spans entire scrollable month
   - fixture ticks are centred on their dates
   - selected date and actual today are separate states
   ========================================================= */

/* Remove the old viewport-width line. */
.epic-fans-timeline__dates::after {
    display: none;
}

/*
 * Each date contributes one segment of the horizontal line.
 * Because the cells touch, these segments form one continuous
 * line across the complete scrollable month.
 */
.epic-fans-timeline__date::before {
    position: absolute;
    z-index: 0;
    top: 54px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8f817a;
    content: "";
    pointer-events: none;
}

/* No selected-date tick. The circle alone indicates selection. */
.epic-fans-timeline__date.is-selected::after {
    display: none;
}

/*
 * Fixture/result tick belongs to the DATE, not to the badge/score
 * marker, so its centre always matches the centre of the date.
 */
.epic-fans-timeline__date.has-fixture::after {
    position: absolute;
    z-index: 2;
    top: 50px;
    left: 50%;
    display: block;
    width: 2px;
    height: 10px;
    border-radius: 999px;
    background: #8f817a;
    content: "";
    transform: translateX(-50%);
    pointer-events: none;
}

/* Remove the old marker-based tick. */
.epic-fans-timeline__fixture-marker::before {
    display: none;
}

/* Fixture information remains below the line. */
.epic-fans-timeline__fixtures {
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
}

/* Actual calendar date: larger/red, as in the app. */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day {
    color: #b5121b;
    font-size: 19px;
    font-weight: 900;
}

/*
 * Selected date keeps the outlined circle.
 * If selected date is also today, both treatments naturally combine.
 */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    border-color: #cf343c;
    background: #fff1f0;
    color: #b5121b;
}

/* Make sure the complete line fades naturally with the date strip. */
.epic-fans-timeline__dates {
    overflow-x: auto;
    overflow-y: hidden;
}

@media (max-width: 800px) {
    .epic-fans-timeline__date::before {
        top: 51px;
    }

    .epic-fans-timeline__date.has-fixture::after {
        top: 47px;
        height: 10px;
    }

    .epic-fans-timeline__fixtures {
        top: 61px;
    }

    .epic-fans-timeline__date.is-today .epic-fans-timeline__day {
        font-size: 18px;
    }
}

/* =========================================================
   Timeline correction
   - restore selected-date circle
   - restore fixture/result pills
   - prevent bottom clipping
   ========================================================= */

/* Give the below-line fixture/result row enough vertical room. */
.epic-fans-timeline__date {
    min-height: 94px;
}

/* Selected date = outlined circle, independent of today's date. */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    width: 36px;
    height: 36px;
    border: 1.5px solid #cf343c;
    border-radius: 50%;
    background: #fff1f0;
    color: #b5121b;
    box-shadow:
        0 0 0 4px rgba(181, 18, 27, 0.06),
        0 3px 9px rgba(181, 18, 27, 0.10);
}

/* Today remains the larger red number even when another date is selected. */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day {
    color: #b5121b;
    font-size: 19px;
    font-weight: 900;
}

/* If today is also selected, keep both treatments. */
.epic-fans-timeline__date.is-today.is-selected .epic-fans-timeline__day {
    font-size: 19px;
}

/* Fixture/result row below the horizontal line. */
.epic-fans-timeline__fixtures {
    top: 64px;
    min-height: 24px;
}

/* Restore the compact premium tablet/pill. */
.epic-fans-timeline__fixture-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    border: 1px solid #e6ddd7;
    border-radius: 999px;
    background: #ffffff;
    box-shadow:
        0 2px 5px rgba(16, 24, 32, 0.06),
        0 1px 2px rgba(16, 24, 32, 0.04);
    white-space: nowrap;
}

.epic-fans-timeline__fixture-badge {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    object-fit: contain;
}

.epic-fans-timeline__fixture-value {
    min-width: 26px;
    color: #514640;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

/* Fixture tick remains centred on the DATE itself. */
.epic-fans-timeline__date.has-fixture::after {
    top: 50px;
    left: 50%;
    width: 2px;
    height: 10px;
    transform: translateX(-50%);
}


/* Mobile */
@media (max-width: 800px) {

    .epic-fans-timeline__date {
        min-height: 90px;
    }

    .epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
        width: 34px;
        height: 34px;
    }

    .epic-fans-timeline__date.is-today .epic-fans-timeline__day,
    .epic-fans-timeline__date.is-today.is-selected .epic-fans-timeline__day {
        font-size: 18px;
    }

    .epic-fans-timeline__fixtures {
        top: 61px;
    }

    .epic-fans-timeline__fixture-marker {
        gap: 3px;
        padding: 3px 5px;
    }

    .epic-fans-timeline__fixture-badge {
        width: 14px;
        height: 14px;
    }

    .epic-fans-timeline__fixture-value {
        min-width: 24px;
        font-size: 10px;
    }
}

/* =========================================================
   Timeline selectable dates
   ========================================================= */

.epic-fans-timeline__day {
    padding: 0;
    border: 1.5px solid transparent;
    background: transparent;
    font-family: Geist, Arial, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.epic-fans-timeline__day:hover {
    background: #f7efec;
}

.epic-fans-timeline__day:focus-visible {
    outline: 2px solid rgba(181, 18, 27, 0.35);
    outline-offset: 2px;
}

/* selected date always gets the circle */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    border: 1.5px solid #cf343c;
    border-radius: 50%;
    background: #fff1f0;
    color: #b5121b;
    box-shadow:
        0 0 0 4px rgba(181, 18, 27, 0.06),
        0 3px 9px rgba(181, 18, 27, 0.10);
}

/* actual today remains red/larger, selected or not */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day {
    color: #b5121b;
    font-size: 19px;
    font-weight: 900;
}

/* Timeline dates are real links. */
.epic-fans-timeline__day {
    text-decoration: none;
}

.epic-fans-timeline__day:hover,
.epic-fans-timeline__day:focus {
    text-decoration: none;
}

/* =========================================================
   App-style centred timeline selection
   ========================================================= */

/*
 * The selection ring belongs to the VIEWPORT, not an individual date.
 * Dates slide underneath it.
 */
.epic-fans-timeline__dates::before {
    position: sticky;
    z-index: 20;
    top: 2px;
    left: 50%;
    display: block;
    width: 36px;
    height: 36px;
    margin-right: -36px;
    border: 1.5px solid #cf343c;
    border-radius: 50%;
    background: rgba(255, 241, 240, 0.72);
    box-shadow:
        0 0 0 4px rgba(181, 18, 27, 0.05),
        0 3px 9px rgba(181, 18, 27, 0.09);
    content: "";
    transform: translateX(-50%);
    pointer-events: none;
}

/* Cell selection supplies the red text only. The fixed ring is above. */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #b5121b;
}

/* Scroll should settle with a date precisely under the centre ring. */
.epic-fans-timeline__dates {
    scroll-snap-type: x mandatory;
}

.epic-fans-timeline__date {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* Actual today remains red/larger whether selected or not. */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day {
    color: #b5121b;
    font-size: 19px;
    font-weight: 900;
}

@media (max-width: 800px) {
    .epic-fans-timeline__dates::before {
        top: 2px;
        width: 34px;
        height: 34px;
        margin-right: -34px;
    }

    .epic-fans-timeline__date.is-today .epic-fans-timeline__day {
        font-size: 18px;
    }
}

/* =========================================================
   True fixed centre selection ring
   ========================================================= */

.epic-fans-timeline__dates-shell {
    position: relative;
}

/* Disable the previous pseudo-element attempt. */
.epic-fans-timeline__dates::before {
    display: none;
}

/*
 * This ring belongs to the viewport, not to a date.
 * Dates move beneath it exactly like the app.
 */
.epic-fans-timeline__selection-ring {
    position: absolute;
    z-index: 40;
    top: 2px;
    left: 50%;
    display: block;
    width: 36px;
    height: 36px;
    border: 1.5px solid #cf343c;
    border-radius: 50%;
    background: rgba(255, 241, 240, 0.62);
    box-shadow:
        0 0 0 4px rgba(181, 18, 27, 0.05),
        0 3px 9px rgba(181, 18, 27, 0.10);
    transform: translateX(-50%);
    pointer-events: none;
}

/* The date itself no longer draws the selection circle. */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Selected number is red. */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
    color: #b5121b;
}

/* Today is independently larger/red, like the app. */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day {
    color: #b5121b;
    font-size: 19px;
    font-weight: 900;
}

.epic-fans-timeline__dates.is-dragging,
.epic-fans-timeline__dates.is-dragging * {
    cursor: grabbing !important;
    user-select: none;
}

@media (max-width: 800px) {
    .epic-fans-timeline__selection-ring {
        width: 34px;
        height: 34px;
    }

    .epic-fans-timeline__date.is-today .epic-fans-timeline__day {
        font-size: 18px;
    }
}

/* =========================================================
   Timeline interaction polish
   ========================================================= */

/* Dates are links for reliability, but must not LOOK like links. */
.epic-fans-timeline__day,
.epic-fans-timeline__day:link,
.epic-fans-timeline__day:visited,
.epic-fans-timeline__day:hover,
.epic-fans-timeline__day:focus,
.epic-fans-timeline__day:active {
    color: #5d504a;
    text-decoration: none !important;
}

/*
 * Enough virtual space at both ends means even the first/last date
 * can move underneath the fixed centre selector.
 */
.epic-fans-timeline__dates {
    box-sizing: border-box;
    padding-left: calc(50% - 22px);
    padding-right: calc(50% - 22px);
}

/* True fixed selection ring. No white fill. */
.epic-fans-timeline__selection-ring {
    top: 2px;
    left: 50%;
    width: 38px;
    height: 38px;
    border: 1.5px solid #cf343c;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    transform: translateX(-50%);
}

/* Selected date under the centre ring. */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:visited {
    color: #b5121b;
    font-size: 19px;
    font-weight: 900;
    text-decoration: none !important;
}

/* Today's date stays red/larger independently of selection. */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:visited {
    color: #b5121b;
    font-size: 19px;
    font-weight: 900;
    text-decoration: none !important;
}

/* Timeline — interactive football fixture and result pills. */
.epic-fans-timeline__fixture-marker[data-fixture-id] {
    cursor: pointer;
    transition: background-color 160ms ease;
}

.epic-fans-timeline__fixture-marker[data-fixture-id]:hover {
    background-color: #f3eeea;
}

.epic-fans-timeline__fixture-marker[data-fixture-id]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.epic-fans-timeline__dates.is-dragging
.epic-fans-timeline__fixture-marker[data-fixture-id] {
    cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-timeline__fixture-marker[data-fixture-id] {
        transition: none;
    }
}

/* Better mouse-drag behaviour over links. */
.epic-fans-timeline__dates {
    cursor: grab;
    touch-action: pan-y;
}

.epic-fans-timeline__dates.is-dragging {
    cursor: grabbing;
}

.epic-fans-timeline__dates.is-dragging a {
    pointer-events: none;
}

/* Stop browser image/link dragging interfering with timeline dragging. */
.epic-fans-timeline__date,
.epic-fans-timeline__day,
.epic-fans-timeline__fixture-marker,
.epic-fans-timeline__fixture-badge {
    -webkit-user-drag: none;
    user-drag: none;
}

@media (max-width: 800px) {
    .epic-fans-timeline__dates {
        padding-left: calc(50% - 20px);
        padding-right: calc(50% - 20px);
    }

    .epic-fans-timeline__selection-ring {
        width: 36px;
        height: 36px;
    }

    .epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
    .epic-fans-timeline__date.is-today .epic-fans-timeline__day {
        font-size: 18px;
    }
}

/* =========================================================
   Timeline final centre-state emphasis
   ========================================================= */

.epic-fans-timeline__selection-ring {
    width: 40px;
    height: 40px;
    top: 0;
    border: 2.5px solid #cf343c;
    background: transparent;
    box-shadow: none;
}

/* Normal dates. */
.epic-fans-timeline__date .epic-fans-timeline__day,
.epic-fans-timeline__date .epic-fans-timeline__day:link,
.epic-fans-timeline__date .epic-fans-timeline__day:visited {
    color: #5d504a !important;
    font-size: 14px;
    font-weight: 800;
}

/* Selected date beneath the fixed ring. */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:hover {
    color: #c51d27 !important;
    font-size: 21px !important;
    font-weight: 900 !important;
}

/* Actual today remains highlighted even when not selected. */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:hover {
    color: #c51d27 !important;
    font-size: 21px !important;
    font-weight: 900 !important;
}

@media (max-width: 800px) {
    .epic-fans-timeline__selection-ring {
        width: 38px;
        height: 38px;
        border-width: 2.5px;
    }

    .epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
    .epic-fans-timeline__date.is-today .epic-fans-timeline__day {
        font-size: 20px !important;
    }
}

/* =========================================================
   Timeline centre-selector refinement
   ========================================================= */

.epic-fans-timeline__selection-ring {
    top: 3px;
    width: 40px;
    height: 40px;
    border: 2.5px solid #cf343c;
    background: transparent;
}

/* Centred/selected date */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:hover {
    color: #c51620 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

/* Actual today, even when it isn't selected */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:hover {
    color: #c51620 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

@media (max-width: 800px) {
    .epic-fans-timeline__selection-ring {
        top: 2px;
        width: 38px;
        height: 38px;
    }

    .epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
    .epic-fans-timeline__date.is-today .epic-fans-timeline__day {
        font-size: 20px !important;
    }
}

/* =========================================================
   Timeline final visual controls
   ========================================================= */

/* Arrow buttons */
.epic-fans-timeline__arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #ddd3cc;
    border-radius: 50%;
    background: #fffdfa;
    color: #786a64;
    box-shadow: 0 3px 10px rgba(16, 24, 32, 0.05);
    line-height: 1;
}

/* Disable every older pseudo-chevron rule. */
.epic-fans-timeline__arrow::before {
    content: none !important;
    display: none !important;
}

.epic-fans-timeline__arrow-icon {
    display: block;
    width: 15px;
    height: 15px;
    overflow: visible;
}

.epic-fans-timeline__arrow-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-timeline__arrow:hover,
.epic-fans-timeline__arrow:focus-visible {
    color: #b5121b;
    border-color: rgba(181, 18, 27, 0.42);
}

/* Never move the arrow button on hover. */
.epic-fans-timeline__arrow:hover,
.epic-fans-timeline__arrow:focus-visible {
    transform: none;
}

/* Date visual box */
.epic-fans-timeline__day,
.epic-fans-timeline__day:link,
.epic-fans-timeline__day:visited,
.epic-fans-timeline__day:hover,
.epic-fans-timeline__day:focus,
.epic-fans-timeline__day:active {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5d504a;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transform: none !important;
}

/* Kill the old hover lift/background completely. */
.epic-fans-timeline__date:hover .epic-fans-timeline__day {
    background: transparent;
    transform: none !important;
}

/*
 * The ring is exactly the same 40x40 box as the date.
 * Both are centred on the same timeline midpoint.
 */
.epic-fans-timeline__selection-ring {
    top: 2px;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid #cf343c;
    border-radius: 50%;
    background: rgba(207, 52, 60, 0.055);
    box-shadow: none;
    transform: translateX(-50%);
}

/* Selected = red but normal-sized, like the app. */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:hover {
    border: 0;
    background: transparent;
    color: #c51620 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    box-shadow: none;
}

/* Today = red and larger. */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:hover {
    color: #c51620 !important;
    font-size: 21px !important;
    font-weight: 900 !important;
}

/* Three cards across on normal desktop widths. */
.epic-fans-timeline__event-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.epic-fans-timeline__event-card {
    padding: 22px 22px 20px;
}

.epic-fans-timeline__event-year {
    font-size: 24px;
}

.epic-fans-timeline__event-title {
    font-size: 18px;
}

.epic-fans-timeline__event-excerpt {
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 1100px) and (min-width: 801px) {
    .epic-fans-timeline__event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .epic-fans-timeline__arrow {
        width: 34px;
        height: 34px;
    }

    .epic-fans-timeline__arrow-icon {
        width: 14px;
        height: 14px;
    }

    .epic-fans-timeline__day,
    .epic-fans-timeline__day:link,
    .epic-fans-timeline__day:visited {
        width: 38px;
        height: 38px;
    }

    .epic-fans-timeline__selection-ring {
        top: 2px;
        width: 38px;
        height: 38px;
    }

    .epic-fans-timeline__date.is-selected .epic-fans-timeline__day {
        font-size: 14px !important;
    }

    .epic-fans-timeline__date.is-today .epic-fans-timeline__day {
        font-size: 20px !important;
    }

    .epic-fans-timeline__event-list {
        grid-template-columns: 1fr;
    }

    .epic-fans-timeline__event-card {
        padding: 20px;
    }
}


/* Selected-date text alignment without moving the date box */
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-selected .epic-fans-timeline__day:hover {
    box-sizing: border-box;
    padding-top: 3px;
}

/* Final ring vertical alignment */
.epic-fans-timeline__selection-ring {
    top: 4px !important;
}

/* Slightly stronger emphasis for today's date */
.epic-fans-timeline__date.is-today .epic-fans-timeline__day,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:link,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:visited,
.epic-fans-timeline__date.is-today .epic-fans-timeline__day:hover {
    font-size: 23px !important;
}

/* =========================================================
   Timeline branded calendar — Option B, stage 1
   Shared design, using each property's configured accent.
   ========================================================= */

.epic-fans-timeline .epic-fans-timeline__month-row {
    background: var(--property-accent, #c00);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.epic-fans-timeline .epic-fans-timeline__header-label {
    left: 68px;
}

.epic-fans-timeline .epic-fans-timeline__today {
    right: 66px;
}

@media (max-width: 700px) {
    .epic-fans-timeline .epic-fans-timeline__today {
        right: 50px;
    }
}

.epic-fans-timeline .epic-fans-timeline__month {
    color: #ffffff;
}

.epic-fans-timeline .epic-fans-timeline__header-label {
    color: #ffffff;
}

.epic-fans-timeline .epic-fans-timeline__arrow {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.epic-fans-timeline .epic-fans-timeline__arrow:hover,
.epic-fans-timeline .epic-fans-timeline__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 800px) {
    .epic-fans-timeline .epic-fans-timeline__month-row {
        padding: 8px;
        border-radius: 10px;
    }
}

/* =========================================================
   Smooth kinetic timeline movement
   Browser snapping is replaced by JS momentum + soft settling.
   ========================================================= */

.epic-fans-timeline__dates {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    overscroll-behavior-x: contain;
}

.epic-fans-timeline__date {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

/* Timeline heading refinements */
.epic-fans-timeline__month {
    font-size: 18px !important;
}

/* Remove decorative line after "On this day in …" */
.epic-fans-timeline__heading::after {
    display: none !important;
    content: none !important;
}

/* Remove decorative line before "On this day in …" */
.epic-fans-timeline__heading::before {
    display: none !important;
    content: none !important;
}


/* Final heading alignment */
.epic-fans-timeline__heading {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* =========================================================
   Timeline cards: app category visuals
   ========================================================= */

.epic-fans-timeline__event-card {
    position: relative;
    border-left-color: var(--event-accent, #c51f2d) !important;
}

.epic-fans-timeline__event-year {
    color: var(--event-accent, #c51f2d) !important;
    padding-right: 34px;
}

.epic-fans-timeline__event-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 22px;
    height: 22px;
    color: var(--event-accent, #c51f2d);
    display: grid;
    place-items: center;
}

.epic-fans-timeline__event-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-timeline__event-category {
    color: var(--event-accent, #c51f2d) !important;
    background: color-mix(
        in srgb,
        var(--event-accent, #c51f2d) 12%,
        white
    ) !important;
}

/* =========================================================
   Timeline card category accent fixes
   ========================================================= */

/* Category colour must control the card's left accent */
.epic-fans-timeline__event-card {
    border-left-color: var(--event-accent, #c51f2d) !important;
}

/* Older card styling draws the stripe as a pseudo-element */
.epic-fans-timeline__event-card::before {
    background: var(--event-accent, #c51f2d) !important;
    border-color: var(--event-accent, #c51f2d) !important;
}

/* Solid app-style category icons */
.epic-fans-timeline__event-icon svg {
    fill: currentColor !important;
    stroke: none !important;
}

/* Tighten gap between timeline rail and event section */
.epic-fans-timeline__events {
    margin-top: 16px !important;
}

/* =========================================================
   Timeline event card links
   ========================================================= */

.epic-fans-timeline__event-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
    border-radius: inherit;
}

.epic-fans-timeline__event-link .epic-fans-timeline__event-card {
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card {
    transform: translateY(-2px);
}

.epic-fans-timeline__event-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 14px;
}

/* =========================================================
   Event slide-over drawer
   ========================================================= */

.epic-fans-event-drawer {
    --event-accent: #c51f2d;

    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.26s;
}

.epic-fans-event-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.epic-fans-event-drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(20, 20, 20, 0.38);
    opacity: 0;
    cursor: default;
    transition: opacity 0.24s ease;
}

.epic-fans-event-drawer.is-open
.epic-fans-event-drawer__backdrop {
    opacity: 1;
}

.epic-fans-event-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(560px, 48vw);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(.22, .8, .3, 1);
    overflow: hidden;
}

.epic-fans-event-drawer.is-open
.epic-fans-event-drawer__panel {
    transform: translateX(0);
}

.epic-fans-event-drawer__scroll {
    position: relative;
    height: 100%;
    overflow-y: auto;
    padding: 64px 44px 12px;
}

.epic-fans-event-drawer__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.epic-fans-event-drawer__close:hover {
    background: #f5f5f5;
}

.epic-fans-event-drawer__close span,
.epic-app-promo-mobile__close span {
    display: grid;
    place-items: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    transform: translateY(-1px);
}

.epic-fans-event-drawer__year {
    margin: 0 44px 9px 0;
    color: var(--event-accent);
    font-size: 18px;
    font-weight: 800;
}

.epic-fans-event-drawer__icon {
    position: absolute;
    top: 66px;
    right: 45px;
    width: 32px;
    height: 32px;
    color: var(--event-accent);
}

.epic-fans-event-drawer__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: none;
}

.epic-fans-event-drawer__title {
    margin: 0 0 18px;
    padding: 0;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.08;
    font-weight: 700;
}

.epic-fans-event-drawer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 28px;
}

.epic-fans-event-drawer__category {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.epic-fans-event-drawer__category {
    color: var(--event-accent);
    background: color-mix(
        in srgb,
        var(--event-accent) 12%,
        white
    );
}

.epic-fans-event-drawer__content {
    color: #303030;
    font-size: var(--epic-reading-font-size);
    line-height: var(--epic-reading-line-height);
}

.epic-fans-event-drawer__content p {
    margin: 0 0 1.1em;
    font-size: var(--epic-reading-font-size);
    line-height: var(--epic-reading-line-height);
}

/* Shared Premium story popup. */
.epic-fans-event-drawer__premium-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

.epic-fans-event-drawer__premium-dialog-panel {
    box-sizing: border-box;
    width: min(100%, 420px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 30px 25px 25px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.epic-fans-event-drawer__premium-dialog-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--epic-premium-prompt-color, #c51f2d);
}

.epic-fans-event-drawer__premium-dialog-panel h2 {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    text-align: center !important;
    text-indent: 0;
    transform: none;
    position: static;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.3;
    color: #242424;
}

.epic-fans-event-drawer__premium-dialog-panel p {
    margin: 0 0 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.epic-fans-event-drawer__premium-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.epic-fans-event-drawer__premium-dialog-upgrade,
.epic-fans-event-drawer__premium-dialog-cancel {
    box-sizing: border-box;
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.epic-fans-event-drawer__premium-dialog-upgrade {
    border: 1px solid var(--epic-premium-prompt-color, #c51f2d);
    background: var(--epic-premium-prompt-color, #c51f2d);
    color: #fff;
}

.epic-fans-event-drawer__premium-dialog-cancel {
    border: 1px solid #dedede;
    background: #f5f5f5;
    color: #333;
}

.epic-fans-event-drawer__premium-dialog-upgrade:hover {
    filter: brightness(0.9);
    color: #fff;
    text-decoration: none;
}

.epic-fans-event-drawer__premium-dialog-cancel:hover {
    background: #eaeaea;
}

.epic-fans-event-drawer__premium-dialog-actions
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/*
 * Standalone Event story performance:
 * Display the server-rendered, cache-safe public preview immediately.
 * Premium content remains protected by the authenticated REST endpoint.
 * The frontend may still replace the preview after Premium verification.
 */

/* Premium preview on standalone event pages. */
.epic-fans-event-detail__story-preview {
    position: relative;
    max-height: 185px;
    overflow: hidden;
}

.epic-fans-event-detail__story-preview::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 85px;
    background: linear-gradient(
        to bottom,
        transparent,
        #fff
    );
    pointer-events: none;
}

.epic-fans-event-detail__premium-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0 24px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
    color: var(--epic-premium-prompt-color, #c51f2d);
    text-decoration: none;
    cursor: pointer;
}

.epic-fans-event-detail__premium-link svg {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.epic-fans-event-detail__premium-link:hover {
    text-decoration: underline;
}

.epic-fans-event-detail__premium-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Keep standalone Premium links in the property accent color. */
.epic-fans-event-detail a.epic-fans-event-detail__premium-link,
.epic-fans-event-detail a.epic-fans-event-detail__premium-link:visited,
.epic-fans-event-detail a.epic-fans-event-detail__premium-link:hover {
    color: var(--epic-premium-prompt-color, #c51f2d) !important;
}

/*
 * Event drawer story performance:
 * Show the cache-safe public preview immediately.
 * Premium access checks and full-story retrieval remain unchanged.
 */

/* Shared Premium story preview. */
.epic-fans-event-drawer__story-preview {
    position: relative;
    max-height: 185px;
    overflow: hidden;
}

.epic-fans-event-drawer__story-preview::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 85px;
    background: linear-gradient(
        to bottom,
        transparent,
        #fff
    );
    pointer-events: none;
}

.epic-fans-event-drawer__premium-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0 24px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
    color: var(--epic-premium-prompt-color, #c51f2d);
    text-decoration: none;
    cursor: pointer;
}

.epic-fans-event-drawer__premium-link svg {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.epic-fans-event-drawer__premium-link:hover {
    text-decoration: underline;
}

.epic-fans-event-drawer__premium-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 3px;
}

.epic-fans-event-drawer__sources {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-wrap: wrap;
    column-gap: 4px;
}

.epic-fans-event-drawer__sources h3 {
    margin: 0 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.25;
}

.epic-fans-event-drawer__sources p {
    margin: 0;
    color: #94837f;
    font-size: 15px;
    line-height: 1.45;
}

.epic-fans-event-drawer__sources-title {
    color: #94837f;
    font-size: 15px;
    line-height: 1.45;
}

.epic-fans-event-drawer__taxonomy {
    margin-top: 0;
}

.epic-fans-event-drawer__taxonomy p {
    margin: 0;
    color: #94837f;
    font-size: 15px;
    line-height: 1.45;
}

.epic-fans-event-drawer__taxonomy p[hidden] {
    display: none !important;
}

.epic-fans-event-drawer__full-link,
.epic-fans-event-drawer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--property-accent, #C51F2D);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.epic-fans-event-drawer__full-link,
.epic-fans-event-drawer__top-link {
    color: var(--property-accent, #C51F2D) !important;
}

.epic-fans-event-drawer__full-link:hover,
.epic-fans-event-drawer__top-link:hover,
.epic-fans-event-drawer__top-link:focus {
    text-decoration: underline !important;
}

@media (max-width: 700px) {

    .epic-fans-event-drawer__panel {
        width: 100%;
        max-width: none;
    }

    .epic-fans-event-drawer__scroll {
        padding: 62px 22px calc(58px + env(safe-area-inset-bottom, 0px));
    }

    .epic-fans-event-drawer__icon {
        top: 64px;
        right: 24px;
    }

    .epic-fans-event-drawer__title {
        font-size: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .epic-fans-event-drawer,
    .epic-fans-event-drawer__panel,
    .epic-fans-event-drawer__backdrop {
        transition: none;
    }
}

/* =========================================================
   Standalone event article
   Mirrors the event drawer visual language.
   ========================================================= */

/* The WordPress shell title is intentionally blank on event routes. */
body.epic-fans-event-route h1:empty,
body.epic-fans-event-route .entry-title:empty {
    display: none !important;
    margin: 0 !important;
}

/* Remove excess shell space left by the suppressed editor page title. */
body.epic-fans-event-route .entry-header:has(h1:empty) {
    display: none;
}

.epic-fans-event-detail {
    --event-accent: #c51f2d;

    position: relative;
    max-width: 980px;
    margin: 20px auto 48px;
    padding: 42px 48px 46px;

    background: #fff;
    border: 1px solid #e4ddd6;
    border-left: 6px solid var(--event-accent);
    border-radius: 18px;

    box-shadow: 0 12px 34px rgba(20, 24, 28, 0.07);
}

.epic-fans-event-detail__top {
    position: relative;
    min-height: 30px;
    padding-right: 50px;
}

.epic-fans-event-detail__date {
    color: var(--event-accent);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.epic-fans-event-detail__icon {
    position: absolute;
    top: -2px;
    right: -14px;

    width: 32px;
    height: 32px;

    color: var(--event-accent);
}

.epic-fans-event-detail__icon svg {
    width: 100%;
    height: 100%;

    fill: currentColor;
    stroke: none;
}

.epic-fans-event-detail__title {
    margin: 12px 0 13px !important;

    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 700;
}

.epic-fans-event-detail__story-title {
    max-width: 830px;
    margin: 0 0 22px;

    color: #504640;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
}

.epic-fans-event-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: 0 0 30px;
}

.epic-fans-event-detail__category {
    display: inline-flex;
    align-items: center;

    min-height: 26px;
    padding: 5px 10px;

    border-radius: 5px;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.epic-fans-event-detail__category {
    color: var(--event-accent);

    background: color-mix(
        in srgb,
        var(--event-accent) 12%,
        white
    );
}

.epic-fans-event-detail__content {
    max-width: 840px;

    color: #4d555b;
    font-size: var(--epic-reading-font-size);
    line-height: var(--epic-reading-line-height);
}

body:not(.home) main.site-shell
.epic-fans-event-detail__content p {
    margin: 0 0 1.25em;
    font-size: var(--epic-reading-font-size);
    line-height: var(--epic-reading-line-height);
}

.epic-fans-event-detail__sources {
    max-width: 840px;

    margin-top: 34px;
    padding-top: 22px;

    border-top: 1px solid #e6e0db;
}

.epic-fans-event-detail__sources h2 {
    margin: 0 0 8px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.25;
}

.epic-fans-event-detail__sources p {
    margin: 0;
    color: #94837f;
    font-size: 15px;
    line-height: 1.45;
}


/* Drawer secondary "On this day..." heading */
.epic-fans-event-drawer__story-title {
    margin: -3px 0 22px;

    color: #665951;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}


/* Full date in drawer */
.epic-fans-event-drawer__year {
    font-size: 18px;
    font-weight: 800;
}


@media (max-width: 700px) {

    body.epic-fans-event-route .epic-fans-event-detail {
        margin: 0 0 28px;
        padding: 0 0 28px;

        background: transparent;
        border: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.epic-fans-event-route .epic-fans-event-detail__top {
        min-height: 0;
        padding-right: 0;
    }

    body.epic-fans-event-route .epic-fans-event-detail__icon {
        top: 2px;
        right: 0;
        width: 32px;
        height: 32px;
    }

    body.epic-fans-event-route .epic-fans-event-detail__title {
        padding-right: 34px;
        margin-bottom: 12px !important;
        font-size: 29px;
        line-height: 1.02;
    }

    body.epic-fans-event-route .epic-fans-event-detail__story-title {
        margin-bottom: 16px;
        font-size: 16px !important;
        line-height: 1.34 !important;
    }

    body.epic-fans-event-route .epic-fans-event-detail__meta {
        gap: 6px;
        margin-bottom: 14px;
    }

    body.epic-fans-event-route .epic-fans-event-detail__actions {
        gap: 8px;
        margin-bottom: 26px;
    }

    body.epic-fans-event-route .epic-fans-event-detail__content {
        font-size: var(--epic-reading-font-size);
        line-height: var(--epic-reading-line-height);
    }

}

/* Event page card width + remove left accent stripe */
.epic-fans-event-detail {
    max-width: none !important;
    width: 100% !important;
}

@media (min-width: 701px) {
    .epic-fans-event-detail {
        border-left: 1px solid #e4ddd6 !important;
    }
}

/* Use full width inside standalone event card */
.epic-fans-event-detail__story-title,
.epic-fans-event-detail__content,
.epic-fans-event-detail__sources {
    max-width: none !important;
    width: 100%;
}

/* Event article Sources heading hierarchy */
.epic-fans-event-detail__sources h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.25;
}

/* Event category is semantically H3 but remains visually a pill */
.epic-fans-event-detail__category {
    margin: 0;
}

/* Keep event category semantic H3 visually identical to category pill */
.epic-fans-event-detail__meta {
    align-items: center;
}

.epic-fans-event-detail h3.epic-fans-event-detail__category {
    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 5px 10px !important;

    border-radius: 5px !important;

    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: normal !important;

    color: var(--event-accent) !important;
    background: color-mix(
        in srgb,
        var(--event-accent) 12%,
        white
    ) !important;
}

/* Match category H3 pill height exactly to sub-category pill */
.epic-fans-event-detail h3.epic-fans-event-detail__category,
.epic-fans-event-detail__sub-category {
    display: inline-flex !important;
    align-items: center !important;

    height: 26px !important;
    min-height: 26px !important;
    padding: 0 10px !important;

    box-sizing: border-box !important;

    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;

    margin: 0 !important;
}

/* Make category H3 text match sub-category pill exactly */
.epic-fans-event-detail h3.epic-fans-event-detail__category {
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Event category H3: override standard-page H3 typography inside pill */
body:not(.home) main.site-shell
.epic-fans-event-detail
h3.epic-fans-event-detail__category {
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    height: 26px !important;
    min-height: 26px !important;
    padding: 0 10px !important;
    margin: 0 !important;
}

/* Timeline typography — independent of semantic heading tags */
.epic-fans-timeline__heading,
.epic-fans-timeline__event-year,
.epic-fans-timeline__event-title {
    font-family: Georgia, "Times New Roman", serif !important;
}

/* Event page timeline intro */
.event-timeline-intro {
    margin: 0 0 18px;
}

.event-timeline-intro .timeline-eyebrow {
    margin-bottom: 6px;

    color: #8a7668;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.event-timeline-intro .timeline-title {
    margin-bottom: 5px;

    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.event-timeline-intro .timeline-copy {
    margin: 0;

    color: #667078;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .event-timeline-intro .timeline-title {
        font-size: 21px;
    }

    .event-timeline-intro .timeline-copy {
        font-size: 15px;
    }
}

/* =========================================================
   Event article media
   ========================================================= */

.epic-fans-event-detail__content::after {
    content: "";
    display: block;
    clear: both;
}

.epic-fans-event-detail__image--desktop {
    float: right;

    width: 320px;
    max-width: 40%;

    margin: 0 0 22px 30px;
}

.epic-fans-event-detail__image--inline {
    display: none;
}

.epic-fans-event-detail__image img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 390px;
    margin-left: auto;
    margin-right: auto;

    object-fit: contain;
    object-position: top center;

    border-radius: 12px;
}

.epic-fans-event-detail__image figcaption {
    margin-top: 7px;

    color: #7b8388;
    font-size: 12px;
    line-height: 1.5;
}

.epic-fans-event-detail__image figcaption a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.epic-fans-event-detail__video {
    width: 100%;
    max-width: none;
    margin-top: 30px;
}

.epic-fans-event-detail__video-link {
    display: block;

    color: inherit;
    text-decoration: none;
}

.epic-fans-event-detail__video-thumb {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #111;
    border-radius: 12px;
}

.epic-fans-event-detail__video-thumb img {
    display: block;

    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.2s ease;
}

.epic-fans-event-detail__video-play {
    position: absolute;
    top: 50%;
    left: 50%;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    padding-left: 4px;

    background: rgba(0, 0, 0, 0.78);
    border-radius: 50%;

    color: #fff;
    font-size: 23px;
    line-height: 1;

    transform: translate(-50%, -50%);
}

.epic-fans-event-detail__video-label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;

    color: #30383d;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {

    .epic-fans-event-detail__video-link:hover
    .epic-fans-event-detail__video-thumb img {
        transform: scale(1.02);
    }

    .epic-fans-event-detail__video-link:hover
    .epic-fans-event-detail__video-label {
        color: var(--event-accent);
    }
}

@media (max-width: 700px) {

    .epic-fans-event-detail__image--desktop {
        display: none;
    }

    .epic-fans-event-detail__image--inline {
        display: block;
        float: none;

        width: 100%;
        max-width: none;

        margin: 24px 0 26px;
    }

    .epic-fans-event-detail__image--inline img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: none;

        object-fit: contain;
    }

    .epic-fans-event-detail__video {
        margin-top: 24px;
    }

    .epic-fans-event-detail__video-play {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

}

/* =========================================================
   Event drawer media
   ========================================================= */

.epic-fans-event-drawer__event-image {
    margin: 22px 0 26px;
}

.epic-fans-event-drawer__event-image img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 420px;

    object-fit: contain;
    object-position: center top;

    border-radius: 12px;
}

.epic-fans-event-drawer__event-image figcaption {
    margin-top: 7px;

    color: #7b8388;
    font-size: 12px;
    line-height: 1.5;
}

.epic-fans-event-drawer__event-image figcaption a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.epic-fans-event-drawer__video {
    display: block;

    margin: 26px 0 6px;

    color: inherit;
    text-decoration: none;
}

.epic-fans-event-drawer__video-thumb {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #111;
    border-radius: 12px;
}

.epic-fans-event-drawer__video-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.epic-fans-event-drawer__video-play {
    position: absolute;
    top: 50%;
    left: 50%;

    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    padding-left: 3px;

    background: rgba(0, 0, 0, 0.78);
    border-radius: 50%;

    color: #fff;
    font-size: 21px;

    transform: translate(-50%, -50%);
}

.epic-fans-event-drawer__video-label {
    margin-top: 9px;

    color: #30383d;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
}

/* Shared image captions and credits — all fan properties */
.epic-fans-event-detail__image figcaption,
.epic-fans-event-drawer__event-image figcaption,
.epic-fans-profile__figure figcaption,
.epic-fans-rankings__details figcaption {
    margin-top: 10px;
    text-align: center;
}

.epic-fans-event-detail__image-caption,
.epic-fans-event-drawer__image-caption,
.epic-fans-profile__image-caption,
.epic-fans-rankings__caption,
.epic-media-caption {
    display: block;
    margin: 0 0 6px;
    color: #6F6F6F;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    white-space: normal;
}

.epic-fans-event-detail__image-credit,
.epic-fans-event-drawer__image-credit,
.epic-fans-profile__image-credit,
.epic-fans-rankings__credit,
.epic-media-credit {
    display: block;
    margin: 0;
    color: #9A9A9A;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    font-style: italic;
    text-align: center;
}

/* =========================================================
   Video title overlay inside thumbnail
   ========================================================= */

.epic-fans-event-detail__video-thumb,
.epic-fans-event-drawer__video-thumb {
    position: relative;
    overflow: hidden;
}

.epic-fans-event-detail__video-thumb::after,
.epic-fans-event-drawer__video-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44%;
    z-index: 1;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0)
    );

    pointer-events: none;
}

.epic-fans-event-detail__video-thumb
> .epic-fans-event-detail__video-label,
.epic-fans-event-drawer__video-thumb
> .epic-fans-event-drawer__video-label {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 3;

    margin: 0;

    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;

    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.epic-fans-event-detail__video-play,
.epic-fans-event-drawer__video-play {
    z-index: 3;
}

.epic-fans-event-detail__video-link,
.epic-fans-event-drawer__video {
    text-decoration: none;
}

/* =========================================================
   Video hover refinements
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    /* Drawer: same subtle thumbnail zoom as event page */
    .epic-fans-event-drawer__video:hover
    .epic-fans-event-drawer__video-thumb img {
        transform: scale(1.02);
    }

    .epic-fans-event-drawer__video-thumb img {
        transition: transform 0.2s ease;
    }

    /* Event page: keep overlay title readable on hover */
    .epic-fans-event-detail__video-link:hover
    .epic-fans-event-detail__video-label {
        color: #FFFFFF;
        text-decoration: none;
    }

}

/* =========================================================
   Click-to-load YouTube player
   ========================================================= */

.epic-fans-event-detail__video-player,
.epic-fans-event-drawer__video-player {
    position: relative;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 16 / 9;

    background: #000;
    border-radius: 12px;
}

.epic-fans-event-detail__video-player iframe,
.epic-fans-event-drawer__video-player iframe {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    border: 0;
}

.epic-fans-event-detail__video-player {
    max-width: none;
}

.epic-fans-event-drawer__video-player {
    margin: 26px 0 6px;
}

/* =========================================================
   Profile catalogue cards
   ========================================================= */

.epic-fans-profile {
    display: grid;
    gap: 20px;
}

/* Profile section navigation */
.epic-fans-profile__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    overflow-x: visible;
    border-bottom: none;
}

main a.epic-fans-profile__tab:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay) {
    display: inline-block;
    flex: 0 0 auto;
    padding: 8px 0 6px;
    margin-bottom: 0;
    border-bottom: 3px solid transparent;
    color: #827771;
    font-family: Geist, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Profile tab hover and active states */
main a.epic-fans-profile__tab:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):hover,
main a.epic-fans-profile__tab:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):focus-visible {
    color: #b5121b;
    text-decoration: none;
}

main a.epic-fans-profile__tab.is-active:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay) {
    color: #b5121b;
    border-bottom-color: #b5121b;
    text-decoration: none;
}

@media (max-width: 700px) {
    .epic-fans-profile__nav {
        gap: 22px;
        overflow-x: auto;
    }

    main a.epic-fans-profile__tab {
        font-size: 15px;
        padding: 8px 0 6px;
    }
}

.epic-fans-profile__item {
    min-width: 0;
    padding: 36px 40px;

    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 18px;

    box-shadow: 0 12px 34px rgba(20, 24, 28, 0.07);
}

/* Shared card-free primary content on narrow mobile screens */
@media (max-width: 700px) {
    .epic-fans-profile__item {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.epic-fans-profile__title {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    transform: scaleX(var(--epic-condensed-serif-scale));
    transform-origin: left center;
}

.epic-fans-profile__metadata {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 28px;
}

.epic-fans-profile__metadata > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}

.epic-fans-profile__metadata dt {
    font-weight: 700;
}

.epic-fans-profile__metadata dd {
    margin: 0;
}

.epic-fans-profile__figure {
    margin: 24px 0 0;
}

.epic-fans-profile__figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    margin-inline: auto;
    border-radius: 12px;
    clip-path: inset(0 round 12px);
}



.epic-fans-profile__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .epic-fans-profile__title {
        font-size: 24px;
    }

    .epic-fans-profile__metadata > div {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
    }
}

/* =========================================================
   Profile page layout
   ========================================================= */

.epic-profile-page__header {
    padding-top: 47px;
    margin-bottom: 24px;
}

.epic-profile-page__header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.035em;
    color: #101820;
    transform: scaleX(var(--epic-condensed-serif-scale));
    transform-origin: left center;
}

body:not(.home) .epic-page-layout--profile .epic-page-layout__main {
    padding-top: 0;
    padding-bottom: 96px;
}

.epic-page-layout--profile .epic-app-promo-sidebar {
    padding-top: 59px;
    padding-bottom: 96px;
}

@media (max-width: 800px) {
    .epic-profile-page__header {
        padding-top: 24px;
    }

    .epic-profile-page__header h1 {
        font-size: 38px;
        line-height: 40px;
    }
}

/* =========================================================
   Standard page + app-promotion sidebar
   ========================================================= */

.epic-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: stretch;
}

.epic-page-layout.epic-page-layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.epic-page-layout__main {
    min-width: 0;
}

/* Football standings: prevent table and sidebar overlap on tablet widths. */
@media (min-width: 701px) and (max-width: 1200px) {
    body:not(.home)
    .epic-page-layout:has(.epic-football-standings) {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    body:not(.home)
    .epic-page-layout:has(.epic-football-standings)
    > .epic-app-promo-sidebar {
        padding-top: 0;
        padding-bottom: 0;
        width: 100%;
        max-width: 300px;
    }

    body:not(.home)
    .epic-page-layout:has(.epic-football-standings)
    .epic-app-promo-sidebar__inner {
        position: static;
    }
}


.epic-app-promo-sidebar {
    min-width: 0;
    padding-top: 72px;
}



@media (min-width: 961px) {
    body:not(.epic-fans-event-route) .epic-page-layout:not(.epic-page-layout--profile) .epic-app-promo-sidebar {
        padding-bottom: 48px;
    }
}

.epic-app-promo-sidebar__inner {
    position: sticky;
    top: 110px;

    padding: 26px;

    background: #FFFFFF;
    border: 1px solid #E4DDD6;
    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(16, 24, 32, 0.06);
}

/* Sidebar Gutenberg content */
.epic-app-promo-sidebar__inner > :first-child {
    margin-top: 0;
}

.epic-app-promo-sidebar__inner > :last-child {
    margin-bottom: 0;
}

.epic-app-promo-sidebar .epic-app-promo-eyebrow {
    margin: 0 0 8px;

    color: #8A7668;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.epic-app-promo-sidebar .epic-app-promo-title {
    margin: 0 0 12px;

    color: #171717;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
}

.epic-app-promo-sidebar .epic-app-promo-copy {
    margin: 0 0 20px;

    color: #667078;

    font-size: 15px;
    line-height: 1.55;
}

.epic-app-promo-sidebar .wp-block-buttons {
    gap: 10px;
}

.epic-app-promo-sidebar .wp-block-button {
    width: 100%;
}

.epic-app-promo-sidebar .wp-block-button__link {
    width: 100%;
    text-align: center;
}

/* Collapse beneath page content on tablet/mobile */
@media (max-width: 960px) {

    .epic-page-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .epic-app-promo-sidebar {
        padding-top: 0;
        padding-bottom: 64px;
    }

    .epic-app-promo-sidebar__inner {
        position: static;
    }

}

@media (max-width: 700px) {

    .epic-app-promo-sidebar__inner {
        padding: 22px;
    }

    .epic-app-promo-sidebar .epic-app-promo-title {
        font-size: 23px;
    }

}

/* =========================================================
   Sidebar alignment refinements
   ========================================================= */

/* Bring the two columns closer together */
.epic-page-layout {
    gap: 28px;
}

/* Lift the event card slightly so it aligns better with the sidebar */
.epic-page-layout__main .epic-fans-event-detail {
    margin-top: -14px;
}

/* Keep the sidebar sticky on desktop */
.epic-app-promo-sidebar__inner {
    position: sticky;
    top: 110px;
}

/* Reset the event card lift on smaller screens */
@media (max-width: 960px) {
    .epic-page-layout {
        gap: 24px;
    }

    .epic-page-layout__main .epic-fans-event-detail {
        margin-top: 0;
    }
}

/* =========================================================
   Event page — event card + bounded sticky app sidebar
   ========================================================= */

.epic-event-page {
    padding-top: 58px;
    padding-bottom: 96px;
}

.epic-event-page__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.epic-event-page__main {
    min-width: 0;
}

/*
 * Event Detail already supplies its own white card.
 * Align its top exactly with the sidebar card.
 */
.epic-event-page__main .epic-fans-event-detail {
    margin-top: 0;
}

/*
 * Sidebar is sticky only within the top event row.
 * It therefore stops when the event-card section ends.
 */
.epic-event-page__top .epic-app-promo-sidebar {
    padding-top: 0;
    min-width: 0;
}

.epic-event-page__top .epic-app-promo-sidebar__inner {
    position: sticky;
    top: 110px;
}

/*
 * Timeline intro + timeline return to the complete page width.
 */
.epic-event-page__after {
    width: 100%;
    margin-top: 48px;
}

/*
 * Remove the old event-card lift now that alignment
 * is handled structurally.
 */
.epic-event-page
.epic-page-layout__main
.epic-fans-event-detail {
    margin-top: 0;
}

@media (max-width: 960px) {

    .epic-event-page {
        padding-top: 44px;
        padding-bottom: 64px;
    }

    .epic-event-page__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .epic-event-page__top .epic-app-promo-sidebar {
        padding-bottom: 0;
    }

    .epic-event-page__top .epic-app-promo-sidebar__inner {
        position: static;
    }

    .epic-event-page__after {
        margin-top: 44px;
    }

}

/* =========================================================
   Event sidebar sticky travel area
   ========================================================= */

@media (min-width: 961px) {

    /*
     * Let the sidebar grid cell stretch to the full height
     * of the event-card row. This gives the sticky card
     * room to travel while scrolling.
     */
    .epic-event-page__top {
        align-items: stretch;
    }

    /*
     * Keep the event content itself aligned to the top.
     */
    .epic-event-page__main {
        align-self: start;
    }

    /*
     * Sidebar column now spans the full event section height.
     */
    .epic-event-page__top .epic-app-promo-sidebar {
        align-self: stretch;
        height: 100%;
    }

    /*
     * The promo card follows the viewport, but remains
     * bounded by the event section.
     */
    .epic-event-page__top .epic-app-promo-sidebar__inner {
        position: sticky;
        top: 110px;
    }

}

/* Align sticky sidebar bottom with event-card bottom */
@media (min-width: 961px) {

    .epic-event-page__top .epic-app-promo-sidebar__inner {
        position: sticky;
        top: 110px;

        /*
         * When the sidebar reaches the end of its travel area,
         * keep its bottom aligned with the event section bottom.
         */
        bottom: 0;
    }

}

/* =========================================================
   Event sidebar — sticky card bounded by event row
   ========================================================= */

@media (min-width: 961px) {

    .epic-event-page__top {
        align-items: start;
    }

    .epic-event-page__top .epic-app-promo-sidebar {
        position: sticky;
        top: 110px;

        align-self: start;
        height: auto;

        padding-top: 0;
    }

    .epic-event-page__top .epic-app-promo-sidebar__inner {
        position: static;
        top: auto;
        bottom: auto;
    }

}

/* Event card defines the exact bottom boundary for sticky sidebar */
.epic-event-page__main .epic-fans-event-detail {
    margin-bottom: 0;
}

/* =========================================================
   App promo sidebar — centre store badges
   ========================================================= */

.epic-app-promo-sidebar .wp-block-image,
.epic-app-promo-sidebar .wp-block-kadence-image {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.epic-app-promo-sidebar .wp-block-image a,
.epic-app-promo-sidebar .wp-block-kadence-image a {
    display: inline-block;
    width: auto;
}

.epic-app-promo-sidebar .wp-block-image img,
.epic-app-promo-sidebar .wp-block-kadence-image img {
    display: block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* If the existing app-store-badges wrapper is used in the sidebar */
.epic-app-promo-sidebar .app-store-badges {
    justify-content: center !important;
}

/* App promo sidebar — store badge hover lift */
@media (hover: hover) and (pointer: fine) {

    .epic-app-promo-sidebar .wp-block-image a,
    .epic-app-promo-sidebar .wp-block-kadence-image a {
        transition: transform 0.18s ease;
    }

    .epic-app-promo-sidebar .wp-block-image a:hover,
    .epic-app-promo-sidebar .wp-block-kadence-image a:hover {
        transform: translateY(-2px);
    }

}

/* =========================================================
   Mobile app promo drawer
   ========================================================= */

.epic-app-promo-mobile {
    display: none;
}

@media (max-width: 960px) {

    /*
     * Desktop sidebar disappears completely.
     */
    .epic-app-promo-sidebar {
        display: none;
    }

    .epic-app-promo-mobile {
        position: fixed;
        z-index: 10001;

        left: 0;
        right: 0;
        bottom: 0;

        display: block;

        padding-bottom: env(safe-area-inset-bottom, 0);

        pointer-events: none;
    }

    .epic-app-promo-mobile__toggle {
        position: relative;
        z-index: 2;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;

        width: 100%;
        min-height: 58px;

        padding:
            12px
            max(20px, env(safe-area-inset-right))
            12px
            max(20px, env(safe-area-inset-left));

        background: #FFFFFF;
        border: 0;
        border-top: 1px solid #E4DDD6;

        box-shadow:
            0 -8px 28px rgba(16, 24, 32, 0.12);

        color: #171717;

        cursor: pointer;

        pointer-events: auto;
    }

    .epic-app-promo-mobile__toggle-text {
        font-family: Geist, Arial, sans-serif;
        font-size: 15px;
        line-height: 1.3;
        font-weight: 800;
    }

    .epic-app-promo-mobile__toggle-icon {
        flex: 0 0 auto;

        font-size: 13px;

        transition: transform 0.22s ease;
    }

    .epic-app-promo-mobile.is-open
    .epic-app-promo-mobile__toggle-icon {
        transform: rotate(180deg);
    }

    .epic-app-promo-mobile__panel {
        position: absolute;

        left: 0;
        right: 0;
        bottom: 58px;

        max-height: min(72vh, 620px);

        overflow-y: auto;

        padding:
            18px
            max(20px, env(safe-area-inset-right))
            22px
            max(20px, env(safe-area-inset-left));

        background: #FFFFFF;

        border-top: 1px solid #E4DDD6;

        box-shadow:
            0 -14px 34px rgba(16, 24, 32, 0.14);

        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;

        transition:
            transform 0.24s ease,
            opacity 0.18s ease,
            visibility 0.24s ease;

        pointer-events: auto;
    }

    .epic-app-promo-mobile.is-open
    .epic-app-promo-mobile__panel {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .epic-app-promo-mobile__close {
        position: absolute;
        z-index: 3;
        top: 14px;
        right: max(14px, env(safe-area-inset-right));

        display: grid;
        place-items: center;

        width: 38px;
        height: 38px;

        padding: 0;

        border: 1px solid #DDD;
        border-radius: 50%;
        background: #FFF;

        color: #222;

        font: inherit;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;

        cursor: pointer;
    }

    .epic-app-promo-mobile__close:hover,
    .epic-app-promo-mobile__close:focus-visible {
        background: #F5F5F5;
    }

    .epic-app-promo-mobile__panel-inner {
        width: min(100%, 360px);
        margin-inline: auto;
    }

    /*
     * Reuse sidebar presentation in expanded mobile panel.
     */
    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-eyebrow,
    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-title,
    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-copy {
        text-align: center;
    }

    .epic-app-promo-mobile__panel-inner
    .wp-block-image,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    .epic-app-promo-mobile__panel-inner
    .wp-block-image a,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image a {
        display: inline-block;
        width: auto;
    }

    .epic-app-promo-mobile__panel-inner
    .wp-block-image img,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image img {
        display: block;
        width: auto;
        margin-inline: auto;
    }

    /*
     * Prevent the fixed strip covering the final page content.
     */
    body:not(.home) main {
        padding-bottom: 74px;
    }

}

/* =========================================================
   Mobile app promo — Forest strip + sidebar styling
   ========================================================= */

@media (max-width: 960px) {

    /* Forest-red collapsed strip */
    .epic-app-promo-mobile__toggle {
        background: #C51F2D;
        border-top-color: #A71925;
        color: #FFFFFF;

        box-shadow:
            0 -8px 28px rgba(16, 24, 32, 0.16);
    }

    .epic-app-promo-mobile__toggle-text,
    .epic-app-promo-mobile__toggle-icon {
        color: #FFFFFF;
    }

    /*
     * Expanded content uses the same visual language
     * as the desktop sidebar.
     */
    .epic-app-promo-mobile__panel {
        padding: 0;
    }

    .epic-app-promo-mobile__panel-inner {
        width: min(100%, 360px);
        margin-inline: auto;
        padding: 26px 24px 28px;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-eyebrow {
        margin: 0 0 8px;

        color: #8A7668;

        font-family: Geist, Arial, sans-serif;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 900;
        letter-spacing: 0.14em;

        text-align: center;
        text-transform: uppercase;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-title {
        margin: 0 0 12px;

        font-family: Georgia, "Times New Roman", serif;
        font-size: 23px;
        line-height: 1.15;
        font-weight: 700;

        text-align: center;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-copy {
        margin: 0 0 20px;

        color: #667078;

        font-family: Geist, Arial, sans-serif;
        font-size: 15px;
        line-height: 1.55;

        text-align: center;
    }

    /* Centre Gutenberg/Kadence images exactly as in sidebar */
    .epic-app-promo-mobile__panel-inner
    .wp-block-image,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    .epic-app-promo-mobile__panel-inner
    .wp-block-image a,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image a {
        display: inline-block;
        width: auto;
    }

    .epic-app-promo-mobile__panel-inner
    .wp-block-image img,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;

        margin-left: auto;
        margin-right: auto;
    }

    .epic-app-promo-mobile__panel-inner
    .app-store-badges {
        justify-content: center !important;
    }

}

/* Mobile promo refinements */
@media (max-width: 960px) {

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-title {
        font-size: 26px;
    }

    .epic-app-promo-mobile__toggle {
        min-height: 44px;

        padding:
            8px
            max(18px, env(safe-area-inset-right))
            8px
            max(18px, env(safe-area-inset-left));
    }

    .epic-app-promo-mobile__toggle-text {
        font-size: 14px;
        line-height: 1.2;
    }

    .epic-app-promo-mobile__toggle-icon {
        font-size: 11px;
    }

    .epic-app-promo-mobile__panel {
        bottom: 44px;
    }

}

/* Mobile promo panel — clearer boundary + more compact artwork */
@media (max-width: 960px) {

    .epic-app-promo-mobile__panel {
        border-top: 4px solid #C51F2D;
    }

    /*
     * Main phone/mock-up image only.
     * Keep store badges at their normal size.
     */
    .epic-app-promo-mobile__panel-inner
    .wp-block-image:not(.app-store-badges .wp-block-image)
    img,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image:not(.app-store-badges .wp-block-kadence-image)
    img {
        max-height: 275px;
        width: auto;
        object-fit: contain;
    }

    /* Slightly tighten vertical spacing in the expanded panel */
    .epic-app-promo-mobile__panel-inner {
        padding-top: 20px;
        padding-bottom: 20px;
    }

}

/* Mobile promo panel — compact fit */
@media (max-width: 960px) {

    .epic-app-promo-mobile__panel {
        border-top: 2px solid #C51F2D;
    }

    .epic-app-promo-mobile__panel-inner {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-eyebrow {
        margin-bottom: 5px;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-title {
        margin-bottom: 8px;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-copy {
        margin-bottom: 12px;
        line-height: 1.45;
    }

    /* Main phone/mock-up image */
    .epic-app-promo-mobile__panel-inner
    .wp-block-image:first-of-type img,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image:first-of-type img {
        max-height: 230px;
        width: auto;
        object-fit: contain;
    }

    /* Tighten gaps between Gutenberg blocks */
    .epic-app-promo-mobile__panel-inner
    .wp-block-image,
    .epic-app-promo-mobile__panel-inner
    .wp-block-kadence-image {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }

}

/* Mobile promo — fit complete panel within phone viewport */
@media (max-width: 960px) {

    .epic-app-promo-mobile__panel-inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Phone mock-up */
    .epic-app-promo-mobile__panel-inner
    .app-promo-phone-image img {
        width: auto !important;
        height: auto !important;
        max-height: 190px !important;
        object-fit: contain;
    }

    .epic-app-promo-mobile__panel-inner
    .app-promo-phone-image {
        margin-top: 5px !important;
        margin-bottom: 8px !important;
    }

    /* Slightly tighter copy */
    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-copy {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.4;
    }

    /* Store badges side-by-side */
    .epic-app-promo-mobile__panel-inner
    .app-store-badges {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100%;
    }

    .epic-app-promo-mobile__panel-inner
    .app-store-badges
    .wp-block-image,
    .epic-app-promo-mobile__panel-inner
    .app-store-badges
    .wp-block-kadence-image {
        flex: 0 1 auto !important;
        width: auto !important;
        margin: 0 !important;
    }

    .epic-app-promo-mobile__panel-inner
    .app-store-badges img {
        width: auto !important;
        height: 38px !important;
        max-height: 38px !important;
    }

}

/* =========================================================
   Mobile app promo — exact Gutenberg structure
   ========================================================= */

@media (max-width: 960px) {

    /* Two-column area allows the store badges to sit side-by-side */
    .epic-app-promo-mobile__panel-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 8px;
        row-gap: 6px;

        padding: 12px 18px 14px;
    }

    /* Main content group spans the full panel width */
    .epic-app-promo-mobile__panel-inner > .wp-block-group {
        grid-column: 1 / -1;
    }

    /* Phone mock-up: image inside the main content group */
    .epic-app-promo-mobile__panel-inner
    > .wp-block-group
    .wp-block-image img {
        width: auto !important;
        height: auto !important;
        max-height: 170px !important;
        object-fit: contain;
    }

    .epic-app-promo-mobile__panel-inner
    > .wp-block-group
    .wp-block-image {
        margin-top: 4px !important;
        margin-bottom: 8px !important;
    }

    /* Tighten copy spacing */
    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-eyebrow {
        margin-bottom: 4px;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-title {
        margin-bottom: 6px;
    }

    .epic-app-promo-mobile__panel-inner
    .epic-app-promo-copy {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.4;
    }

    /*
     * The two store badge figures are direct children
     * of panel-inner, after the main Group.
     */
    .epic-app-promo-mobile__panel-inner
    > figure.wp-block-image {
        width: 100% !important;
        margin: 0 !important;
        text-align: center;
    }

    .epic-app-promo-mobile__panel-inner
    > figure.wp-block-image a {
        display: block;
        width: 100%;
    }

    .epic-app-promo-mobile__panel-inner
    > figure.wp-block-image img {
        width: 100% !important;
        max-width: 150px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto;
    }

}

/* Event-page contextual intro above event card/sidebar */
.epic-event-page__intro {
    margin: 0 0 18px;
}

.epic-event-page__intro > :first-child {
    margin-top: 0;
}

.epic-event-page__intro > :last-child {
    margin-bottom: 0;
}

/* Event page — back to timeline link */
.event-back-to-timeline {
    margin: 6px 0 0;

    font-size: 14px;
    line-height: 1.4;
}

.event-back-to-timeline a {
    color: #667078;
    font-weight: 600;
    text-decoration: none;
}

.event-back-to-timeline a:hover,
.event-back-to-timeline a:focus {
    color: #C51F2D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Event page — breadcrumb typography */
.event-back-to-timeline,
.event-back-to-timeline a {
    font-family: Geist, Arial, sans-serif !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0;
}

/* Event page — breadcrumb hover */
.event-back-to-timeline a:hover,
.event-back-to-timeline a:focus {
    color: #C51F2D !important;
}

/* Homepage timeline spacing */
.home main.site-shell {
    padding-top: 48px;
    padding-bottom: 72px;
}

@media (max-width: 800px) {
    .home main.site-shell {
        padding-top: 32px;
        padding-bottom: 48px;
    }
}

/* =========================================================
   Property-site header branding
   ========================================================= */

/*
 * Default property accent.
 * Individual property sites can override this later.
 */
body {
    --property-accent: #C51F2D;
}

/* Property sites: strong branded header */
body:not(.network-admin)
.site-header:has(.site-brand__name--property) {
    background: var(--property-accent);
    border-bottom-color: var(--property-accent);
}

/* Property-site name */
.site-header
.site-brand__name--property {
    color: #FFFFFF;
}

.site-header
.site-brand__name--property span {
    color: #FFFFFF;
}

/* Primary navigation */
.site-header:has(.site-brand__name--property)
.site-nav__list > li > a {
    color: rgba(255, 255, 255, 0.92);
}

.site-header:has(.site-brand__name--property)
.site-nav__list > li > a:hover,
.site-header:has(.site-brand__name--property)
.site-nav__list > li > a:focus {
    color: #FFFFFF;
}

/* Mobile navigation button */
.site-header:has(.site-brand__name--property)
.site-nav-toggle span {
    background: #FFFFFF;
}

/* Keep dropdowns readable */
.site-header:has(.site-brand__name--property)
.site-nav__list .sub-menu {
    background: #FFFFFF;
    border-color: #E4DDD6;
}

.site-header:has(.site-brand__name--property)
.site-nav__list .sub-menu a {
    color: #30383D;
}

.site-header:has(.site-brand__name--property)
.site-nav__list .sub-menu a:hover,
.site-header:has(.site-brand__name--property)
.site-nav__list .sub-menu a:focus {
    color: var(--property-accent);
    background: #FAF8F3;
}

/* Property header title — match app typography */
.site-header
.site-brand__name--property {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Shared header logo dimensions */
.site-header .site-brand__logo-image {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

/* Property-site header logo enhancement */
.site-header:has(.site-brand__name--property) .site-brand__logo-image {
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.75))
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.site-header .site-brand {
    gap: 0.8rem;
}

/* Property footer title — match header typography */
.site-footer
.site-brand__name--property,
.site-footer
.site-brand__name--property span {
    color: #FFFFFF !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

/* Drawer event images — match event-page rounded corners */
.epic-fans-event-drawer__event-image img {
    border-radius: 12px;
}

/* Drawer images — force visible rounded clipping */
.epic-fans-event-drawer__event-image img {
    border-radius: 12px;
    clip-path: inset(0 round 12px);
}

/* Event images — consistent visible corner rounding */
.epic-fans-event-detail__image img,
.epic-fans-event-drawer__event-image img {
    border-radius: 16px !important;
    clip-path: inset(0 round 16px);
}

/* Drawer images — radius follows actual visible image bounds */
.epic-fans-event-drawer__event-image img {
    display: block;

    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 420px;

    margin-left: auto;
    margin-right: auto;

    object-fit: contain;
    border-radius: 12px !important;
    clip-path: none;
}

/* Homepage hero — break out of site-shell to full viewport width */
.home .forest-home-hero {
    width: 100%;
    max-width: none !important;

    margin-left: calc(50% - 50cqw) !important;
    margin-right: calc(50% - 50cqw) !important;
}

/* Homepage Forest hero — full-bleed background */
.home #forest-home-hero {
    width: 100cqw;
    max-width: none !important;
    margin-left: calc(50% - 50cqw) !important;
    margin-right: calc(50% - 50cqw) !important;
}

/* =========================================================
   Property header — configurable branded treatment
   ========================================================= */

body:not(.network-admin)
.site-header:has(.site-brand__name--property) {
    background: var(--property-accent) !important;
    border-bottom: 0 !important;
}

body:not(.network-admin)
.site-header .site-brand__name--property,
body:not(.network-admin)
.site-header .site-brand__name--property span {
    color: #FFFFFF !important;
}

body:not(.network-admin)
.site-header:has(.site-brand__name--property)
.site-nav__list > li > a {
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.18s ease, opacity 0.18s ease;
}

body:not(.network-admin)
.site-header:has(.site-brand__name--property)
.site-nav__list > li > a:hover,
body:not(.network-admin)
.site-header:has(.site-brand__name--property)
.site-nav__list > li > a:focus,
body:not(.network-admin)
.site-header:has(.site-brand__name--property)
.site-nav__list > li.current-menu-item > a {
    color: #FFFFFF !important;
    opacity: 1;
    text-decoration: none !important;
    position: relative;
}

@media (min-width: 801px) {
    body:not(.network-admin)
    .site-header:has(.site-brand__name--property)
    .site-nav__list > li.current-menu-item > a::after {
        content: "";
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 24px;
        height: 2px;
        border: 0;
        border-radius: 2px;
        background: #FFFFFF;
        transform: none;
    }
}

body:not(.network-admin)
.site-header:has(.site-brand__name--property)
.site-nav-toggle span {
    background: #FFFFFF !important;
}

/* Preserve readable dropdown menus. */
@media (max-width: 800px) {
    body:not(.network-admin)
    .site-header:has(.site-brand__name--property)
    .site-nav__list > li > a {
        color: #30383D !important;
        font-size: 17px;
    }

    body:not(.network-admin)
    .site-header:has(.site-brand__name--property)
    .site-nav__list > li > a:hover,
    body:not(.network-admin)
    .site-header:has(.site-brand__name--property)
    .site-nav__list > li > a:focus,
    body:not(.network-admin)
    .site-header:has(.site-brand__name--property)
    .site-nav__list > li.current-menu-item > a {
        color: var(--property-accent) !important;
        opacity: 1;
    }
}

/* Homepage hero starts directly beneath header */
.home main.site-shell {
    padding-top: 0;
}

@media (max-width: 800px) {
    .home main.site-shell {
        padding-top: 0;
    }
}

/* =========================================================
   Homepage hero — daily featured event
   ========================================================= */

.home #forest-home-hero
.epic-home-featured-event {
    width: min(100%, 330px);
    margin: auto 0 auto auto;
    padding: 24px 24px 22px;

    color: #FFFFFF;

    background: rgba(31, 0, 8, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 16px;

    box-shadow:
        0 16px 38px rgba(16, 0, 4, 0.18);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home #forest-home-hero
.epic-home-featured-event__eyebrow {
    margin: 0 0 12px;

    color: rgba(255, 255, 255, 0.72);

    font-family: Geist, Arial, sans-serif;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.home #forest-home-hero
.epic-home-featured-event__date {
    margin: 0 0 8px;

    color: #FFFFFF;

    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.home #forest-home-hero
.epic-home-featured-event__title {
    margin: 0 0 14px;

    color: #FFFFFF;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 700;
}

.home #forest-home-hero
.epic-home-featured-event__category {
    display: inline-flex;
    align-items: center;

    min-height: 24px;
    margin: 0 0 18px;
    padding: 0 9px;

    background:
        color-mix(
            in srgb,
            var(--featured-event-accent) 82%,
            transparent
        );

    border-radius: 999px;

    color: #FFFFFF;

    font-family: Geist, Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.home #forest-home-hero
.epic-home-featured-event__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #FFFFFF !important;

    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;

    text-decoration: none !important;
}

.home #forest-home-hero
.epic-home-featured-event__link:hover,
.home #forest-home-hero
.epic-home-featured-event__link:focus {
    color: #F6C64B !important;
}

@media (max-width: 800px) {

    .home #forest-home-hero
    .epic-home-featured-event {
        width: 100%;
        max-width: 360px;
        margin: 26px 0 0;
        padding: 20px;
    }

    .home #forest-home-hero
    .epic-home-featured-event__title {
        font-size: 22px;
    }

}
/* Homepage hero featured event refinements */
.home #forest-home-hero .epic-home-featured-event {
    width: min(100%, 430px);
    margin: auto;
    padding: 30px 32px 28px;

    color: #FFFFFF;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.14) 52%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px;

    box-shadow:
        0 18px 45px rgba(16, 0, 4, 0.14);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.home #forest-home-hero .epic-home-featured-event__eyebrow {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-family: Geist, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home #forest-home-hero .epic-home-featured-event__date {
    margin: 0 0 10px;
    color: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.home #forest-home-hero .epic-home-featured-event__title {
    margin: 0 0 14px;
    color: #FFFFFF;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 700;
}

.home #forest-home-hero .epic-home-featured-event__intro {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.95);
    font-family: Geist, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 500;
}

.home #forest-home-hero .epic-home-featured-event__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.home #forest-home-hero .epic-home-featured-event__category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--featured-event-accent) 78%, white 22%);
    color: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.home #forest-home-hero .epic-home-featured-event__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
}

.home #forest-home-hero .epic-home-featured-event__link:hover,
.home #forest-home-hero .epic-home-featured-event__link:focus {
    opacity: 0.82;
}

@media (max-width: 1024px) {
    .home #forest-home-hero .epic-home-featured-event {
        width: min(100%, 460px);
        margin: 26px auto 0;
    }
}

@media (max-width: 767px) {
    .home #forest-home-hero .epic-home-featured-event {
        padding: 24px 22px 22px;
        border-radius: 18px;
    }

    .home #forest-home-hero .epic-home-featured-event__title {
        font-size: 20px;
    }

    .home #forest-home-hero .epic-home-featured-event__intro {
        font-size: 15px;
    }
}

/* Drawer — prominent full event page link near top */
.epic-fans-event-drawer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 4px 0 24px;
    padding: 9px 13px;

    border: 1px solid rgba(197, 31, 45, 0.22);
    border-radius: 8px;
    background: rgba(197, 31, 45, 0.07);

    color: #C51F2D !important;

    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.epic-fans-event-drawer__top-link:hover,
.epic-fans-event-drawer__top-link:focus {
    background: rgba(197, 31, 45, 0.12);
    transform: translateY(-1px);
}

/* Drawer — top full event link matches bottom link */
.epic-fans-event-drawer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 4px 0 24px;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: none;

    color: inherit !important;

    font: inherit;
    font-weight: inherit;

    text-decoration: none !important;

    transform: none;
}

.epic-fans-event-drawer__top-link:hover,
.epic-fans-event-drawer__top-link:focus {
    background: none;
    transform: none;
}

/* Drawer — top full event link matches bottom link size and colour */
.epic-fans-event-drawer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 6px 0 24px;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: none;

    color: var(--property-accent, #C51F2D) !important;

    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;

    text-decoration: none !important;

    transform: none !important;
}

.epic-fans-event-drawer__top-link:hover,
.epic-fans-event-drawer__top-link:focus {
    color: var(--property-accent, #C51F2D) !important;
    background: none !important;
    transform: none !important;
}

/* HERO FEATURED EVENT INTERACTION START */

.home #forest-home-hero .epic-home-featured-event {
    position: relative;
    overflow: hidden;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

.home #forest-home-hero .epic-home-featured-event__eyebrow {
    color: #F6C64B;
    font-size: 12px;
    letter-spacing: 0.11em;
}

.home #forest-home-hero .epic-home-featured-event__title {
    color: #A9DCE8;
}

.home #forest-home-hero .epic-home-featured-event::before {
    content: "";
    position: absolute;
    inset: -60% -80%;

    background: linear-gradient(
        115deg,
        transparent 38%,
        rgba(255, 255, 255, 0.03) 44%,
        rgba(255, 255, 255, 0.26) 50%,
        rgba(255, 255, 255, 0.03) 56%,
        transparent 62%
    );

    transform: translateX(-45%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.home #forest-home-hero .epic-home-featured-event:hover {
    transform: none;

    border-color: rgba(255, 255, 255, 0.58);

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.18) 52%,
        rgba(255, 255, 255, 0.11) 100%
    );

    box-shadow:
        0 18px 38px rgba(20, 0, 8, 0.48),
        0 30px 70px rgba(20, 0, 8, 0.28),
        0 0 22px rgba(255, 255, 255, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.22);
}

.home #forest-home-hero .epic-home-featured-event:hover::before {
    transform: translateX(45%);
}

@media (prefers-reduced-motion: reduce) {
    .home #forest-home-hero .epic-home-featured-event,
    .home #forest-home-hero .epic-home-featured-event::before {
        transition: none;
    }

    .home #forest-home-hero .epic-home-featured-event:hover {
        transform: none;
    }
}

/* HERO FEATURED EVENT INTERACTION END */

/* Hero featured event — whole card interaction */
.home #forest-home-hero .epic-home-featured-event {
    color: #FFFFFF;
    text-decoration: none !important;
    cursor: pointer;
}

.home #forest-home-hero .epic-home-featured-event__title {
    color: #F6C64B;
}

.home #forest-home-hero .epic-home-featured-event__link {
    transition: color 0.18s ease;
}

.home #forest-home-hero .epic-home-featured-event:hover
.epic-home-featured-event__link,
.home #forest-home-hero .epic-home-featured-event:focus
.epic-home-featured-event__link {
    color: #F6C64B !important;
}

.home #forest-home-hero .epic-home-featured-event:focus-visible {
    outline: 2px solid #F6C64B;
    outline-offset: 4px;
}

/* Homepage hero photo credit */
.home #forest-home-hero {
    position: relative;
}

.home #forest-home-hero .epic-hero-photo-credit {
    position: absolute;
    right: 18px;
    bottom: 70px;
    z-index: 6;

    color: rgba(255, 255, 255, 0.68);

    font-family: Geist, Arial, sans-serif;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;

    text-align: right;
}

.home #forest-home-hero .epic-hero-photo-credit a {
    color: inherit;
    text-decoration: none;
}

.home #forest-home-hero .epic-hero-photo-credit a:hover,
.home #forest-home-hero .epic-hero-photo-credit a:focus {
    color: #FFFFFF;
    text-decoration: underline;
}

@media (max-width: 800px) {
    .home #forest-home-hero .epic-hero-photo-credit {
        right: 12px;
        bottom: 34px;
        font-size: 9px;
    }
}

/* Homepage hero — hide featured event card on mobile */
@media (max-width: 800px) {
    .home #forest-home-hero .epic-home-featured-event {
        display: none !important;
    }
}

/* EVENT INTERACTIONS START */

.epic-fans-event-detail__actions {
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 28px;
}

.epic-fans-event-like {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    min-width:58px;
    min-height:42px;
    padding:7px 12px;

    border:1px solid #ded8d2;
    border-radius:999px;
    background:#fff;

    color:#665951;
    font:inherit;
    font-size:14px;
    line-height:1;
    font-weight:700;

    cursor:pointer;
    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.epic-fans-event-like__icon {
    display:flex;
    width:21px;
    height:21px;
}

.epic-fans-event-like__icon svg {
    width:100%;
    height:100%;
    overflow:visible;

    fill:transparent;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;

    transition:
        fill .18s ease,
        stroke .18s ease,
        transform .18s ease;
}

.epic-fans-event-like:hover,
.epic-fans-event-like:focus-visible {
    color:var(--event-accent);
    border-color:color-mix(
        in srgb,
        var(--event-accent) 42%,
        #ded8d2
    );
    background:color-mix(
        in srgb,
        var(--event-accent) 5%,
        white
    );
}

.epic-fans-event-like.is-liked {
    color:var(--event-accent);
    border-color:color-mix(
        in srgb,
        var(--event-accent) 35%,
        #ded8d2
    );
    background:color-mix(
        in srgb,
        var(--event-accent) 7%,
        white
    );
}

.epic-fans-event-like.is-liked .epic-fans-event-like__icon svg {
    fill:currentColor;
}

.epic-fans-event-like:active:not(:disabled) {
    transform:scale(.96);
}

.epic-fans-event-like:disabled {
    cursor:default;
    opacity:.7;
}

.epic-fans-event-like.has-like-error {
    border-color:#c7c1bc;
}

/* EVENT INTERACTIONS END */

/* DRAWER EVENT INTERACTIONS */

.epic-fans-event-drawer__actions {
    display:flex;
    align-items:center;
    margin:0 0 18px;
}

.epic-fans-event-drawer__actions .epic-fans-event-like {
    min-height:38px;
    padding:6px 11px;
}

/* Smaller like button in event drawer only */
.epic-fans-event-drawer__actions .epic-fans-event-like {
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 16px;
    gap: 6px;
}

.epic-fans-event-drawer__actions .epic-fans-event-like__icon {
    width: 15px;
    height: 15px;
}

.epic-fans-event-drawer__actions .epic-fans-event-like__icon svg {
    width: 15px;
    height: 15px;
}

.epic-fans-event-drawer__actions .epic-fans-event-like__count {
    font-size: 14px;
    line-height: 1;
}

/* EVENT SHARE */

.epic-fans-event-share {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    min-height:42px;
    padding:7px 12px;

    border:1px solid #ded8d2;
    border-radius:999px;
    background:#fff;

    color:#665951;
    font:inherit;
    font-size:14px;
    line-height:1;
    font-weight:700;

    cursor:pointer;

    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.epic-fans-event-share__icon {
    display:flex;
    width:20px;
    height:20px;
}

.epic-fans-event-share__icon svg {
    width:100%;
    height:100%;

    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.epic-fans-event-share:hover,
.epic-fans-event-share:focus-visible {
    color:var(--event-accent);
    border-color:color-mix(
        in srgb,
        var(--event-accent) 42%,
        #ded8d2
    );
    background:color-mix(
        in srgb,
        var(--event-accent) 5%,
        white
    );
}

.epic-fans-event-share:active {
    transform:scale(.96);
}

/* Compact Share control in drawer only */
.epic-fans-event-drawer__actions .epic-fans-event-share {
    min-height:32px;
    padding:4px 10px;
    border-radius:16px;
    gap:6px;
    font-size:13px;
}

.epic-fans-event-drawer__actions .epic-fans-event-share__icon {
    width:15px;
    height:15px;
}

/* Drawer like/share spacing */
.epic-fans-event-drawer__engagement {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Space between drawer action buttons */
.epic-fans-event-drawer__actions {
    gap: 10px;
}

/* SAVED EVENT STAR */

.epic-fans-event-save {
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;
    padding:0;

    border:1px solid #ded8d2;
    border-radius:999px;
    background:#fff;

    color:#665951;
    cursor:pointer;

    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.epic-fans-event-save__icon {
    display:flex;
    width:21px;
    height:21px;
}

.epic-fans-event-save__icon svg {
    width:100%;
    height:100%;

    fill:transparent;
    stroke:currentColor;
    stroke-width:1.65;
    stroke-linejoin:round;

    transition:
        fill .18s ease,
        stroke .18s ease;
}

.epic-fans-event-save:hover,
.epic-fans-event-save:focus-visible {
    color:var(--event-accent);
    border-color:color-mix(
        in srgb,
        var(--event-accent) 42%,
        #ded8d2
    );
    background:color-mix(
        in srgb,
        var(--event-accent) 5%,
        white
    );
}

.epic-fans-event-save.is-saved {
    color:var(--event-accent);
    border-color:color-mix(
        in srgb,
        var(--event-accent) 35%,
        #ded8d2
    );
    background:color-mix(
        in srgb,
        var(--event-accent) 7%,
        white
    );
}

.epic-fans-event-save.is-saved .epic-fans-event-save__icon svg {
    fill:currentColor;
}

.epic-fans-event-save:active {
    transform:scale(.94);
}

/* Compact star in drawer */
.epic-fans-event-drawer__actions .epic-fans-event-save {
    width:32px;
    height:32px;
}

.epic-fans-event-drawer__actions .epic-fans-event-save__icon {
    width:16px;
    height:16px;
}

/* SAVED ITEMS */

.epic-fans-saved-items {
    max-width:840px;
}

.epic-fans-saved-items__list {
    overflow:hidden;

    background:#fff;
    border:1px solid #e4ddd6;
    border-radius:16px;
}

.epic-fans-saved-items__item {
    display:flex;
    align-items:center;

    min-height:78px;

    border-bottom:1px solid #ece6e1;
}

.epic-fans-saved-items__item:last-child {
    border-bottom:0;
}

.epic-fans-saved-items__link {
    display:flex;
    align-items:center;
    flex:1;
    min-width:0;
    min-height:78px;

    padding:15px 18px;

    color:inherit;
    text-decoration:none !important;
}

.epic-fans-saved-items__content {
    min-width:0;
}

.epic-fans-saved-items__title {
    overflow:hidden;

    color:#5b4d46;
    font-size:16px;
    line-height:1.35;
    font-weight:700;

    text-overflow:ellipsis;
    white-space:nowrap;
}

.epic-fans-saved-items__type {
    margin-top:4px;

    color:#8b7d75;
    font-size:13px;
    line-height:1.3;
}

.epic-fans-saved-items__link:hover
.epic-fans-saved-items__title {
    color:#c51f2d;
}

.epic-fans-saved-items__remove {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 48px;

    width:48px;
    height:48px;
    margin-right:10px;
    padding:0;

    border:0;
    background:transparent;

    color:#8b776e;
    cursor:pointer;
}

.epic-fans-saved-items__remove svg {
    width:25px;
    height:25px;

    fill:currentColor;
    stroke:currentColor;
    stroke-width:1.3;
    stroke-linejoin:round;
}

.epic-fans-saved-items__remove:hover,
.epic-fans-saved-items__remove:focus-visible {
    color:#c51f2d;
}

.epic-fans-saved-items__empty {
    padding:54px 24px;

    background:#fff;
    border:1px solid #e4ddd6;
    border-radius:16px;

    text-align:center;
}

.epic-fans-saved-items__empty-star {
    margin-bottom:10px;

    color:#8b776e;
    font-size:38px;
    line-height:1;
}

.epic-fans-saved-items__empty-title {
    color:#5b4d46;
    font-size:20px;
    line-height:1.3;
    font-weight:700;
}

.epic-fans-saved-items__empty p {
    margin:7px 0 0;

    color:#80736c;
    font-size:15px;
}

@media (max-width:600px) {
    .epic-fans-saved-items__item,
    .epic-fans-saved-items__link {
        min-height:70px;
    }

    .epic-fans-saved-items__link {
        padding:13px 14px;
    }

    .epic-fans-saved-items__title {
        font-size:15px;
    }

    .epic-fans-saved-items__remove {
        margin-right:6px;
    }
}

/* Standard page title sizing */
@media (min-width: 801px) {
    body:not(.home) .epic-page-layout__main > h1 {
        font-size: 58px;
        line-height: 1.05;
    }
}


/* Homepage timeline overlaps bottom of hero */
.home .epic-fans-timeline {
    position: relative;
    z-index: 5;
    margin-top: -50px;
}

@media (max-width: 800px) {
    .home .epic-fans-timeline {
        margin-top: -24px;
    }
}

/* Homepage timeline floating treatment */
.home .epic-fans-timeline {
    box-shadow:
        0 18px 42px rgba(20, 24, 28, 0.16),
        0 4px 12px rgba(20, 24, 28, 0.08);
    border: 1px solid rgba(228, 221, 214, 0.95);
}

/* =========================================================
   Historical event identity
   Scoped only to event drawer + standalone event detail.
   ========================================================= */

.epic-fans-event-drawer__history-eyebrow,
.epic-fans-event-detail__history-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0 0 10px;

    color: var(--event-accent, #C51F2D);

    font-family: Geist, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.epic-fans-event-drawer__history-icon,
.epic-fans-event-detail__history-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.epic-fans-event-drawer__history-icon svg,
.epic-fans-event-detail__history-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Drawer event headline — deliberately not newspaper-style Georgia */
.epic-fans-event-drawer__title {
    font-family: Geist, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

/* Drawer historical context line */
.epic-fans-event-drawer__story-title {
    font-family: Geist, Arial, sans-serif;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.42;
}

/* Prevent pre-JS flash of history context inside standalone event card */
body.epic-fans-event-route .epic-fans-event-detail > .epic-fans-event-detail__history-eyebrow,
body.epic-fans-event-route .epic-fans-event-detail .epic-fans-event-detail__date {
    display: none;
}

/* Standalone event headline */
.epic-fans-event-detail__title {
    font-family: Geist, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
}

/* Standalone historical context line */
.epic-fans-event-detail__story-title {
    font-family: Geist, Arial, sans-serif;
    font-weight: 650;
    letter-spacing: -0.012em;
    line-height: 1.42;
}

@media (max-width: 700px) {
    .epic-fans-event-drawer__history-eyebrow,
    .epic-fans-event-detail__history-eyebrow {
        font-size: 10px;
    }
}

/* Event-page headline typography — scoped only to historical event content */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    line-height: 1.06;
}

body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__story-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
    line-height: 1.38;
}

/* Match drawer event titles to the same modern event style */
.epic-fans-event-drawer__title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 700 !important;
}

.epic-fans-event-drawer__story-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 600 !important;
}

/* Historical event title typography refinement */

/* Main event title: distinctive sans, without newspaper styling */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__title {
    font-family: "Trebuchet MS", Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    line-height: 1.06;
}

/* Secondary historical line: match drawer typography */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__story-title {
    font-family: Geist, Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    line-height: 1.42;
}

/* Match standalone event secondary heading to drawer typography */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__story-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 1.32;
    letter-spacing: -0.01em;
}

@media (max-width: 700px) {
    body.epic-fans-event-route main.site-shell
    .epic-fans-event-detail__story-title {
        font-size: 18px !important;
    }
}

/* Tighten standalone event secondary heading */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__story-title {
    line-height: 1.22 !important;
}

/* Test Geist on standalone event secondary heading */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__story-title {
    font-family: Geist, Arial, sans-serif !important;
}

/* Match drawer secondary historical heading to Geist */
.epic-fans-event-drawer__story-title {
    font-family: Geist, Arial, sans-serif !important;
}

/* Test Impact for historical event main titles only */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__title,
.epic-fans-event-drawer__title {
    font-family: Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    line-height: 1.02;
}

/* Slightly soften Impact historical event titles */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__title,
.epic-fans-event-drawer__title {
    color: #333333 !important;
}

/* Add a little more breathing room below standalone event title */
body.epic-fans-event-route main.site-shell
.epic-fans-event-detail__title {
    margin-bottom: 20px !important;
}

/* Slightly reduce historical event title size in drawer only */
.epic-fans-event-drawer__title {
    font-size: 38px !important;
}

/* Impact for event titles on timeline cards and homepage featured event only */
.epic-fans-timeline__event-title,
.home #forest-home-hero .epic-home-featured-event__title {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0;
}

/* Slightly enlarge Impact event titles */
.epic-fans-timeline__event-title {
    font-size: 21px !important;
}

.home #forest-home-hero
.epic-home-featured-event__title {
    font-size: 24px !important;
}

/* Timeline card titles: use Geist for better readability at smaller sizes */
.epic-fans-timeline__event-title {
    font-family: Geist, Arial, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

/* Compact Geist timeline card titles */
.epic-fans-timeline__event-title {
    letter-spacing: -0.035em !important;
}

/* Refine timeline card title weight */
.epic-fans-timeline__event-title {
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

/* Slightly reduce timeline card title size */
.epic-fans-timeline__event-title {
    font-size: 19px !important;
}

/* Match homepage featured-event title to timeline card titles */
.home #forest-home-hero
.epic-home-featured-event__title {
    font-family: Geist, Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    letter-spacing: -0.025em !important;
}

/* Slightly enlarge homepage featured-event title */
.home #forest-home-hero
.epic-home-featured-event__title {
    font-size: 21px !important;
}


/* =========================================================
   Standalone event page — history masthead
   ========================================================= */

.event-history-intro {
    max-width: 900px;
    margin: 0 0 18px;
    padding: 0;
}

.event-history-intro__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 10px;

    color: #A91B2B;

    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.event-history-intro__eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;

    flex: 0 0 34px;

    background: #A91B2B;
    border-radius: 999px;
}

.event-history-intro__title {
    margin: 0 0 10px;

    color: #252525;

    font-family: Geist, Arial, sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.event-history-intro__text {
    max-width: 760px;
    margin: 0;

    color: #655B55;

    font-family: Geist, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
}

.event-history-intro + .event-back-to-timeline {
    margin-top: 18px;
}

@media (max-width: 800px) {

    .event-history-intro__title {
        font-size: 34px;
    }

    .event-history-intro__text {
        font-size: 17px;
        line-height: 1.5;
    }

}

/* Event page history intro — scoped to Page 8 intro classes only */

.event-history-intro__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 10px;

    color: #A91B2B;

    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.event-history-intro__eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    flex: 0 0 34px;
    background: #A91B2B;
    border-radius: 999px;
}

.event-history-intro__title {
    margin: 0 0 10px !important;

    color: #252525;

    font-family: Geist, Arial, sans-serif !important;
    font-size: clamp(34px, 4vw, 48px) !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
}

.event-history-intro__text {
    max-width: 760px;
    margin: 0 0 18px;

    color: #655B55;

    font-family: Geist, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
}

@media (max-width: 800px) {
    .event-history-intro__title {
        font-size: 34px !important;
    }

    .event-history-intro__text {
        font-size: 17px;
        line-height: 1.5;
    }
}


/* =========================================================
   Standalone event page — date/history context above card
   ========================================================= */

.event-history-context {
    margin: 0 0 8px;
}

.event-history-context
.epic-fans-event-detail__history-eyebrow {
    margin: 0 0 18px;

    color: #A91B2B;

    font-family: Geist, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.event-history-context__date {
    margin: 0 0 18px;

    color: #252525;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Keep navigation close to the date context */
body.epic-fans-event-route
.event-history-context + .event-back-to-timeline {
    margin-top: 12px;
    margin-bottom: 20px;
}

/* Once date/context are moved out, tighten top of event card on larger screens. */
@media (min-width: 701px) {
    body.epic-fans-event-route
    .epic-fans-event-detail {
        padding-top: 34px;
    }
}

body.epic-fans-event-route
.epic-fans-event-detail__title {
    margin-top: 0 !important;
}

@media (max-width: 800px) {
    body.epic-fans-event-route .epic-event-page {
        padding-top: 28px;
    }

    body.epic-fans-event-route
    .event-history-context
    .epic-fans-event-detail__history-eyebrow {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.15;
        letter-spacing: 0.06em;
    }

    body.epic-fans-event-route .event-history-context__date {
        margin-bottom: 20px;
        font-size: 22px;
    }

    body.epic-fans-event-route
    .event-history-context + .event-back-to-timeline {
        display: none;
    }
}

@media (max-width: 700px) {
    body.epic-fans-event-route
    .event-history-context
    .epic-fans-event-detail__actions {
        margin: 0 0 14px;
    }
}


/* =========================================================
   History archive
   ========================================================= */

.epic-fans-history-archive {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    column-gap: 14px;
    align-items: start;

    margin-top: 24px;
}

.epic-fans-history-archive__views {
    grid-column: 1;
    justify-self: start;
}

.epic-fans-history-archive__content {
    grid-column: 1;
}

.epic-fans-history-archive__scrubber {
    grid-column: 2;
}

.epic-fans-history-archive__content {
    padding: 42px 48px 46px;

    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 18px;

    box-shadow: 0 12px 34px rgba(20, 24, 28, 0.07);
}

.epic-fans-history-archive__year {
    margin: 0 0 42px;
}

/* Category History rows need room for full dates. */
.epic-fans-history-archive.is-category-view
.epic-fans-history-archive__link {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
}

body:not(.home) main.site-shell
.epic-fans-history-archive__year-heading {
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid #d9d3cb;
    font-size: 24px !important;
    line-height: 1.1 !important;
}

.epic-fans-history-archive__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.epic-fans-history-archive__item {
    margin: 0;
    padding: 0;
}

.epic-fans-history-archive__link {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;

    padding: 6px 8px;

    color: inherit;
    text-decoration: none;

    transition:
        background-color 0.16s ease,
        transform 0.16s ease;
}

.epic-fans-history-archive__link:hover,
.epic-fans-history-archive__link:focus-visible {
    background: rgba(255, 255, 255, 0.58);
    transform: translateX(3px);
}

.epic-fans-history-archive__date {
    font-size: 14px;
    font-weight: 700;
    color: #6d6d6d;
    white-space: nowrap;
}

.epic-fans-history-archive__title {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #05647c;
}

.epic-fans-history-archive__link:hover
.epic-fans-history-archive__title,
.epic-fans-history-archive__link:focus-visible
.epic-fans-history-archive__title {
    text-decoration: underline;
}

@media (max-width: 700px) {

    .epic-fans-history-archive {
        margin-top: 18px;
    }

    .epic-fans-history-archive__content {
        padding: 0;

        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .epic-fans-history-archive__year {
        margin-bottom: 34px;
    }

    .epic-fans-history-archive__year-heading {
        margin-bottom: 8px;
        font-size: 26px;
    }

    .epic-fans-history-archive__link {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;

        padding: 10px 4px;
    }

    .epic-fans-history-archive.is-category-view
    .epic-fans-history-archive__link {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 10px;
    }

    .epic-fans-history-archive__date {
        font-size: 13px;
    }

    .epic-fans-history-archive__title {
        font-size: 16px;
        line-height: 1.35;
    }
}


@media (min-width: 961px) {
    .epic-fans-history-archive__content {
        height: min(68vh, 720px);
        min-height: 560px;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

/*
 * Desktop History card custom scrollbar.
 *
 * Hide the browser scrollbar but preserve normal wheel/trackpad scrolling.
 * A larger themed scrollbar is overlaid inside the card.
 */
@media (min-width: 961px) {
    .epic-fans-history-archive__content {
        position: relative;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .epic-fans-history-archive__content::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .epic-fans-history-card-scrollbar {
        grid-column: 1;
        grid-row: 2;

        position: relative;

        justify-self: end;
        align-self: stretch;

        width: 34px;
        height: 100%;

        margin-right: 12px;

        z-index: 5;
    }

    .epic-fans-history-card-scrollbar__range {
        position: absolute;

        top: 26px;
        bottom: 26px;
        left: 50%;

        width: calc(100% - 8px);
        height: calc(100% - 52px);

        margin: 0;
        padding: 0;

        appearance: none;
        -webkit-appearance: none;

        writing-mode: vertical-lr;
        direction: rtl;

        background: transparent;

        cursor: pointer;

        transform: translateX(-50%);
    }

    .epic-fans-history-card-scrollbar__range::-webkit-slider-runnable-track {
        width: 7px;
        height: 100%;

        border-radius: 999px;

        background: rgba(197, 31, 45, 0.13);
    }

    .epic-fans-history-card-scrollbar__range::-webkit-slider-thumb {
        width: 16px;
        height: 82px;

        margin-left: -4.5px;

        border: 2px solid #ffffff;
        border-radius: 999px;

        -webkit-appearance: none;
        appearance: none;

        background: #c51f2d;

        box-shadow:
            0 2px 8px rgba(20, 24, 28, 0.20);

        cursor: grab;
    }

    .epic-fans-history-card-scrollbar__range:active::-webkit-slider-thumb {
        background: #8f141e;
        cursor: grabbing;
    }

    .epic-fans-history-card-scrollbar__range::-moz-range-track {
        width: 7px;

        border-radius: 999px;

        background: rgba(197, 31, 45, 0.13);
    }

    .epic-fans-history-card-scrollbar__range::-moz-range-thumb {
        width: 16px;
        height: 82px;

        border: 2px solid #ffffff;
        border-radius: 999px;

        background: #c51f2d;

        box-shadow:
            0 2px 8px rgba(20, 24, 28, 0.20);

        cursor: grab;
    }

    .epic-fans-history-card-scrollbar__range:focus-visible {
        outline: 3px solid rgba(197, 31, 45, 0.24);
        outline-offset: 3px;
        border-radius: 999px;
    }
}

@media (max-width: 960px) {
    .epic-fans-history-card-scrollbar {
        display: none;
    }
}


/* History archive year scrubber */
.epic-fans-history-archive__scrubber {
    position: relative;

    width: 100%;
    height: min(68vh, 720px);
    min-height: 560px;

    padding: 14px 0;

    box-sizing: border-box;

    user-select: none;
    touch-action: none;
}

.epic-fans-history-scrubber__track {
    position: relative;

    width: 100%;
    height: 100%;

    cursor: pointer;
}

.epic-fans-history-scrubber__line {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 22px;

    width: 2px;

    border-radius: 999px;

    background: #d2cbc4;
}

.epic-fans-history-scrubber__tick {
    position: absolute;

    left: 17px;

    width: 11px;
    height: 2px;

    border-radius: 999px;

    background: #9b9189;

    transform: translateY(-50%);
}


.epic-fans-history-scrubber__label.is-unavailable {
    opacity: 0.25;
}

.epic-fans-history-scrubber__label.is-available {
    cursor: pointer;
    opacity: 1;
}

.epic-fans-history-scrubber__label {
    position: absolute;

    left: 38px;

    color: #766d66;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;

    white-space: nowrap;

    transform: translateY(-50%);
}

.epic-fans-history-scrubber__thumb {
    position: absolute;

    left: 22px;

    width: 20px;
    height: 20px;

    border: 3px solid #ffffff;
    border-radius: 50%;

    background: #c51f2d;

    box-shadow:
        0 2px 9px rgba(16, 24, 32, 0.25);

    cursor: grab;

    transform: translate(-50%, -50%);

    z-index: 4;
}

.epic-fans-history-scrubber__thumb:active {
    cursor: grabbing;
}

.epic-fans-history-scrubber__active-year {
    position: absolute;

    left: 38px;

    min-width: 44px;

    padding: 5px 7px;

    border: 1px solid #e4ddd6;
    border-radius: 7px;

    background: #ffffff;

    color: #c51f2d;

    font-size: 11px;
    line-height: 1;
    font-weight: 900;

    box-shadow:
        0 2px 8px rgba(16, 24, 32, 0.10);

    white-space: nowrap;

    transform: translateY(-50%);

    z-index: 5;
}

.epic-fans-history-archive.is-date-view
.epic-fans-history-archive__views,
.epic-fans-history-archive.is-date-view
.epic-fans-history-archive__content {
    grid-column: 1;
}

@media (max-width: 960px) {
    .epic-fans-history-archive {
        display: block;
    }

    .epic-fans-history-archive__scrubber {
        display: none;
    }
}

/* History archive view controls */
.epic-fans-history-archive__views {
    display: inline-flex;
    gap: 4px;

    margin: 0 0 28px;
    padding: 4px;

    border: 1px solid #d9d3cb;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.55);
}

.epic-fans-history-archive__view {
    appearance: none;

    border: 0;
    border-radius: 999px;

    padding: 8px 15px;

    background: transparent;

    color: #5f5b57;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}

.epic-fans-history-archive__view:hover,
.epic-fans-history-archive__view:focus-visible {
    background: #ffffff;
}

.epic-fans-history-archive__view.is-active {
    background: #c51f2d;
    color: #ffffff;
}

@media (max-width: 700px) {

    .epic-fans-history-archive__views {
        width: 100%;
        margin-bottom: 22px;
    }

    .epic-fans-history-archive__view {
        flex: 1 1 0;
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* History archive — non-visual host for the shared event drawer controller */
.epic-fans-history-drawer-host {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.epic-fans-history-drawer-host
.epic-fans-timeline__dates {
    display: none !important;
}

/* Profile fact labels: retain heading appearance without H3 semantics. */
.epic-fans-profile__fact-label {
    font-weight: 700;
    color: #111827;
}

/* Profile fact-label spacing */
.epic-fans-profile__fact-label {
    margin-top: 28px;
    margin-bottom: 4px;
}

/* =========================================================
   Shared 404 page — all Epic Fans websites
   ========================================================= */

.epic-not-found {
    box-sizing: border-box;
    min-height: 65vh;
    padding-top: clamp(80px, 10vw, 130px);
    padding-bottom: clamp(90px, 12vw, 150px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epic-not-found__content {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.epic-not-found__eyebrow {
    margin: 0 0 18px;
    color: var(--property-accent, #c00);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.epic-not-found__title {
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.1;
}

.epic-not-found__description {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 18px;
    line-height: 1.65;
}

.epic-not-found__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.epic-not-found__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.epic-not-found__button:hover {
    transform: translateY(-2px);
}

.epic-not-found__button--primary {
    background: var(--property-accent, #c00);
    color: #fff;
}

.epic-not-found__button--secondary {
    border: 1px solid currentColor;
    color: inherit;
}

@media (max-width: 520px) {
    .epic-not-found {
        min-height: 60vh;
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .epic-not-found__description {
        font-size: 17px;
    }
}


/* Shared 404 primary button — property branding */
.epic-not-found .epic-not-found__button--primary,
.epic-not-found .epic-not-found__button--primary:link,
.epic-not-found .epic-not-found__button--primary:visited,
.epic-not-found .epic-not-found__button--primary:hover,
.epic-not-found .epic-not-found__button--primary:focus {
    background-color: var(--property-accent, #c00);
    color: #ffffff !important;
    text-decoration: none !important;
}


/* Shared 404 secondary button — property theme colour */
.epic-not-found .epic-not-found__button--secondary,
.epic-not-found .epic-not-found__button--secondary:link,
.epic-not-found .epic-not-found__button--secondary:visited {
    background-color: color-mix(
        in srgb,
        var(--property-accent, #c00) 9%,
        transparent
    );
    border: 1px solid var(--property-accent, #c00);
    color: var(--property-accent, #c00);
    text-decoration: none;
}

.epic-not-found .epic-not-found__button--secondary:hover,
.epic-not-found .epic-not-found__button--secondary:focus {
    background-color: var(--property-accent, #c00);
    border-color: var(--property-accent, #c00);
    color: #ffffff;
    text-decoration: none;
}

/* Shared 404 secondary button — remove underline in all states */
.epic-not-found a.epic-not-found__button--secondary,
.epic-not-found a.epic-not-found__button--secondary:link,
.epic-not-found a.epic-not-found__button--secondary:visited {
    color: var(--property-accent, #c00) !important;
    text-decoration: none !important;
}

/* Shared 404 secondary button — white text on hover/focus */
.epic-not-found a.epic-not-found__button--secondary:hover,
.epic-not-found a.epic-not-found__button--secondary:focus,
.epic-not-found a.epic-not-found__button--secondary:active {
    background-color: var(--property-accent, #c00) !important;
    border-color: var(--property-accent, #c00) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}


/* Spacing below the community ranking list */
.epic-fans-rankings__participant-count {
    margin-top: 20px;
}

/* Rankings category selector and shared content card */
.epic-fans-rankings__category-form {
    margin: 0 0 24px;
}

.epic-fans-rankings__category-label {
    display: block;
    margin-bottom: 9px;
    color: #827771;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.epic-fans-rankings__category-controls {
    display: block;
    max-width: 370px;
}

.epic-fans-rankings__category-select {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 40px 12px 14px;
    border: 1px solid #dcd5cf;
    border-radius: 10px;
    background-color: #fff;
    color: #30383d;
    font-family: Geist, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6063' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
}

.epic-fans-rankings__category-select:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: 3px;
}

.epic-fans-rankings__card {
    min-width: 0;
}

.epic-fans-rankings__card .epic-fans-profile__title {
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .epic-fans-rankings__category-controls {
        max-width: 100%;
    }
}

/* Rankings pre-submission editor */
.epic-fans-rankings__overall[hidden] {
    display: none !important;
}

.epic-fans-rankings__editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.epic-fans-rankings__instructions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #827771;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.epic-fans-rankings__my-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.epic-fans-rankings__my-item {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid #e4ddd6;
    border-radius: 10px;
    background: #f4eee8;
    overflow: hidden;
}

.epic-fans-rankings__my-position {
    flex: 0 0 28px;
    padding-left: 17px;
    color: var(--property-accent, #b5121b);
    font-weight: 700;
}

.epic-fans-rankings__my-details {
    flex: 1 1 auto;
    min-width: 0;
    padding: 5px 10px 5px 0;
    border: 0;
    box-shadow: none;
    text-align: left;
}

.epic-fans-rankings__my-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 2px;
}

.epic-fans-rankings__my-text .epic-fans-rankings__name {
    font-size: 17px;
    line-height: 1.3;
}

.epic-fans-rankings__my-subtitle {
    color: #827771;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 400;
}

.epic-fans-rankings__my-item:hover {
    background: #fff0f0;
}

.epic-fans-rankings__my-item .epic-fans-rankings__my-details {
    background: transparent;
}

.epic-fans-rankings__my-item .epic-fans-rankings__my-details:hover {
    background: transparent;
}

.epic-fans-rankings__my-item:hover .epic-fans-rankings__drag-handle {
    background: #fff0f0;
}

.epic-fans-rankings__drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    align-self: stretch;
    border: 0;
    background: #f4eee8;
    color: #827771;
    font-size: 21px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.epic-fans-rankings__drag-handle:active {
    cursor: grabbing;
}

.epic-fans-rankings__drag-handle:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: -3px;
}

.epic-fans-rankings__my-item.is-placeholder
.epic-fans-rankings__drag-handle:focus-visible {
    outline: none;
}

/* Animated Rankings dragging */
.epic-fans-rankings__my-item.is-placeholder {
    opacity: 0.22;
    border-style: dashed;
}

.epic-fans-rankings__my-item.is-drag-ghost {
    position: fixed;
    z-index: 100000;
    margin: 0;
    opacity: 1;
    border-color: var(--property-accent, #b5121b);
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 24, 28, 0.20);
    pointer-events: none;
    box-sizing: border-box;
}

.epic-fans-rankings__drag-handle {
    -webkit-user-select: none;
}

.epic-fans-rankings__submit {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0;
    padding: 11px 20px;
    border: 0;
    border-radius: 12px;
    background: #cf2628;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.epic-fans-rankings__submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.epic-fans-rankings__submit-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-rankings__submit:disabled {
    opacity: 1;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .epic-fans-rankings__my-position {
        flex-basis: 26px;
        padding-left: 14px;
    }

}

/* Rankings submission validation feedback */
.epic-fans-rankings__submit-status {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #446345;
}

.epic-fans-rankings__submit-status[hidden] {
    display: none;
}

.epic-fans-rankings__submit-status.is-error {
    color: #a1272a;
}

/* Rankings cards — shared component */
.epic-fans-rankings {
    min-width: 0;
}

.epic-fans-rankings__list {
    display: grid;
    gap: 7px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.epic-fans-rankings__item {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e4ddd6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(20, 24, 28, 0.04);
}

.epic-fans-rankings__details {
    margin: 0;
}

.epic-fans-rankings__details > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 20px;
    cursor: pointer;
    list-style: none;
    color: #30383d;
    font-family: Geist, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

.epic-fans-rankings__details > summary::-webkit-details-marker {
    display: none;
}

.epic-fans-rankings__details > summary strong {
    flex: 0 0 auto;
    color: var(--property-accent, #b5121b);
    font-weight: 700;
}

.epic-fans-rankings__details > summary::after {
    content: "+";
    margin-left: auto;
    color: #827771;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.epic-fans-rankings__details[open] > summary::after {
    content: "−";
}

.epic-fans-rankings__details > summary:hover,
.epic-fans-rankings__details > summary:focus-visible {
    background: #faf7f3;
}

.epic-fans-rankings__details[open] > summary {
    border-bottom: 1px solid #eae3dc;
}

.epic-fans-rankings__details > figure {
    margin: 20px 20px 16px;
}

.epic-fans-rankings__details > figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 360px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
}

.epic-fans-rankings__details > p {
    margin: 18px 20px 22px;
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .epic-fans-rankings__details > summary {
        padding: 15px 14px;
        font-size: 15px;
    }

    .epic-fans-rankings__details > figure {
        margin: 16px 14px;
    }

    .epic-fans-rankings__details > p {
        margin: 16px 14px 20px;
    }
}


/* Rankings slide-over drawer — shared component */
.epic-fans-rankings__trigger {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    background: transparent;
    color: #30383d;
    font-family: Geist, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

/* Community ranking bars — widths follow official position */
.epic-fans-rankings__bar {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0 9px 9px 0;
    pointer-events: none;
}

.epic-fans-rankings__bar--0 { background: #FFCDD2; }
.epic-fans-rankings__bar--1 { background: #BBDEFB; }
.epic-fans-rankings__bar--2 { background: #C8E6C9; }
.epic-fans-rankings__bar--3 { background: #E1BEE7; }

.epic-fans-rankings__trigger > :not(.epic-fans-rankings__bar) {
    position: relative;
    z-index: 1;
}

.epic-fans-rankings__trigger:hover,
.epic-fans-rankings__trigger:focus-visible {
    background: #faf7f3;
}

.epic-fans-rankings__position {
    flex: 0 0 auto;
    color: var(--property-accent, #b5121b);
    font-weight: 700;
}

.epic-fans-rankings__name {
    flex: 1;
    min-width: 0;
}

.epic-fans-rankings__arrow {
    margin-left: auto;
    color: #827771;
    font-size: 27px;
    line-height: 1;
    font-weight: 400;
}

/* Drawer overlay */
.epic-fans-rankings__drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.26s;
}

.epic-fans-rankings__drawer.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.epic-fans-rankings__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(20, 20, 20, 0.38);
    opacity: 0;
    cursor: default;
    transition: opacity 0.24s ease;
}

.epic-fans-rankings__drawer.is-open
.epic-fans-rankings__backdrop {
    opacity: 1;
}

.epic-fans-rankings__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(560px, 48vw);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(.22, .8, .3, 1);
    overflow: hidden;
}

.epic-fans-rankings__drawer.is-open
.epic-fans-rankings__panel {
    transform: translateX(0);
}

.epic-fans-rankings__drawer-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 64px 44px 12px;
}

.epic-fans-rankings__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.epic-fans-rankings__close:hover {
    background: #f5f5f5;
}

.epic-fans-rankings__drawer-title {
    margin: 0 48px 22px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #30383d;
}

.epic-fans-rankings__drawer-description p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.75;
}

.epic-fans-rankings__drawer-image {
    margin: 24px 0 0;
}

.epic-fans-rankings__drawer-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    margin-inline: auto;
    object-fit: contain;
    border-radius: 12px;
}

.epic-fans-rankings__drawer-image figcaption {
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 700px) {
    .epic-fans-rankings__trigger {
        padding: 11px 14px;
        font-size: 15px;
    }

    .epic-fans-rankings__panel {
        width: 100%;
        max-width: none;
    }

    .epic-fans-rankings__drawer-scroll {
        padding: 62px 22px calc(58px + env(safe-area-inset-bottom, 0px));
    }

    .epic-fans-rankings__drawer-title {
        font-size: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-rankings__panel,
    .epic-fans-rankings__backdrop {
        transition: none;
    }
}

/* Rankings: show the existing community and personal views after confirmation */
.epic-fans-rankings__view-switch[hidden],
.epic-fans-rankings__editor[hidden] {
    display: none !important;
}

.epic-fans-rankings__view-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 5px;
    border: 1px solid #e4ddd6;
    border-radius: 11px;
    background: #f4eee8;
}

.epic-fans-rankings__view-button {
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4d4a47;
    font: 700 14px/1.4 Geist, Arial, sans-serif;
    cursor: pointer;
}

.epic-fans-rankings__view-button[aria-pressed="true"] {
    background: var(--property-accent, #b5121b);
    color: #fff;
}

.epic-fans-rankings__view-button:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: 3px;
}

.epic-fans-rankings__drag-handle[hidden] {
    display: none !important;
}

.epic-fans-rankings__editor[data-submission-locked="true"]
.epic-fans-rankings__my-list {
    cursor: default;
}

/* Rankings: compact post-submission header */
@media (min-width: 701px) {
    .epic-fans-rankings__card:has(> .epic-fans-rankings__view-switch:not([hidden])) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 20px;
        align-items: center;
    }

    .epic-fans-rankings__card > .epic-fans-profile__title {
        grid-column: 1;
    }

    .epic-fans-rankings__card > .epic-fans-rankings__view-switch {
        grid-column: 2;
        justify-self: end;
        margin: 0;
    }

    .epic-fans-rankings__card > .epic-fans-rankings__editor,
    .epic-fans-rankings__card > .epic-fans-rankings__overall {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

/* Hide the Submit button after a confirmed vote */
.epic-fans-rankings__view-switch:not([hidden])
~ .epic-fans-rankings__editor .epic-fans-rankings__submit {
    display: none !important;
}


/* Hide redundant confirmation in submitted rankings */
.epic-fans-rankings__editor[data-submission-locked="true"]
.epic-fans-rankings__submit-status:not(.is-error) {
    display: none !important;
}


/* Rankings: identical two-line text in Overall and My Ranking */
.epic-fans-rankings__overall .epic-fans-rankings__my-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.epic-fans-rankings__overall .epic-fans-rankings__name {
    line-height: 1.3;
}

.epic-fans-rankings__overall .epic-fans-rankings__my-subtitle {
    display: block;
    margin-top: 3px;
}


/* Overall Ranking: match My Ranking card dimensions */
.epic-fans-rankings__overall .epic-fans-rankings__item {
    border-radius: 10px;
    box-shadow: none;
}

.epic-fans-rankings__overall .epic-fans-rankings__trigger {
    min-height: 64px;
    padding: 5px 10px 5px 0;
    gap: 0;
    font-size: 16px;
}

.epic-fans-rankings__overall .epic-fans-rankings__position {
    flex: 0 0 48px;
    padding-left: 17px;
    box-sizing: border-box;
}

.epic-fans-rankings__overall .epic-fans-rankings__my-text {
    gap: 2px;
    margin: 0;
}

.epic-fans-rankings__overall .epic-fans-rankings__my-subtitle {
    margin-top: 0;
}

.epic-fans-rankings__overall .epic-fans-rankings__arrow {
    margin-right: 8px;
}


/* Rankings: compact card heights in both views */

/* Overall Ranking */
.epic-fans-rankings__overall .epic-fans-rankings__trigger {
    min-height: 52px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* My Ranking */
.epic-fans-rankings__my-item {
    min-height: 52px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Reduce vertical gaps between cards */
.epic-fans-rankings__overall .epic-fans-rankings__list,
.epic-fans-rankings__my-list {
    row-gap: 5px;
}

/* Keep two-line text compact */
.epic-fans-rankings__my-text {
    gap: 0;
}

.epic-fans-rankings__my-subtitle {
    margin-top: 1px;
    line-height: 1.2;
}


/* Compact ranking editor and submitted My Ranking cards */
.epic-fans-rankings .epic-fans-rankings__my-list > .epic-fans-rankings__my-item {
    min-height: 52px;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.epic-fans-rankings .epic-fans-rankings__my-item > .epic-fans-rankings__my-details {
    min-height: 52px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.epic-fans-rankings .epic-fans-rankings__my-item > .epic-fans-rankings__drag-handle {
    min-height: 52px;
}


/* Responsive YouTube videos in Rankings details drawers */
.epic-fans-rankings__drawer-video {
    width: 100%;
    margin: 20px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #101820;
}

.epic-fans-rankings__drawer-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Rankings: align sticky sidebar with Rankings card */
@media (min-width: 961px) {

    body.page-id-152 .epic-page-layout {
        align-items: stretch;
    }

    body.page-id-152 .epic-app-promo-sidebar {
        padding-top: 261px;
        padding-bottom: 0;
        align-self: stretch;
    }

    body.page-id-152 .epic-app-promo-sidebar__inner {
        position: sticky;
        top: 110px;
    }
}

/* Rankings: remove inherited 48px sidebar bottom offset */
@media (min-width: 961px) {
    body.page-id-152:not(.epic-fans-event-route)
    .epic-page-layout:not(.epic-page-layout--profile)
    .epic-app-promo-sidebar {
        padding-bottom: 0;
    }
}




/* Shared footer clearance for standard desktop pages */
@media (min-width: 961px) {
    body:not(.home):not(.epic-fans-event-route)
    .epic-page-layout:not(.epic-page-layout--profile) {
        margin-bottom: 0;
    }

    body:not(.home):not(.epic-fans-event-route)
    .epic-page-layout:not(.epic-page-layout--profile)
    .epic-page-layout__main {
        padding-bottom: 0;
    }

    body:not(.home):not(.epic-fans-event-route)
    main.site-shell:has(
        .epic-page-layout:not(.epic-page-layout--profile)
    ) {
        padding-bottom: 96px;
    }
}


/* Optional two-line mobile property title */
.site-header .site-brand__title-mobile {
    display: none;
}

@media (max-width: 800px) {
    .site-header .site-brand__name--property:has(.site-brand__title-mobile)
    .site-brand__title-default {
        display: none;
    }

    .site-header .site-brand__title-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
}

/* Rankings: align desktop app promo with the rankings card */
@media (min-width: 961px) {
    .epic-page-layout:has(.epic-fans-rankings__card)
    > .epic-app-promo-sidebar {
        padding-top: 322px;
    }
}

/* Shared event quiz — reusable across event pages, drawers and timelines. */

/*
 * Quiz typography is identical in event pages and drawers.
 * Prevent drawer-specific heading and button rules from overriding it.
 */
.epic-fans-event-quiz,
.epic-fans-event-drawer .epic-fans-event-quiz {
    font-family: Geist, Arial, sans-serif;
}

.epic-fans-event-drawer .epic-fans-event-quiz__header,
.epic-fans-event-drawer .epic-fans-event-quiz__header-text,
.epic-fans-event-drawer .epic-fans-event-quiz__question,
.epic-fans-event-drawer .epic-fans-event-quiz__option,
.epic-fans-event-drawer .epic-fans-event-quiz__option-label,
.epic-fans-event-drawer .epic-fans-event-quiz__answer-card,
.epic-fans-event-drawer .epic-fans-event-quiz__answer-title,
.epic-fans-event-drawer .epic-fans-event-quiz__answer-body {
    font-family: Geist, Arial, sans-serif;
}

.epic-fans-event-drawer .epic-fans-event-quiz__question {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 700;
}

.epic-fans-event-drawer .epic-fans-event-quiz__option {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.epic-fans-event-drawer .epic-fans-event-quiz__answer-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.epic-fans-event-drawer .epic-fans-event-quiz__answer-body {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

@media (max-width: 600px) {
    .epic-fans-event-drawer .epic-fans-event-quiz__question {
        font-size: 18px;
    }

    .epic-fans-event-drawer .epic-fans-event-quiz__option {
        font-size: 15px;
    }

    .epic-fans-event-drawer .epic-fans-event-quiz__answer-title {
        font-size: 16px;
    }

    .epic-fans-event-drawer .epic-fans-event-quiz__answer-body {
        font-size: 14px;
    }
}


.epic-fans-event-quiz {
    --quiz-red: #d5192a;
    --quiz-red-soft: #f8e3e6;
    --quiz-red-border: #e06a74;
    --quiz-green: #2f8746;
    --quiz-green-soft: #e5f1e8;
    --quiz-green-border: #7fc28e;
    --quiz-neutral-border: #bca8a1;
    --quiz-neutral-text: #715f59;

    margin: 28px 0;
    padding: 28px;
    background: #f8f4f4;
    border: 1px solid #d9cac5;
    border-radius: 22px;
    color: #2a2a2a;
}

.epic-fans-event-quiz__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--property-accent, #c51f2d);
}

.epic-fans-event-quiz__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.epic-fans-event-quiz__header-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-event-quiz__header-text {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.epic-fans-event-quiz__question {
    margin: 0 0 20px;
    color: #2a2a2a;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
}

.epic-fans-event-quiz__options {
    display: grid;
    gap: 12px;
}

.epic-fans-event-quiz__option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 12px 14px;
    border: 1.5px solid var(--quiz-neutral-border);
    border-radius: 16px;
    background: #fff;
    color: var(--quiz-neutral-text);
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.epic-fans-event-quiz__option:hover,
.epic-fans-event-quiz__option:focus-visible {
    border-color: #9d8780;
    box-shadow: 0 0 0 2px rgba(157, 135, 128, 0.12);
}

.epic-fans-event-quiz__option:focus-visible {
    outline: none;
}

.epic-fans-event-quiz__option-index,
.epic-fans-event-quiz__result-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.epic-fans-event-quiz__option-index {
    width: 34px;
    height: 34px;
    border: 2px solid #b9aaa4;
    color: #8d7c75;
    background: #fff;
    font-size: 16px;
    line-height: 1;
}

.epic-fans-event-quiz__option-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
}

.epic-fans-event-quiz__result-icon {
    width: 30px;
    height: 30px;
    margin-left: auto;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1;
    text-align: center;
    transform: translateY(-1px);
}

.epic-fans-event-quiz__result-icon[hidden] {
    display: none !important;
}

/* Immediate neutral feedback while a quiz reveal is authorised. */
.epic-fans-event-quiz[aria-busy="true"]
.epic-fans-event-quiz__option.is-selected:not(.is-correct):not(.is-incorrect) {
    border-color: #8297a7;
    background: #edf3f7;
    color: #344b5b;
    position: relative;
}

.epic-fans-event-quiz[aria-busy="true"]
.epic-fans-event-quiz__option.is-selected:not(.is-correct):not(.is-incorrect)::after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    margin-left: auto;
    flex-shrink: 0;
    border: 2px solid #b8c8d3;
    border-top-color: #344b5b;
    border-radius: 50%;
    animation: epic-quiz-check-spin 0.7s linear infinite;
}

@keyframes epic-quiz-check-spin {
    to { transform: rotate(360deg); }
}

.epic-fans-event-quiz__pending-message {
    padding: 9px 2px 2px;
    font-size: 13px;
    color: #687782;
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-event-quiz[aria-busy="true"]
    .epic-fans-event-quiz__option.is-selected::after {
        animation: none;
    }
}

.epic-fans-event-quiz__option.is-correct {
    border-color: var(--quiz-green);
    background: var(--quiz-green-soft);
    color: #2b5d39;
}

.epic-fans-event-quiz__option.is-correct
.epic-fans-event-quiz__option-index {
    border-color: var(--quiz-green);
    background: var(--quiz-green);
    color: #fff;
}

.epic-fans-event-quiz__option.is-correct
.epic-fans-event-quiz__result-icon.is-correct {
    background: var(--quiz-green);
    color: #fff;
}

.epic-fans-event-quiz__option.is-incorrect {
    border-color: var(--quiz-red);
    background: var(--quiz-red-soft);
    color: #8f2e38;
}

.epic-fans-event-quiz__option.is-incorrect
.epic-fans-event-quiz__option-index {
    border-color: var(--quiz-red);
    background: var(--quiz-red);
    color: #fff;
}

.epic-fans-event-quiz__option.is-incorrect
.epic-fans-event-quiz__result-icon.is-incorrect {
    background: var(--quiz-red);
    color: #fff;
}

.epic-fans-event-quiz__answer-card {
    margin-top: 18px;
    padding: 18px 18px 16px;
    border: 2px solid #ddd1cc;
    border-radius: 18px;
    background: #fff;
}

.epic-fans-event-quiz__answer-card[hidden] {
    display: none !important;
}

.epic-fans-event-quiz__answer-card.is-correct {
    background: var(--quiz-green-soft);
    border-color: var(--quiz-green-border);
    color: #2b5d39;
}

.epic-fans-event-quiz__answer-card.is-incorrect {
    background: var(--quiz-red-soft);
    border-color: var(--quiz-red-border);
    color: #8f2e38;
}

.epic-fans-event-quiz__answer-title {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.epic-fans-event-quiz__answer-body {
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
}

@media (max-width: 600px) {
    .epic-fans-event-quiz {
        margin: 22px 0;
        padding: 20px;
        border-radius: 20px;
    }

    .epic-fans-event-quiz__header-text {
        font-size: 16px;
    }

    .epic-fans-event-quiz__question {
        font-size: 18px;
    }

    .epic-fans-event-quiz__option {
        min-height: 54px;
        padding: 10px 12px;
        font-size: 15px;
    }

    .epic-fans-event-quiz__option-index {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .epic-fans-event-quiz__result-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .epic-fans-event-quiz__answer-title {
        font-size: 16px;
    }

    .epic-fans-event-quiz__answer-body {
        font-size: 14px;
    }
}


/* ==========================================================
   Shared event poll — full event pages and event drawers
   ========================================================== */

.epic-fans-event-poll,
.epic-fans-event-drawer .epic-fans-event-poll {
    font-family: Geist, Arial, sans-serif;
}

.epic-fans-event-poll {
    --poll-accent: var(--property-accent, #c51f2d);
    margin: 28px 0;
    padding: 28px;
    background: #f8f4f4;
    border: 1px solid #d9cac5;
    border-radius: 22px;
    color: #2a2a2a;
}

.epic-fans-event-poll__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--poll-accent);
}

.epic-fans-event-poll__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.epic-fans-event-poll__header-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-event-poll__header-text {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.epic-fans-event-poll__question {
    margin: 0 0 20px;
    color: #2a2a2a;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
}

.epic-fans-event-poll__options {
    display: grid;
    gap: 12px;
}

.epic-fans-event-poll__option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 12px 14px;
    border: 1.5px solid #bca8a1;
    border-radius: 16px;
    background: #fff;
    color: #715f59;
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.epic-fans-event-poll__option:hover,
.epic-fans-event-poll__option:focus-visible {
    border-color: var(--poll-accent);
    box-shadow: 0 0 0 2px rgba(110, 80, 70, 0.12);
}

.epic-fans-event-poll__option:focus-visible {
    outline: none;
}

.epic-fans-event-poll__option:disabled {
    cursor: default;
    opacity: 0.75;
}

.epic-fans-event-poll__option-index {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #b9aaa4;
    border-radius: 999px;
    color: #8d7c75;
    background: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.epic-fans-event-poll__option-content {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 7px;
}

.epic-fans-event-poll__option-label {
    font-weight: 700;
}

.epic-fans-event-poll__option.is-selected {
    border-color: var(--poll-accent);
    background: #fff7f7;
    color: #333;
}

.epic-fans-event-poll__option.is-selected
.epic-fans-event-poll__option-index {
    border-color: var(--poll-accent);
    background: var(--poll-accent);
    color: #fff;
}

.epic-fans-event-poll__result-track {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8dfdc;
}

.epic-fans-event-poll__result-track[hidden] {
    display: none !important;
}

.epic-fans-event-poll__result-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--poll-accent);
    transition: width 200ms ease;
}

.epic-fans-event-poll__percentage {
    flex: 0 0 auto;
    min-width: 42px;
    text-align: right;
    color: #555;
    font-size: 14px;
    font-weight: 800;
}

.epic-fans-event-poll__percentage[hidden] {
    display: none !important;
}

.epic-fans-event-poll__status {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.epic-fans-event-poll__status:empty {
    display: none;
}

.epic-fans-event-poll__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 16px;
    color: #715f59;
    font-size: 13px;
    line-height: 1.4;
}

/* Keep event-drawer polls full width regardless of text length. */
.epic-fans-event-drawer .epic-fans-event-poll {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.epic-fans-event-drawer .epic-fans-event-poll__question {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 700;
}

.epic-fans-event-drawer .epic-fans-event-poll__option {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

@media (max-width: 600px) {
    .epic-fans-event-poll {
        margin: 22px 0;
        padding: 20px;
        border-radius: 20px;
    }

    .epic-fans-event-poll__header-text {
        font-size: 16px;
    }

    .epic-fans-event-poll__question,
    .epic-fans-event-drawer .epic-fans-event-poll__question {
        font-size: 18px;
    }

    .epic-fans-event-poll__option,
    .epic-fans-event-drawer .epic-fans-event-poll__option {
        min-height: 54px;
        padding: 10px 12px;
        font-size: 15px;
    }

    .epic-fans-event-poll__option-index {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .epic-fans-event-poll__percentage {
        min-width: 36px;
        font-size: 13px;
    }
}


/* ==========================================================
   Shared poll — app-matched selection and results
   ========================================================== */

.epic-fans-event-poll__option-index {
    font-size: 0;
}

.epic-fans-event-poll__option.is-selected
.epic-fans-event-poll__option-index {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}

.epic-fans-event-poll__votes {
    display: block;
    color: #756a66;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
}

.epic-fans-event-poll__votes[hidden],
.epic-fans-event-poll__footer[hidden] {
    display: none !important;
}

.epic-fans-event-poll__footer {
    display: block;
    color: #715f59;
    font-size: 13px;
    line-height: 1.5;
}

.epic-fans-event-poll__total,
.epic-fans-event-poll__hint {
    display: inline;
    font-size: 14px;
}

@media (max-width: 600px) {
    .epic-fans-event-poll__option.is-selected
    .epic-fans-event-poll__option-index {
        font-size: 18px;
    }
}

/* Drawer poll question: force same typography as event-page poll question */
.epic-fans-event-drawer .epic-fans-event-poll__question {
    font-family: Geist, Arial, sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: #2A2A2A;
}


/* Mobile event-page and drawer polls — compact app-inspired layout.
   Homepage timeline supplements retain their existing styles. */
@media (max-width: 700px) {
    .epic-fans-event-poll:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-poll
    ) {
        margin: 18px 0;
        padding: 16px;
        border-radius: 16px;
    }

    .epic-fans-event-poll:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-poll
    ) .epic-fans-event-poll__header {
        gap: 8px;
        margin-bottom: 12px;
        color: #715f59;
    }

    .epic-fans-event-poll__header-icon {
        width: 22px;
        height: 22px;
    }

    .epic-fans-event-poll__header-icon svg {
        width: 20px;
        height: 20px;
    }

    .epic-fans-event-poll__header-text {
        font-size: 15px;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: none;
    }

    .epic-fans-event-poll:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-poll
    ) .epic-fans-event-poll__question,
    .epic-fans-event-drawer .epic-fans-event-poll__question {
        margin-bottom: 15px;
        font-size: 16px;
        line-height: 1.4;
        font-weight: 700;
    }

    .epic-fans-event-poll__options {
        gap: 7px;
    }

    .epic-fans-event-poll:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-poll
    ) .epic-fans-event-poll__option,
    .epic-fans-event-drawer .epic-fans-event-poll__option {
        gap: 9px;
        min-height: 44px;
        padding: 7px 12px;
        border-width: 1px;
        border-radius: 10px;
        font-size: 15px;
        line-height: 1.3;
    }

    .epic-fans-event-poll__option-index {
        width: 22px;
        height: 22px;
        border-width: 1.5px;
    }

    .epic-fans-event-poll__option-content {
        gap: 5px;
    }

    .epic-fans-event-poll__status {
        margin-top: 9px;
        font-size: 12px;
    }

    .epic-fans-event-poll__footer {
        margin-top: 10px;
        font-size: 12px;
    }
}

/* Compact timeline poll supplement — shared */
.epic-fans-timeline__event-list {
    align-items: start;
}

.epic-fans-timeline__supplementary-card {
    height: 244px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    scrollbar-width: thin;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll {
    margin: 0;
    padding: 14px;
    border-radius: 18px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__header {
    margin-bottom: 8px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__header-text {
    font-size: 12px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__question {
    margin-bottom: 10px;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__options {
    gap: 5px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__option {
    min-height: 30px;
    padding: 5px 7px;
    gap: 7px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.2;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__option-index {
    width: 19px;
    height: 19px;
    font-size: 12px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__option-content {
    gap: 3px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__result-track {
    height: 4px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__votes {
    display: none !important;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__percentage {
    min-width: 25px;
    font-size: 11px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__status,
.epic-fans-timeline__supplementary-card .epic-fans-event-poll__footer {
    margin-top: 6px;
    font-size: 11px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__total,
.epic-fans-timeline__supplementary-card .epic-fans-event-poll__hint {
    font-size: 11px;
}


/* Compact timeline poll heading reduction */
.epic-fans-timeline__supplementary-card .epic-fans-event-poll__header {
    display: none;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__question {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #2a2a2a;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__question::before {
    content: 'POLL: ';
    color: #c51620;
    font-weight: 800;
}


/* Compact timeline poll — smaller question and hidden status */
.epic-fans-timeline__supplementary-card .epic-fans-event-poll__question {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll__status {
    display: none !important;
}


/* Timeline supplementary card — equal height and cursor */
.epic-fans-timeline__event-list:has(.epic-fans-timeline__supplementary-card) {
    align-items: stretch;
}

.epic-fans-timeline__supplementary-card {
    height: auto;
    max-height: none;
    align-self: stretch;
    overflow-y: visible;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-poll {
    height: 100%;
    box-sizing: border-box;
}

.epic-fans-timeline__supplementary-card
.epic-fans-event-poll__option:disabled {
    cursor: default;
}


/* Compact timeline quiz supplement — shared */

/*
 * The normal event cards determine the grid row height.
 * Quiz content scrolls inside that height after an answer reveal.
 */
.epic-fans-timeline__supplementary-card:has(.epic-fans-event-quiz) {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border-radius: 18px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__header {
    display: none;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__question {
    margin: 0 0 8px;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__question::before {
    content: 'QUIZ: ';
    color: #c51620;
    font-weight: 800;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__options {
    gap: 5px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__option {
    min-height: 30px;
    padding: 5px 7px;
    gap: 7px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.2;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__option-index {
    width: 19px;
    height: 19px;
    font-size: 11px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__result-icon {
    width: 19px;
    height: 19px;
    font-size: 12px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__answer-card {
    margin-top: 7px;
    padding: 8px;
    border-radius: 9px;
    border-width: 1px;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__answer-title {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.3;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__answer-body {
    font-size: 11px;
    line-height: 1.4;
}


/* Compact timeline quiz supplement — hide explanation body */
.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__answer-body {
    display: none;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__answer-title {
    margin-bottom: 0;
}

.epic-fans-timeline__supplementary-card .epic-fans-event-quiz__answer-card {
    margin-top: 6px;
    padding: 7px 8px;
}


/* Single-event timeline landscape image card — shared */
.epic-fans-timeline__image-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
}

.epic-fans-timeline__image-card.has-image {
    border: 1px solid #e7dfda;
    background: #fffdfa;
}

.epic-fans-timeline__image-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.epic-fans-timeline__image-card figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    line-height: 1.3;
}



/* Timeline image caption and credit */
.epic-fans-timeline__image-card figcaption {
    text-align: center;
}

.epic-fans-timeline__image-caption {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.epic-fans-timeline__image-credit {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.3;
    font-style: italic;
    opacity: 0.85;
}



/* Timeline image link — preserve full card height */
.epic-fans-timeline__event-list > .epic-fans-timeline__event-link:has(.epic-fans-timeline__image-card) {
    display: block;
    height: 100%;
    min-height: 0;
}

.epic-fans-timeline__event-link .epic-fans-timeline__image-card {
    width: 100%;
    height: 100%;
    min-height: 0;
}


/* Timeline initial date positioning */
.epic-fans-timeline__dates.is-initializing {
    visibility: hidden;
}


/* Shared timeline card shadow and hover spacing */

/*
 * Preserve horizontal swipe clipping, but give the cards
 * room for their hover lift and shadows inside the container.
 */
.epic-fans-timeline__events {
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Consistent appearance across event, image and engagement cards. */
.epic-fans-timeline__event-card,
.epic-fans-timeline__image-card,
.epic-fans-timeline__supplementary-card {
    box-shadow:
        0 4px 12px rgba(16, 24, 32, 0.05),
        0 14px 30px rgba(16, 24, 32, 0.035);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

/*
 * Apply the lift to the outer card, not the image
 * or quiz/poll contents.
 */
.epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card,
.epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card,
.epic-fans-timeline__supplementary-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(16, 24, 32, 0.07),
        0 18px 36px rgba(16, 24, 32, 0.05);
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-timeline__event-card,
    .epic-fans-timeline__image-card,
    .epic-fans-timeline__supplementary-card {
        transition: none;
    }

    .epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card,
    .epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card,
    .epic-fans-timeline__supplementary-card:hover {
        transform: none;
    }
}


/* Timeline cards: unclipped hover treatment */

/* No clipped shadows inside the swipe container. */
.epic-fans-timeline__event-card,
.epic-fans-timeline__image-card,
.epic-fans-timeline__supplementary-card {
    box-shadow: none !important;
}

/* Subtle lift effect without moving the top edge upwards. */
.epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card,
.epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card,
.epic-fans-timeline__supplementary-card:hover {
    transform: scale(1.008);
    transform-origin: center top;
    box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card,
    .epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card,
    .epic-fans-timeline__supplementary-card:hover {
        transform: none;
    }
}


/* Timeline cards: shared diagonal light sweep */

/*
 * Keep the timeline cards stationary and shadow-free.
 * The light effect stays clipped within each card.
 */
.epic-fans-timeline__event-card,
.epic-fans-timeline__image-card,
.epic-fans-timeline__supplementary-card {
    position: relative;
    isolation: isolate;
    transform: none !important;
    box-shadow: none !important;
}

/*
 * Event cards already use ::before for their category
 * accent strip, so use ::after for the light sweep.
 */
.epic-fans-timeline__event-card::after,
.epic-fans-timeline__image-card::after,
.epic-fans-timeline__supplementary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;

    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(255, 255, 255, 0.00) 35%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0.00) 65%,
        transparent 75%
    );

    transform: translateX(-130%);
    transition: none;
    pointer-events: none;
}

/* Animate on hover, but reset instantly on mouse leave. */
.epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card::after,
.epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card::after,
.epic-fans-timeline__supplementary-card:hover::after {
    transition: transform 0.7s ease;
}

/* Same movement across all three card types. */
.epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card::after,
.epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card::after,
.epic-fans-timeline__supplementary-card:hover::after {
    transform: translateX(130%);
}

/* Cancel previous hover movement completely. */
.epic-fans-timeline__event-card:hover,
.epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card,
.epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card,
.epic-fans-timeline__supplementary-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-timeline__event-card::after,
    .epic-fans-timeline__image-card::after,
    .epic-fans-timeline__supplementary-card::after {
        transition: none;
        transform: translateX(-130%);
    }

    .epic-fans-timeline__event-link:hover .epic-fans-timeline__event-card::after,
    .epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card::after,
    .epic-fans-timeline__supplementary-card:hover::after {
        transform: translateX(-130%);
    }
}


/* Timeline light sweep: category-coloured text cards */

/* Event cards inherit their existing category accent. */
.epic-fans-timeline__event-card::after {
    background: linear-gradient(
        115deg,
        transparent 25%,
        color-mix(in srgb, var(--event-accent, #b5121b) 0%, transparent) 35%,
        color-mix(in srgb, var(--event-accent, #b5121b) 16%, transparent) 50%,
        color-mix(in srgb, var(--event-accent, #b5121b) 0%, transparent) 65%,
        transparent 75%
    );
}

/* Quiz and poll cards use the shared brand accent. */
.epic-fans-timeline__supplementary-card::after {
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(181, 18, 27, 0) 35%,
        rgba(181, 18, 27, 0.10) 50%,
        rgba(181, 18, 27, 0) 65%,
        transparent 75%
    );
}

/* Photo cards retain their existing bright white sweep. */


/* Timeline cards: category-coloured hover treatment */

/* Remove diagonal sweep from event and engagement cards only. */
.epic-fans-timeline__event-card::after,
.epic-fans-timeline__supplementary-card::after {
    display: none;
}

/* Gentle colour fade without moving the cards. */
.epic-fans-timeline__event-card,
.epic-fans-timeline__supplementary-card {
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        outline-color 0.4s ease;
}

/* Event cards use their category colour. */
.epic-fans-timeline__event-list
.epic-fans-timeline__event-link:hover
.epic-fans-timeline__event-card {
    border-color: var(--event-accent, #b5121b) !important;

    background-color: color-mix(
        in srgb,
        var(--event-accent, #b5121b) 13%,
        #ffffff
    );
}

/* Quiz and poll cards: no border-induced content movement. */
.epic-fans-timeline__supplementary-card {
    outline: 1px solid transparent;
    outline-offset: -1px;
}

.epic-fans-timeline__supplementary-card:hover {
    outline-color: rgba(181, 18, 27, 0.55);

    background-color: color-mix(
        in srgb,
        #b5121b 7%,
        #ffffff
    );
}

/* Preserve the photograph's existing light sweep. */


/* Timeline photo border hover refinement */
.epic-fans-timeline__event-link .epic-fans-timeline__image-card {
    transition: border-color 0.4s ease;
}

.epic-fans-timeline__event-link:hover .epic-fans-timeline__image-card {
    border-color: #a79a92;
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-timeline__event-card,
    .epic-fans-timeline__supplementary-card,
    .epic-fans-timeline__event-link .epic-fans-timeline__image-card {
        transition: none;
    }
}


/* Timeline hover fade: stable inset overlays */

/*
 * Event card: keep the category background unchanged and fade
 * a category-coloured inset overlay in and out.
 */
.epic-fans-timeline__event-card {
    transition: border-color 0.4s ease !important;
}

.epic-fans-timeline__event-list
.epic-fans-timeline__event-link:hover
.epic-fans-timeline__event-card {
    background-color: transparent;
}

/*
 * Inset shadows behave like a colour overlay without affecting
 * card geometry or conflicting with background gradients.
 */
.epic-fans-timeline__event-card {
    box-shadow: inset 0 0 0 999px
        color-mix(in srgb, var(--event-accent, #b5121b) 0%, transparent)
        !important;
    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease !important;
}

.epic-fans-timeline__event-list
.epic-fans-timeline__event-link:hover
.epic-fans-timeline__event-card {
    box-shadow: inset 0 0 0 999px
        color-mix(in srgb, var(--event-accent, #b5121b) 6%, transparent)
        !important;
}

/*
 * Quiz/poll: colour the actual visible component instead of
 * the supplementary card behind it.
 */
.epic-fans-timeline__supplementary-card
:is(.epic-fans-event-quiz, .epic-fans-event-poll) {
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease;
}

.epic-fans-timeline__supplementary-card:hover
:is(.epic-fans-event-quiz, .epic-fans-event-poll) {
    background-color: color-mix(
        in srgb,
        #b5121b 8%,
        #ffffff
    );
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-timeline__event-card,
    .epic-fans-timeline__supplementary-card
    :is(.epic-fans-event-quiz, .epic-fans-event-poll) {
        transition: none !important;
    }
}


/* Timeline event cards: single smooth colour transition */

/*
 * Use one colour system for both normal and hover states.
 * No inset overlay or competing background shorthand.
 */
.epic-fans-timeline__event-list
.epic-fans-timeline__event-link
.epic-fans-timeline__event-card {
    background: color-mix(
        in srgb,
        var(--event-accent, #b5121b) 7%,
        #ffffff
    ) !important;

    box-shadow: none !important;

    transition:
        background-color 0.4s ease,
        border-color 0.4s ease !important;
}

.epic-fans-timeline__event-list
.epic-fans-timeline__event-link:hover
.epic-fans-timeline__event-card {
    background: color-mix(
        in srgb,
        var(--event-accent, #b5121b) 13%,
        #ffffff
    ) !important;

    box-shadow: none !important;

    border-color: var(--event-accent, #b5121b) !important;
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-timeline__event-list
    .epic-fans-timeline__event-link
    .epic-fans-timeline__event-card {
        transition: none !important;
    }
}


/* Timeline poll options: pointer cursor */
.epic-fans-timeline__supplementary-card
.epic-fans-event-poll__option:not(:disabled) {
    cursor: pointer;
}


/* Timeline mobile stacked photo and engagement cards */
@media (max-width: 800px) {

    /*
     * Desktop photographs fill their grid row.
     * Mobile photographs need their own intrinsic height.
     */
    .epic-fans-timeline__event-list
    > .epic-fans-timeline__event-link:has(.epic-fans-timeline__image-card) {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .epic-fans-timeline__event-link .epic-fans-timeline__image-card {
        height: 100%;
        width: 100%;
    }

    /*
     * Quiz content must participate in normal document flow
     * when cards are vertically stacked.
     */
    .epic-fans-timeline__supplementary-card:has(.epic-fans-event-quiz) {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .epic-fans-timeline__supplementary-card .epic-fans-event-quiz {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    /*
     * Polls already flow normally, so only ensure their
     * outer cards can grow to their full content height.
     */
    .epic-fans-timeline__supplementary-card:has(.epic-fans-event-poll) {
        height: auto;
        min-height: 0;
    }
}


/* Timeline mobile native horizontal touch scrolling */
@media (max-width: 800px) {
    .epic-fans-timeline__dates {
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }
}


/* Timeline compact mobile event cards */
@media (max-width: 800px) {

    .epic-fans-timeline__event-card {
        padding: 16px 17px;
    }

    .epic-fans-timeline__event-year {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .epic-fans-timeline__event-title {
        font-size: 17px !important;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .epic-fans-timeline__event-excerpt {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 8px;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    .epic-fans-timeline__event-category {
        margin-top: 0;
        font-size: 11px;
    }

    .epic-fans-timeline__event-list {
        gap: 12px;
    }
}

/* Shared property-specific footer artwork */
.epic-fans-footer-artwork {
    width: 100%;
    margin-top: 36px;
    text-align: center;
}

.epic-fans-footer-artwork img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    opacity: 0.55;
}

/* Shared birthday celebration for event drawers */
.epic-fans-event-drawer__panel > .epic-fans-celebration {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    display: grid;
    place-items: center;
}

.epic-fans-event-drawer__panel > .epic-fans-celebration.is-playing {
    visibility: visible;
    animation: epic-celebration-appear 1.8s ease both;
}

.epic-fans-celebration__artwork {
    position: relative;
    z-index: 2;
    display: block;
    width: min(78%, 370px);
    max-height: 45%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.12));
    animation: none;
}

.epic-fans-celebration__balloon {
    position: absolute;
    bottom: -100px;
    left: 12%;
    width: 32px;
    height: 43px;
    border-radius: 50% 50% 46% 46%;
    background: #e74865;
    opacity: .9;
    animation: none;
}

.epic-fans-celebration__balloon::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 15px;
    width: 1px;
    height: 44px;
    background: rgba(80,80,80,.45);
}

.epic-fans-celebration__balloon:nth-of-type(2) {
    left: 25%;
    background: #f6b83c;
    animation-delay: .24s;
}
.epic-fans-celebration__balloon:nth-of-type(3) {
    left: 38%;
    background: #50afd2;
    animation-delay: .48s;
}
.epic-fans-celebration__balloon:nth-of-type(4) {
    left: 52%;
    background: #b77cdf;
    animation-delay: .12s;
}
.epic-fans-celebration__balloon:nth-of-type(5) {
    left: 65%;
    background: #59b985;
    animation-delay: .36s;
}
.epic-fans-celebration__balloon:nth-of-type(6) {
    left: 78%;
    background: #ef7950;
    animation-delay: .6s;
}
.epic-fans-celebration__balloon:nth-of-type(7) {
    left: 8%;
    background: #b77cdf;
    animation-delay: .75s;
}
.epic-fans-celebration__balloon:nth-of-type(8) {
    left: 85%;
    background: #50afd2;
    animation-delay: .3s;
}
.epic-fans-celebration__balloon:nth-of-type(9) {
    left: 46%;
    background: #f6b83c;
    animation-delay: .85s;
}

/* Run artwork movement only while celebrating. */
.epic-fans-celebration.is-playing .epic-fans-celebration__artwork {
    animation: epic-birthday-artwork 1.8s ease both;
}

/* Balloons animate only when a birthday celebration starts. */
.epic-fans-celebration--birthday.is-playing
.epic-fans-celebration__balloon {
    animation-name: epic-birthday-balloon;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

@keyframes epic-celebration-appear {
    0% { opacity: 0; }
    12%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes epic-birthday-artwork {
    0% { opacity: 0; transform: scale(.7); }
    18% { opacity: 1; transform: scale(1.05); }
    26%, 75% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(.95); }
}

@keyframes epic-birthday-balloon {
    0% { transform: translateY(0) rotate(-8deg); opacity: 0; }
    15% { opacity: .95; }
    85% { opacity: .9; }
    100% { transform: translateY(-110vh) rotate(12deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-celebration,
    .epic-fans-celebration.is-playing {
        display: none !important;
        animation: none !important;
    }
}

/* Shared birthday celebration on standalone event pages */
.epic-fans-event-detail > .epic-fans-celebration {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.epic-fans-event-detail > .epic-fans-celebration.is-playing {
    visibility: visible;
    animation: epic-celebration-appear 1.8s ease both;
}

/* Shared champions celebration — radial confetti burst */
.epic-fans-celebration__confetti {
    position: absolute;
    z-index: 1;
    top: 48%;
    left: 50%;
    width: 9px;
    height: 19px;
    border-radius: 2px;
    background: #e7b83f;
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.epic-fans-celebration__confetti:nth-of-type(3n) {
    width: 6px;
    height: 30px;
    border-radius: 999px;
    background: #d22b39;
}

.epic-fans-celebration__confetti:nth-of-type(3n + 1) {
    background: #f3d476;
}

.epic-fans-celebration__confetti:nth-of-type(4n) {
    background: #ffffff;
    border: 1px solid #d8b352;
}

.epic-fans-celebration--champions.is-playing
.epic-fans-celebration__confetti {
    animation: epic-champions-burst 1.65s ease-out both;
}

/* Different angles and distances from the trophy */
.epic-fans-celebration__confetti:nth-of-type(1)  { --x: -210px; --y: -230px; --r: 540deg;  animation-delay: .00s; }
.epic-fans-celebration__confetti:nth-of-type(2)  { --x: -110px; --y: -310px; --r: -720deg; animation-delay: .04s; }
.epic-fans-celebration__confetti:nth-of-type(3)  { --x: 20px;   --y: -340px; --r: 600deg;  animation-delay: .08s; }
.epic-fans-celebration__confetti:nth-of-type(4)  { --x: 150px;  --y: -290px; --r: -630deg; animation-delay: .02s; }
.epic-fans-celebration__confetti:nth-of-type(5)  { --x: 250px;  --y: -210px; --r: 760deg;  animation-delay: .10s; }
.epic-fans-celebration__confetti:nth-of-type(6)  { --x: 310px;  --y: -65px;  --r: -580deg; animation-delay: .06s; }
.epic-fans-celebration__confetti:nth-of-type(7)  { --x: 290px;  --y: 110px;  --r: 690deg;  animation-delay: .12s; }
.epic-fans-celebration__confetti:nth-of-type(8)  { --x: 210px;  --y: 260px;  --r: -740deg; animation-delay: .03s; }
.epic-fans-celebration__confetti:nth-of-type(9)  { --x: 70px;   --y: 320px;  --r: 620deg;  animation-delay: .09s; }
.epic-fans-celebration__confetti:nth-of-type(10) { --x: -90px;  --y: 300px;  --r: -660deg; animation-delay: .05s; }
.epic-fans-celebration__confetti:nth-of-type(11) { --x: -230px; --y: 220px;  --r: 770deg;  animation-delay: .11s; }
.epic-fans-celebration__confetti:nth-of-type(12) { --x: -310px; --y: 55px;   --r: -600deg; animation-delay: .01s; }
.epic-fans-celebration__confetti:nth-of-type(13) { --x: -280px; --y: -120px; --r: 680deg;  animation-delay: .07s; }
.epic-fans-celebration__confetti:nth-of-type(14) { --x: -150px; --y: -170px; --r: -560deg; animation-delay: .13s; }
.epic-fans-celebration__confetti:nth-of-type(15) { --x: 105px;  --y: -165px; --r: 720deg;  animation-delay: .14s; }
.epic-fans-celebration__confetti:nth-of-type(16) { --x: 190px;  --y: 70px;   --r: -670deg; animation-delay: .05s; }
.epic-fans-celebration__confetti:nth-of-type(17) { --x: -130px; --y: 150px;  --r: 590deg;  animation-delay: .10s; }
.epic-fans-celebration__confetti:nth-of-type(18) { --x: 45px;   --y: 205px;  --r: -750deg; animation-delay: .02s; }

@keyframes epic-champions-burst {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(.4);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    35% {
        transform:
            translate(
                calc(-50% + var(--x) * .75),
                calc(-50% + var(--y) * .75)
            )
            rotate(calc(var(--r) * .4))
            scale(1.15);
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform:
            translate(
                calc(-50% + var(--x)),
                calc(-50% + var(--y))
            )
            rotate(var(--r))
            scale(.65);
        opacity: 0;
    }
}

/* Shared News page layout — match Profile top spacing */
body:not(.home) .epic-page-layout--news .epic-page-layout__main {
    padding-top: 0;
}

@media (min-width: 961px) {
    body:not(.home) main.site-shell
    .epic-page-layout--news .epic-app-promo-sidebar {
        padding-top: 67px;
        padding-bottom: 0;
        align-self: stretch;
    }

    body:not(.epic-fans-event-route)
    .epic-page-layout--news:not(.epic-page-layout--profile)
    .epic-app-promo-sidebar {
        padding-bottom: 0;
    }
}

/* Shared site-wide News navigation unread badge */
.site-nav .epic-fans-news-navigation-label {
    position: relative;
    display: inline-block;
}

.site-nav .epic-fans-news-navigation-count:not([hidden]) {
    position: absolute;
    top: -9px;
    right: -14px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    background: #287bd6;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    z-index: 2;
}

.site-nav .epic-fans-news-navigation-count[hidden] {
    display: none !important;
}

/* Mobile News navigation badge positioning */
@media (max-width: 800px) {
    .site-nav .epic-fans-news-navigation-count:not([hidden]) {
        top: -3px;
        right: -25px;
    }
}

/* Shared News unread-count badges */
.epic-fans-news__count:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: 22px;
    height: 22px;
    box-sizing: border-box;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 999px;
    background: var(--property-accent, #b5121b);
    color: #fff;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.epic-fans-news__count[hidden] {
    display: none !important;
}

/* Shared News catalogue — Profile navigation styling */
.epic-fans-news__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    margin-bottom: 28px;
}

@media (max-width: 700px) {
    .epic-fans-news__nav {
        gap: 22px;
        overflow-x: auto;
    }
}

.epic-fans-news__items {
    display: grid;
    gap: 22px;
}

.epic-fans-news__item {
    min-width: 0;
    padding: 30px 36px;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(20,24,28,.07);
}

.epic-fans-news__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 20px;
}

.epic-fans-news__type {
    color: var(--property-accent, #b5121b);
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.epic-fans-news__meta time {
    color: #827771;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

body:not(.home) main.site-shell .epic-fans-news__item h2.epic-fans-news__title {
    margin: 14px 0 12px;
    font-family: Geist, Arial, sans-serif;
    font-size: 22px !important;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #514741;
}

.epic-fans-news__summary {
    margin: 0 0 15px;
}

.epic-fans-news__status {
    font-size: 13px;
    font-weight: 700;
    color: #8a7668;
}

.epic-fans-news__footer {
    margin-top: 18px;
}

body:not(.home) main.site-shell .epic-fans-news__footer a.epic-fans-news__source,
body:not(.home) main.site-shell .epic-fans-news__footer span.epic-fans-news__source {
    color: #b5121b !important;
    font-family: Geist, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
}

main a.epic-fans-news__source:hover,
main a.epic-fans-news__source:focus-visible {
    color: var(--property-accent, #b5121b);
    text-decoration: underline;
}

@media (max-width: 700px) {
    .epic-fans-news__nav {
        gap: 22px;
        overflow-x: auto;
    }

    main a.epic-fans-news__tab {
        font-size: 15px;
    }

    .epic-fans-news__item {
        padding: 22px 20px;
    }

    /* Match the homepage timeline's 12px mobile screen-edge margins. */
    .epic-fans-news__items {
        width: calc(100vw - 24px);
        max-width: none;
        margin-left: calc(50% - 50vw + 12px);
    }

    main .epic-fans-news__item h2.epic-fans-news__title {
        font-size: 20px;
        line-height: 1.32;
    }
}

/* Shared News drawer and unread indicators */
.epic-fans-news__item {
    position: relative;
    cursor: pointer;
}

.epic-fans-news__item:focus-visible {
    outline: 3px solid #b5121b;
    outline-offset: 3px;
}

.epic-fans-news__meta {
    padding-right: 18px;
}

.epic-fans-news__unread {
    position: absolute;
    top: 29px;
    right: 17px;
    width: 9px;
    height: 9px;
    border: 1.5px solid #97847c;
    border-radius: 50%;
    background: transparent;
}

.epic-fans-news__item.is-unread .epic-fans-news__unread {
    background: #b5121b;
    border-color: #b5121b;
}

.epic-fans-news-drawer[hidden] {
    display: none !important;
}

.epic-fans-news-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.epic-fans-news-drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, .48);
    cursor: pointer;
}

.epic-fans-news-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(560px, 48vw);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .16);
    overflow: hidden;
    animation: epic-news-drawer-enter .26s ease-out both;
}

@keyframes epic-news-drawer-enter {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Shared News drawer: animated close, matching its opening. */
.epic-fans-news-drawer__backdrop {
    opacity: 1;
    transition: opacity .26s ease;
}

.epic-fans-news-drawer.is-closing
.epic-fans-news-drawer__backdrop {
    opacity: 0;
}

.epic-fans-news-drawer.is-closing
.epic-fans-news-drawer__panel {
    animation: epic-news-drawer-exit .26s ease-in both;
}

@keyframes epic-news-drawer-exit {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-news-drawer__panel,
    .epic-fans-news-drawer.is-closing
    .epic-fans-news-drawer__panel {
        animation: none;
    }

    .epic-fans-news-drawer__backdrop {
        transition: none;
    }
}



.epic-fans-news-drawer__scroll {
    height: 100%;
    overflow-y: auto;
    padding: 74px 44px 12px;
}

.epic-fans-news-drawer__type {
    margin: 0 0 14px;
    color: #b5121b;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 17px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.epic-fans-news-drawer__date {
    display: block;
    margin: 0 0 10px;
    color: #4d7fae;
    font-family: Geist, Arial, sans-serif;
    font-size: 18px;
    line-height: 29px;
    font-weight: 800;
}

body:not(.home) main.site-shell
.epic-fans-news-drawer__title {
    margin: 0 0 18px;
    color: #333;
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-size: 38px !important;
    line-height: 39px;
    font-weight: 400;
    letter-spacing: 0;
}

.epic-fans-news-drawer__body {
    font-size: 17px;
    line-height: 1.75;
    color: #514741;
}

/* Standalone News link inside the News drawer */
.epic-fans-news-drawer__full-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--property-accent, #C51F2D) !important;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-decoration: none !important;
}

.epic-fans-news-drawer__full-link:hover,
.epic-fans-news-drawer__full-link:focus {
    color: var(--property-accent, #C51F2D) !important;
    text-decoration: none !important;
}

.epic-fans-news-drawer__full-link[hidden] {
    display: none !important;
}

.epic-fans-news-drawer__body p {
    margin: 0 0 22px;
}

.epic-fans-news-drawer__footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e4ddd6;
}

body:not(.home) main.site-shell
.epic-fans-news-drawer__source {
    color: #b5121b !important;
    font-weight: 700;
    text-decoration: none;
}

.epic-fans-news-drawer__status {
    font-size: 13px;
    color: #827771;
}

@media (max-width: 700px) {
    .epic-fans-news__unread {
        top: 19px;
        right: 14px;
    }

    .epic-fans-news-drawer__panel {
        width: 100%;
    }

    .epic-fans-news-drawer__scroll {
        padding: 70px 24px calc(58px + env(safe-area-inset-bottom, 0px));
    }

    body:not(.home) main.site-shell
    .epic-fans-news-drawer__title {
        font-size: 29px !important;
        line-height: 30px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-news-drawer__panel {
        animation: none;
    }
}

/* Compact News card headlines on mobile */
@media (max-width: 700px) {
    body:not(.home) main.site-shell
    .epic-fans-news__item h2.epic-fans-news__title {
        font-size: 19px !important;
        line-height: 25px !important;
        font-weight: 700;
        letter-spacing: -0.3px;
    }
}

/* Shared News inline YouTube player */
.epic-fans-news__item--media {
    cursor: default;
}

.epic-fans-news__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 18px 0 20px;
    background: #171717;
    border-radius: 15px;
}

.epic-fans-news__video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #514741;
    cursor: pointer;
    overflow: hidden;
}

.epic-fans-news__video-play img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epic-fans-news__play-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #514741;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .2);
    transition: transform .18s ease;
}

.epic-fans-news__video-play:hover .epic-fans-news__play-icon,
.epic-fans-news__video-play:focus-visible .epic-fans-news__play-icon {
    transform: scale(1.09);
}

.epic-fans-news__video-play:focus-visible {
    outline: 3px solid #b5121b;
    outline-offset: -4px;
}

.epic-fans-news__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .epic-fans-news__video {
        border-radius: 14px;
        margin: 14px 0 18px;
    }

    .epic-fans-news__play-icon {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-fans-news__play-icon {
        transition: none;
    }
}

/* Standalone News article — align sidebar with article card */
@media (min-width: 961px) {
    body:not(.home) main.site-shell
    .epic-page-layout:has(.epic-fans-news-article)
    .epic-app-promo-sidebar {
        padding-top: 199px;
        padding-bottom: 0;
    }
}

/* Shared standalone News article pages */
/* Article context matches the standalone Event page */
.epic-fans-news-article__context {
    padding-top: 58px;
    margin-bottom: 18px;
}

.epic-fans-news-article__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 22px;
    color: #a91b2b;
    font-family: Geist, Arial, sans-serif;
    font-size: 20px;
    line-height: 23px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.epic-fans-news-article__eyebrow svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-news-article__date {
    display: block;
    margin: 0 0 12px;
    color: #252525;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 37px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.epic-fans-news-article__back {
    display: inline-block;
    margin: 0;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.epic-fans-news-article__card {
    padding: 48px;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(20,24,28,.07);
}

body:not(.home) main.site-shell
.epic-fans-news-article__title {
    margin: 0 0 26px;
    color: #333;
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-size: 46px !important;
    line-height: 47px !important;
    font-weight: 400;
    letter-spacing: 0;
}

.epic-fans-news-article__body {
    color: #514741;
    font-size: 17px;
    line-height: 1.75;
}

.epic-fans-news-article__body p {
    margin: 0 0 22px;
}

.epic-fans-news-article__source {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e4ddd6;
}

body:not(.home) main.site-shell
.epic-fans-news-article__source a {
    color: #b5121b !important;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .epic-fans-news-article__context {
        padding-top: 28px;
    }

    .epic-fans-news-article__eyebrow {
        font-size: 14px;
        line-height: 16px;
        font-weight: 800;
        letter-spacing: 0.84px;
    }

    .epic-fans-news-article__date {
        font-size: 22px;
        line-height: 24px;
        font-weight: 700;
        letter-spacing: -0.44px;
    }

    /* Standalone News articles: full-width mobile layout */
    body:not(.home):has(.epic-fans-news-article),
    body:not(.home):has(.epic-fans-news-article) main.site-shell,
    body:not(.home) .epic-page-layout:has(.epic-fans-news-article) {
        background: #fff;
    }

    .epic-fans-news-article__card {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body:not(.home) main.site-shell
    .epic-fans-news-article__title {
        font-size: 29px !important;
        line-height: 30px !important;
        font-weight: 400;
        letter-spacing: 0;
    }
}


/* =========================================================
   Shared football fixtures — Profile-matched content card
   ========================================================= */

.epic-football-fixtures {
    min-width: 0;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(20, 24, 28, 0.07);
}

@media (max-width: 700px) {
    .epic-football-fixtures {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}


/* =========================================================
   Shared football section navigation — matches Profile
   ========================================================= */

.epic-football {
    display: grid;
    gap: 20px;
}

.epic-football__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    overflow-x: visible;
}

.epic-football__tab {
    display: inline-block;
    flex: 0 0 auto;
    padding: 8px 0 6px;
    border-bottom: 3px solid transparent;
    color: #827771;
    font-family: Geist, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}

.epic-football__tab.is-active {
    color: var(--property-accent, #b5121b);
    border-bottom-color: var(--property-accent, #b5121b);
}

.epic-football__tab.is-disabled {
    opacity: 0.65;
    cursor: default;
}

@media (max-width: 700px) {
    .epic-football__nav {
        gap: 22px;
        overflow-x: auto;
    }

    .epic-football__tab {
        font-size: 15px;
    }
}

/* =========================================================
   Shared football fixtures — app-style match cards
   ========================================================= */

.epic-football-fixtures__month {
    margin: 18px 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #e4ddd6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.035em;
    transform: scaleX(0.90);
    transform-origin: left center;
    width: calc(100% / 0.90);
}

.epic-football-fixtures__month:first-child {
    margin-top: 0;
}

.epic-football-fixtures__match {
    position: relative;
    min-width: 0;
    margin: 0 0 6px;
    padding: 9px 50px 9px 16px;
    background: #faf6f5;
    border: 1.5px solid #eadfdb;
    border-radius: 10px;
    box-shadow: none;
}

.epic-football-fixtures__match.is-next {
    border-width: 2.5px;
    border-color: var(--property-accent, #b5121b);
    background: #fff;
}

.epic-football-fixtures__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    margin: 0 0 6px;
}

.epic-football-fixtures__date {
    margin: 0;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    color: #5f4a42;
}

.epic-football-fixtures__competition {
    --competition-bg: #e9d7f3;
    --competition-fg: #5e2b97;
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 6px;
    background: var(--competition-bg);
    color: var(--competition-fg);
    font-family: Geist, Arial, sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1.4;
    white-space: nowrap;
}

.epic-football-fixtures__next-label {
    color: var(--property-accent, #b5121b);
    font-family: Geist, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.epic-football-fixtures__outcome {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: #6d6d6d;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12.4px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
}

.epic-football-fixtures__outcome-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.epic-football-fixtures__outcome-svg text {
    fill: currentColor;
    font-family: Arial, sans-serif;
    font-size: 12.4px;
    font-weight: 900;
    letter-spacing: 0;
    stroke: none;
}

.epic-football-fixtures__outcome--w {
    background: #2e7d32;
    color: #fff;
}

.epic-football-fixtures__outcome--d {
    background: #6d6d6d;
    color: #fff;
}

.epic-football-fixtures__outcome--l {
    background: #c62828;
    color: #fff;
}

.epic-football-fixtures__outcome--scheduled {
    background: #faf6f5;
    color: #5f4a42;
    border: 1px solid rgba(95,74,66,.10);
}

.epic-football-fixtures__line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
    color: #5f4a42;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

.epic-football-fixtures__badge {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.epic-football-fixtures__team-name {
    min-width: 0;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.epic-football-fixtures__team-name.is-primary {
    font-weight: 800;
}

.epic-football-fixtures__score {
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    white-space: nowrap;
    color: #5f4a42;
}

.epic-football-fixtures__kickoff-date,
.epic-football-fixtures__kickoff-time {
    font-weight: 800;
    white-space: nowrap;
}

/* Exact shared Flutter CompetitionUtils colours. */

.epic-football-fixtures__competition--premier-league {
    --competition-bg: #e9d7f3; --competition-fg: #5e2b97;
}
.epic-football-fixtures__competition--efl-championship {
    --competition-bg: #dff2ff; --competition-fg: #0f4c81;
}
.epic-football-fixtures__competition--efl-league-one {
    --competition-bg: #ffe7d6; --competition-fg: #8a3b12;
}
.epic-football-fixtures__competition--efl-league-two {
    --competition-bg: #e6f7e9; --competition-fg: #1f6b4a;
}
.epic-football-fixtures__competition--national-league {
    --competition-bg: #ffe3ec; --competition-fg: #9a1b4e;
}
.epic-football-fixtures__competition--national-league-north {
    --competition-bg: #e7edff; --competition-fg: #2f3f9e;
}
.epic-football-fixtures__competition--national-league-south {
    --competition-bg: #f0f0f0; --competition-fg: #555555;
}
.epic-football-fixtures__competition--fa-cup {
    --competition-bg: #d6e9ff; --competition-fg: #1e5aa8;
}
.epic-football-fixtures__competition--efl-cup,
.epic-football-fixtures__competition--efl-cup-carabao-cup,
.epic-football-fixtures__competition--carabao-cup,
.epic-football-fixtures__competition--league-cup {
    --competition-bg: #ffe2cc; --competition-fg: #8a3b12;
}
.epic-football-fixtures__competition--fa-community-shield {
    --competition-bg: #e5f6ef; --competition-fg: #1f6b4a;
}
.epic-football-fixtures__competition--efl-trophy {
    --competition-bg: #ffe7f1; --competition-fg: #9a1b4e;
}
.epic-football-fixtures__competition--scottish-premiership {
    --competition-bg: #def3ff; --competition-fg: #0b4b6d;
}
.epic-football-fixtures__competition--scottish-championship {
    --competition-bg: #fff1d6; --competition-fg: #7a4a00;
}
.epic-football-fixtures__competition--scottish-league-one {
    --competition-bg: #eae6ff; --competition-fg: #4a2a8a;
}
.epic-football-fixtures__competition--scottish-league-two {
    --competition-bg: #ffe9f3; --competition-fg: #8b1b5a;
}
.epic-football-fixtures__competition--scottish-highland-league {
    --competition-bg: #eaf4e0; --competition-fg: #3e6b1f;
}
.epic-football-fixtures__competition--scottish-lowland-league {
    --competition-bg: #e9f1ff; --competition-fg: #2b4f7a;
}
.epic-football-fixtures__competition--scottish-cup {
    --competition-bg: #ddebff; --competition-fg: #2a4d9b;
}
.epic-football-fixtures__competition--scottish-league-cup {
    --competition-bg: #ffefd9; --competition-fg: #7a3a00;
}
.epic-football-fixtures__competition--scottish-challenge-cup {
    --competition-bg: #e2f6f0; --competition-fg: #0e6157;
}
.epic-football-fixtures__competition--uefa-champions-league {
    --competition-bg: #d6e6ff; --competition-fg: #163a8a;
}
.epic-football-fixtures__competition--uefa-europa-league {
    --competition-bg: #ffe0cf; --competition-fg: #8a3b12;
}
.epic-football-fixtures__competition--uefa-europa-conference-league,
.epic-football-fixtures__competition--uefa-conference-league {
    --competition-bg: #e0f3e6; --competition-fg: #1f6b4a;
}
.epic-football-fixtures__competition--uefa-super-cup {
    --competition-bg: #efe7ff; --competition-fg: #4a2a8a;
}
.epic-football-fixtures__competition--uefa-youth-league {
    --competition-bg: #fff0f7; --competition-fg: #8b1b5a;
}
.epic-football-fixtures__competition--fifa-club-world-cup {
    --competition-bg: #e0f7f4; --competition-fg: #0e6157;
}
.epic-football-fixtures__competition--intercontinental-cup {
    --competition-bg: #f7eedb; --competition-fg: #6d4b12;
}
.epic-football-fixtures__competition--friendlies-clubs,
.epic-football-fixtures__competition--club-friendlies,
.epic-football-fixtures__competition--friendlies {
    --competition-bg: #fff3bf; --competition-fg: #8a6a00;
}

@media (max-width: 700px) {
    .epic-football-fixtures__match {
        padding: 9px 46px 9px 14px;
        margin-bottom: 6px;
    }

    .epic-football-fixtures__top {
        gap: 5px;
        margin-bottom: 6px;
    }

    .epic-football-fixtures__date {
        font-size: 12px;
    }

    .epic-football-fixtures__line {
        gap: 12px;
        font-size: 12px;
    }

    .epic-football-fixtures__badge {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }

    .epic-football-fixtures__score {
        font-size: 13px;
    }

    .epic-football-fixtures__outcome {
        width: 26px;
        height: 26px;
        right: 9px;
        font-size: 11px;
    }

    .epic-football-fixtures__outcome-svg text {
        font-size: 11px;
    }
}

/* =========================================================
   Shared football fixtures — responsive upcoming rows and readability
   ========================================================= */

/* Increase separation between month groups, not individual matches. */
.epic-football-fixtures__month {
    margin-top: 32px;
    margin-bottom: 12px;
}

.epic-football-fixtures__month:first-child {
    margin-top: 0;
}

/* Upcoming fixtures are white; completed fixtures retain their tint. */
.epic-football-fixtures__match:not(.is-finished) {
    background: #fff;
}

/* Make match information easier to read. */
.epic-football-fixtures__line {
    font-size: 16px;
    line-height: 1.4;
}

.epic-football-fixtures__team-name {
    font-size: inherit;
}

.epic-football-fixtures__score {
    font-size: 16px;
}

.epic-football-fixtures__kickoff-time {
    font-size: 16px;
}

/* Desktop: home team, kickoff, away team. */
.epic-football-fixtures__upcoming-desktop {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    min-width: 0;
}

/* Mobile version is hidden on desktop. */
.epic-football-fixtures__upcoming-mobile {
    display: none;
}

/* Keep the desktop teams and time visually balanced. */
.epic-football-fixtures__upcoming-desktop
.epic-football-fixtures__kickoff-time {
    margin: 0 5px;
}

@media (max-width: 700px) {

    .epic-football-fixtures__month {
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .epic-football-fixtures__line {
        font-size: 14px;
    }

    .epic-football-fixtures__score,
    .epic-football-fixtures__kickoff-time {
        font-size: 14px;
    }

    .epic-football-fixtures__upcoming-desktop {
        display: none;
    }

    .epic-football-fixtures__upcoming-mobile {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px;
        min-width: 0;
    }
}

/* =========================================================
   Shared football fixtures — desktop sidebar alignment
   ========================================================= */

@media (min-width: 961px) {

    body:not(.home) main.site-shell
    .epic-page-layout:has(.epic-football-fixtures)
    > .epic-app-promo-sidebar {
        padding-top: 207px;
        padding-bottom: 0;
        align-self: stretch;
    }

}

/* =========================================================
   Shared football fixtures — card hover refinement
   ========================================================= */

.epic-football-fixtures__match {
    transition:
        background-color 150ms ease,
        border-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {

    .epic-football-fixtures__match:hover {
        background-color: #fbe9e9;
        border-color: #cbb8b0;
    }

    .epic-football-fixtures__match.is-next:hover {
        background-color: #fbe9e9;
        border-color: var(--property-accent, #b5121b);
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-fixtures__match {
        transition: none;
    }
}

/* =========================================================
   Shared condensed Georgia typography
   ========================================================= */

:root {
    --epic-condensed-serif-scale: 0.90;
}

.epic-type-condensed-serif {
    font-family: Georgia, "Times New Roman", serif;
    transform: scaleX(var(--epic-condensed-serif-scale));
    transform-origin: left center;
}

/* Shared condensed Georgia — dates and drawer titles */
.event-history-context__date,
.epic-fans-news-article__date,
.epic-fans-rankings__drawer-title {
    transform: scaleX(var(--epic-condensed-serif-scale));
    transform-origin: left center;
}

/* Shared football competition filter — presentation */

.epic-football__toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.epic-football__toolbar .epic-football__nav {
    flex: 1 1 auto;
    min-width: 0;
}

.epic-football__filter {
    flex: 0 0 auto;
    min-width: 0;
}

.epic-football__filter-label {
    display: none;
}

.epic-football__competition-select {
    display: block;
    min-width: 170px;
    max-width: 100%;
    padding: 9px 42px 9px 12px;
    border: 1px solid #dcd2cc;
    border-radius: 9px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23252525' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    color: #252525;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    cursor: pointer;
}

.epic-football__competition-select:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: 3px;
}

.epic-football-fixtures__filter-empty {
    margin: 20px 0;
    color: #746a65;
    font-family: Geist, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .epic-football__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .epic-football__toolbar .epic-football__nav {
        flex: 0 0 auto;
        width: 100%;
        overflow-x: auto;
    }

    .epic-football__filter {
        align-self: flex-end;
    }
}

@media (max-width: 700px) {
    .epic-football__toolbar {
        gap: 12px;
    }

    .epic-football__filter {
        align-self: stretch;
    }

    .epic-football__competition-select {
        width: 100%;
        min-width: 0;
        font-size: 14px;
    }
}

/* Shared football fixtures — badge-to-name spacing */

/* Keep badges 4px from names while retaining wider score spacing. */
.epic-football-fixtures__line
.epic-football-fixtures__badge + .epic-football-fixtures__team-name {
    margin-left: -12px;
}

.epic-football-fixtures__upcoming-desktop
.epic-football-fixtures__badge + .epic-football-fixtures__team-name {
    margin-left: -14px;
}

@media (max-width: 700px) {
    .epic-football-fixtures__line
    .epic-football-fixtures__badge + .epic-football-fixtures__team-name {
        margin-left: -8px;
    }

    .epic-football-fixtures__upcoming-mobile
    .epic-football-fixtures__badge + .epic-football-fixtures__team-name {
        margin-left: -3px;
    }
}

/* =========================================================
   Shared football navigation — sticky toolbar
   ========================================================= */

/*
 * Keep football navigation below the existing sticky site header.
 * This is shared across all football properties.
 */

.epic-football__toolbar {
    position: sticky;
    top: 82px;
    z-index: 1000;
    padding: 12px 0;
    background: #f7f4ee;
    border-bottom: 0;
    box-shadow: 0 0 0 100vmax #f7f4ee;
    clip-path: inset(0 -100vmax -12px);
    filter: drop-shadow(0 4px 5px rgba(20, 24, 28, 0.06));
}

/* Account for the WordPress admin bar on desktop. */
body.admin-bar .epic-football__toolbar {
    top: 114px;
}

@media (max-width: 800px) {
    .epic-football__toolbar {
        top: 76px;
        padding: 10px 0;
    }
}

@media (min-width: 601px) and (max-width: 782px) {
    body.admin-bar .epic-football__toolbar {
        top: 122px;
    }
}

@media (max-width: 600px) {
    body.admin-bar .epic-football__toolbar {
        top: 76px;
    }
}

/* Match the white background used by fan-property pages on mobile. */
@media (max-width: 700px) {
    body:not(.home):has(.site-brand__name--property)
    .epic-football__toolbar {
        background: #fff;
        box-shadow: 0 0 0 100vmax #fff;
        clip-path: inset(0 -100vmax 0);
        filter: none;
    }
}

/* =========================================================
   Shared football pages — heading to navigation spacing
   ========================================================= */

/* Align football navigation more closely with Profile and News. */
body:not(.home) .epic-page-layout__main > h1:has(+ .epic-football),
body:not(.home) .epic-page-layout__main > h1:has(+ p > .epic-football) {
    margin-bottom: 16px;
}


/* Shared football All Fixtures — compact match layout */

/* Restore the original tab appearance when using real buttons. */
.epic-football__nav button.epic-football__tab {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 8px 0 6px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #827771;
    font-family: Geist, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.epic-football__nav button.epic-football__tab.is-active {
    color: var(--property-accent, #b5121b);
    border-bottom-color: var(--property-accent, #b5121b);
}

.epic-football__nav button.epic-football__tab:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: 3px;
}

/* All Fixtures content uses the same white card surface. */
.epic-football__all-view {
    min-width: 0;
    padding: 34px 40px;
    border: 1px solid #e4ddd6;
    border-radius: 17px;
    background: #fff;
}

.epic-football__all-view[hidden] {
    display: none !important;
}

.epic-football-all-fixtures {
    min-width: 0;
    font-family: Geist, Arial, sans-serif;
    color: #5f4a42;
}

.epic-football-all-fixtures__month-group {
    margin-bottom: 30px;
}

.epic-football-all-fixtures__month {
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4ddd6;
    color: #171e25;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.epic-football-all-fixtures__day-group {
    margin-bottom: 20px;
}

.epic-football-all-fixtures__group-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.epic-football-all-fixtures__date {
    font-size: 13px;
    font-weight: 800;
    color: #827771;
}

.epic-football-all-fixtures__match {
    position: relative;
    min-width: 0;
    margin-bottom: 6px;
    padding: 12px 46px 12px 14px;
    border: 1px solid #e9e2df;
    border-radius: 12px;
    background: #faf6f5;
}

.epic-football-all-fixtures__match:not(.is-finished) {
    background: #fff;
}

.epic-football-all-fixtures__match.is-primary {
    background: #fff0f1;
    border-color: #e9a4aa;
}

.epic-football-all-fixtures__match.is-postponed {
    background: #f0eeed;
}

.epic-football-all-fixtures__teams {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    font-size: 15px;
    line-height: 1.4;
}

.epic-football-all-fixtures__team {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.epic-football-all-fixtures__team img {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.epic-football-all-fixtures__team.is-primary {
    font-weight: 800;
}

.epic-football-all-fixtures__middle {
    flex: 0 0 auto;
    font-weight: 800;
    white-space: nowrap;
}

.epic-football-all-fixtures__outcome {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    background: #6d6d6d;
    color: #fff;
}

.epic-football-all-fixtures__outcome.epic-football-fixtures__outcome--w {
    background: #2e7d32;
}

.epic-football-all-fixtures__outcome.epic-football-fixtures__outcome--d {
    background: #6d6d6d;
}

.epic-football-all-fixtures__outcome.epic-football-fixtures__outcome--l {
    background: #c62828;
}

.epic-football-all-fixtures__month-group[hidden],
.epic-football-all-fixtures__day-group[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .epic-football__nav button.epic-football__tab {
        font-size: 15px;
    }

    .epic-football__all-view {
        padding: 22px 15px;
        border-radius: 12px;
    }

    .epic-football-all-fixtures__month {
        font-size: 25px;
    }

    .epic-football-all-fixtures__teams {
        gap: 5px;
        font-size: 13px;
    }

    .epic-football-all-fixtures__team {
        gap: 4px;
    }

    .epic-football-all-fixtures__team img {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .epic-football-all-fixtures__match {
        padding: 10px 36px 10px 10px;
    }

    .epic-football-all-fixtures__outcome {
        right: 7px;
        width: 25px;
        height: 25px;
    }
}


/* Shared All Fixtures month-loading controls */

.epic-football-all-fixtures__load {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 18px 0 24px;
    padding: 10px 20px;
    border: 1.5px solid #7c6258;
    border-radius: 999px;
    background: transparent;
    color: #69534a;
    font-family: Geist, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease,
                border-color .15s ease;
}

.epic-football-all-fixtures__load:hover {
    background: #faf2f0;
    border-color: var(--property-accent, #b5121b);
}

.epic-football-all-fixtures__load:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: 3px;
}

.epic-football-all-fixtures__load[hidden] {
    display: none !important;
}

.epic-football-all-fixtures__empty {
    padding: 24px 0;
    text-align: center;
    font-family: Geist, Arial, sans-serif;
    color: #827771;
}

.epic-football-all-fixtures__empty[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .epic-football-all-fixtures__load {
        min-height: 46px;
        margin: 16px 0 22px;
        font-size: 14px;
    }
}


/* Shared All Fixtures month reveal animation */

/* Proper chevrons, centred alongside the label. */
.epic-football-all-fixtures__load {
    gap: 13px;
}

.epic-football-all-fixtures__load::before {
    content: "";
    display: block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    box-sizing: border-box;
}

.epic-football-all-fixtures__load.is-earlier::before {
    transform: rotate(225deg) translate(-2px, -2px);
}

.epic-football-all-fixtures__load.is-later::before {
    transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes epic-all-fixtures-month-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.epic-football-all-fixtures__month-group.is-revealing {
    animation: epic-all-fixtures-month-reveal .5s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-all-fixtures__month-group.is-revealing {
        animation: none;
    }
}


/* Shared All Fixtures — next matchday highlight */

/*
 * Highlight the first upcoming matchday as a single section.
 * Uses property-neutral styling and the existing accent colour.
 */
.epic-football-all-fixtures__day-group.is-next-matchday {
    margin: 22px -40px 26px;
    padding: 18px 40px 20px;
    background: #f0eae8;
    border-top: 1px solid #a99992;
    border-bottom: 1px solid #a99992;
}

.epic-football-all-fixtures__day-group.is-next-matchday
.epic-football-all-fixtures__group-heading {
    margin-bottom: 14px;
}

.epic-football-all-fixtures__next-label {
    margin-left: 4px;
    color: var(--property-accent, #b5121b);
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: .015em;
}

.epic-football-all-fixtures__day-group.is-next-matchday
.epic-football-all-fixtures__match:not(.is-primary) {
    background: #fff;
    border-color: #fff;
}

.epic-football-all-fixtures__day-group.is-next-matchday
.epic-football-all-fixtures__match.is-primary {
    background: #fff0f1;
    border-color: #e9a4aa;
}

@media (max-width: 700px) {
    .epic-football-all-fixtures__day-group.is-next-matchday {
        margin-left: -15px;
        margin-right: -15px;
        padding: 16px 15px 18px;
    }

    .epic-football-all-fixtures__next-label {
        font-size: 11px;
    }
}


/* Shared All Fixtures — score and kickoff spacing */

/* Keep badge-to-name spacing unchanged. */
.epic-football-all-fixtures__middle {
    margin-left: 9px;
    margin-right: 9px;
}

@media (max-width: 700px) {
    .epic-football-all-fixtures__middle {
        margin-left: 7px;
        margin-right: 7px;
    }
}


/* Shared All Fixtures — matching card hover effect */

.epic-football-all-fixtures__match {
    transition:
        background-color 150ms ease,
        border-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .epic-football-all-fixtures__match:hover {
        background-color: #fbe9e9;
        border-color: #cbb8b0;
    }

    /* Preserve the primary team's red border on hover. */
    .epic-football-all-fixtures__match.is-primary:hover {
        background-color: #fbe9e9;
        border-color: var(--property-accent, #b5121b);
    }

    /* Override the white cards inside the NEXT FIXTURES section. */
    .epic-football-all-fixtures__day-group.is-next-matchday
    .epic-football-all-fixtures__match:hover {
        background-color: #fbe9e9;
        border-color: #cbb8b0;
    }

    .epic-football-all-fixtures__day-group.is-next-matchday
    .epic-football-all-fixtures__match.is-primary:hover {
        border-color: var(--property-accent, #b5121b);
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-all-fixtures__match {
        transition: none;
    }
}


/* Shared club fixtures — upcoming time-first layout */

/* One layout on desktop and mobile, matching All Fixtures. */
.epic-football-fixtures__upcoming-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 9px;
    row-gap: 5px;
    min-width: 0;
}

.epic-football-fixtures__upcoming-row
.epic-football-fixtures__kickoff-time {
    flex: 0 0 52px;
    width: 52px;
    margin: 0 9px 0 0;
    text-align: left;
}

.epic-football-fixtures__upcoming-team {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.epic-football-fixtures__upcoming-team
.epic-football-fixtures__team-name {
    margin-left: 0;
}

.epic-football-fixtures__versus {
    flex: 0 0 auto;
    font-weight: 400;
    margin-left: 10px;
    margin-right: 10px;
}

@media (max-width: 700px) {
    .epic-football-fixtures__upcoming-row {
        column-gap: 6px;
    }

    .epic-football-fixtures__upcoming-row
    .epic-football-fixtures__kickoff-time {
        flex-basis: 46px;
        width: 46px;
        margin-right: 6px;
    }
}


/* Shared club fixtures — upcoming time-first layout refinements */

.epic-football-fixtures__upcoming-team {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.epic-football-fixtures__upcoming-team .epic-football-fixtures__badge {
    flex: 0 0 auto;
}

.epic-football-fixtures__upcoming-team .epic-football-fixtures__badge + .epic-football-fixtures__team-name {
    margin-left: 0;
}

.epic-football-fixtures__upcoming-row .epic-football-fixtures__kickoff-time {
    font-weight: 400;
}


/* Shared club fixtures — upcoming separator spacing */

.epic-football-fixtures__upcoming-matchup {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.epic-football-fixtures__upcoming-separator {
    display: inline-block;
    margin: 0 4px;
}

@media (max-width: 700px) {
    .epic-football-fixtures__upcoming-matchup {
        gap: 8px;
    }

    .epic-football-fixtures__upcoming-separator {
        margin: 0 3px;
    }
}



/* All Fixtures — actual time-first markup */

/* Scheduled matches: kickoff, home team, v, away team. */
.epic-football-all-fixtures__match.is-upcoming
.epic-football-all-fixtures__teams {
    gap: 7px;
}

.epic-football-all-fixtures__upcoming-time {
    display: inline-block;
    flex: 0 0 52px;
    width: 52px;
    margin-right: 9px;
    font-weight: 400;
    white-space: nowrap;
}

/* Same badge-to-name gap as Forest Fixtures. */
.epic-football-all-fixtures__team {
    gap: 4px;
}

/* Same breathing room around v as Forest Fixtures. */
.epic-football-all-fixtures__versus {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 400;
}

/* Disable the old CSS-generated separator. */
.epic-football-all-fixtures__match.is-upcoming
.epic-football-all-fixtures__team:last-child::before {
    content: none;
}

@media (max-width: 700px) {
    .epic-football-all-fixtures__upcoming-time {
        flex-basis: 46px;
        width: 46px;
        margin-right: 6px;
    }
}


/* =========================================================
   Shared football match details modal — Stage 37K
   Theme-neutral. Desktop modal / mobile bottom sheet.
   ========================================================= */

.epic-football-match-drawer[hidden],
.epic-football-match-drawer [hidden] {
    display: none !important;
}

.epic-football-match-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;

    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.epic-football-match-drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(20, 20, 20, 0.48);
    cursor: default;
}

.epic-football-match-drawer__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    height: min(780px, 88vh);
    max-height: 88vh;
    max-height: 88dvh;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    animation: epic-football-modal-enter 0.25s ease-out both;
}

@keyframes epic-football-modal-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.epic-football-match-drawer__handle {
    display: none;
    flex: 0 0 auto;
    width: 40px;
    height: 5px;
    margin: 12px auto 0;
    border-radius: 99px;
    background: #d6d6d6;
}

.epic-football-match-drawer__close {
    position: absolute;
    top: 15px;
    right: 16px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.epic-football-match-drawer__close span {
    display: grid;
    place-items: center;
    transform: translateY(-1px);
}

.epic-football-match-drawer__close:hover {
    background: #f5f5f5;
}

.epic-football-match-drawer__close:focus-visible,
.epic-football-match-drawer__tabs button:focus-visible {
    outline: 2px solid var(--property-accent, #a72b35);
    outline-offset: 3px;
}

.epic-football-match-drawer__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 55px 34px 34px;
    box-sizing: border-box;
}

.epic-football-match-drawer__competition {
    width: fit-content;
    max-width: calc(100% - 90px);
    margin: 0 auto 24px;
    padding: 7px 13px;
    border-radius: 30px;
    background: #f5eee9;
    color: #4c4140;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.epic-football-match-drawer__competition:empty {
    display: none;
}

.epic-football-match-drawer__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 130px;
    padding: 20px;
    background: #faf8f6;
    border: 1px solid #ebe4dd;
    border-radius: 16px;
    box-sizing: border-box;
}

.epic-football-match-drawer__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 9px;
    text-align: center;
    font-size: 15px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.epic-football-match-drawer__team img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.epic-football-match-drawer__score {
    text-align: center;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.epic-football-match-drawer__tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-top: 22px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e9e4de;
    scrollbar-width: thin;
}

.epic-football-match-drawer__tabs button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #544d49;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.epic-football-match-drawer__tabs button[aria-selected="true"] {
    background: var(--property-accent, #a72b35);
    color: #fff;
}

.epic-football-match-drawer__content {
    padding: 24px 2px 0;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .epic-football-match-drawer {
        align-items: flex-end;
        padding: 0;
    }

    .epic-football-match-drawer__panel {
        width: 100%;
        height: 88vh;
        height: 88dvh;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
    }

    .epic-football-match-drawer__handle {
        display: block;
    }

    .epic-football-match-drawer__close {
        top: 16px;
        right: 15px;
    }

    .epic-football-match-drawer__scroll {
        padding: 55px 18px calc(25px + env(safe-area-inset-bottom, 0px));
    }

    .epic-football-match-drawer__competition {
        margin-bottom: 20px;
    }

    .epic-football-match-drawer__header {
        grid-template-columns: minmax(0, 1fr) minmax(72px, auto) minmax(0, 1fr);
        gap: 8px;
        min-height: 115px;
        padding: 16px 10px;
    }

    .epic-football-match-drawer__team {
        font-size: 13px;
        gap: 7px;
    }

    .epic-football-match-drawer__team img {
        width: 40px;
        height: 40px;
    }

    .epic-football-match-drawer__score {
        font-size: 24px;
    }

    .epic-football-match-drawer__tabs {
        margin-top: 18px;
    }

    .epic-football-match-drawer__tabs button {
        font-size: 13px;
        padding: 9px 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-match-drawer__panel {
        animation: none;
    }
}

/* Football match card interaction — Stage 37L */
.epic-football-fixtures__match[data-fixture-id],
.epic-football-all-fixtures__match[data-fixture-id] {
    cursor: pointer;
}

.epic-football-fixtures__match[data-fixture-id]:focus-visible,
.epic-football-all-fixtures__match[data-fixture-id]:focus-visible {
    outline: 2px solid var(--property-accent, #a72b35);
    outline-offset: 3px;
}


/* =========================================================
   Football match drawer — right-side desktop layout — Stage 37M
   Desktop: 600px right drawer
   Mobile: full-width bottom sheet
   ========================================================= */

/* Desktop: align the drawer against the right edge. */
@media (min-width: 701px) {

    .epic-football-match-drawer {
        display: flex;
        align-items: stretch;
        justify-content: flex-end;
        padding: 0;
    }

    .epic-football-match-drawer__panel {
        width: min(600px, 100%);
        height: 100%;
        max-height: none;
        border-radius: 0;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
        animation: epic-football-drawer-enter 0.26s
            cubic-bezier(.22, .8, .3, 1) both;
    }

    .epic-football-match-drawer__scroll {
        padding: 64px 34px 36px;
    }
}

/* Match the slide-in behaviour of existing website drawers. */
@keyframes epic-football-drawer-enter {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Mobile: retain the Flutter-style bottom sheet. */
@media (max-width: 700px) {

    .epic-football-match-drawer {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .epic-football-match-drawer__panel {
        width: 100%;
        height: 88vh;
        height: 88dvh;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
        animation: epic-football-sheet-enter 0.26s
            cubic-bezier(.22, .8, .3, 1) both;
    }
}

@keyframes epic-football-sheet-enter {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-match-drawer__panel {
        animation: none;
    }
}


/* Match drawer — animated closing, matching its opening direction. */
.epic-football-match-drawer__backdrop {
    opacity: 1;
    transition: opacity 0.24s ease;
}

.epic-football-match-drawer.is-closing
.epic-football-match-drawer__backdrop {
    opacity: 0;
}

@media (min-width: 701px) {
    .epic-football-match-drawer.is-closing
    .epic-football-match-drawer__panel {
        animation: epic-football-drawer-exit 0.26s
            cubic-bezier(.22, .8, .3, 1) both;
    }
}

@keyframes epic-football-drawer-exit {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@media (max-width: 700px) {
    .epic-football-match-drawer.is-closing
    .epic-football-match-drawer__panel {
        animation: epic-football-sheet-exit 0.26s
            cubic-bezier(.22, .8, .3, 1) both;
    }
}

@keyframes epic-football-sheet-exit {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-match-drawer.is-closing
    .epic-football-match-drawer__panel {
        animation: none;
    }

    .epic-football-match-drawer__backdrop {
        transition: none;
    }
}

/* Match Overview data and rendering — Stage 37N.4 */

.epic-football-match-overview__section {
    margin: 0 0 28px;
}

.epic-football-match-overview__section h3 {
    margin: 0 0 15px;
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 500;
}

.epic-football-match-overview__events {
    border: 1px solid #ebe4dd;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.epic-football-match-overview__event {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0ece7;
}

.epic-football-match-overview__event:last-child {
    border-bottom: 0;
}

.epic-football-match-overview__minute {
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    color: var(--property-accent, #a72b35);
}

.epic-football-match-overview__event-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.5;
    font-size: 14px;
}

.epic-football-match-overview__team {
    font-size: 12px;
    color: #756d68;
}

.epic-football-match-info {
    border: 1px solid #ebe4dd;
    border-radius: 14px;
    background: #fff;
    padding: 5px 16px;
}

.epic-football-match-info__row {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0ece7;
    font-size: 14px;
    line-height: 1.5;
}

.epic-football-match-info__row:last-child {
    border-bottom: 0;
}

.epic-football-match-info__label {
    color: #756d68;
}

.epic-football-match-info__value {
    color: #252220;
    font-weight: 550;
    overflow-wrap: anywhere;
}

.epic-football-match-overview__notice {
    color: #756d68;
    font-size: 14px;
}

@media (max-width: 700px) {
    .epic-football-match-info__row {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
    }

    .epic-football-match-overview__event {
        padding: 12px;
    }
}

/* Flutter-style football Overview — Stage 37N.5 */

.epic-football-match-overview__event-section {
    margin: 6px 0 18px;
}

.epic-football-match-overview__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 0;
}

.epic-football-match-overview__side {
    min-width: 0;
}

.epic-football-match-overview__side.is-home {
    text-align: right;
}

.epic-football-match-overview__side.is-away {
    text-align: left;
}

.epic-football-match-overview__cell {
    padding: 0;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.32;
}

.epic-football-match-overview__event-head {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.epic-football-match-overview__side.is-home .epic-football-match-overview__event-head {
    justify-content: flex-end;
}

.epic-football-match-overview__side.is-away .epic-football-match-overview__event-head {
    justify-content: flex-start;
}

.epic-football-match-overview__player {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}

.epic-football-match-overview__ball {
    font-size: 14px;
    line-height: 1;
}

.epic-football-match-overview__card {
    flex: 0 0 9px;
    width: 9px;
    height: 13px;
    border-radius: 2px;
    background: #ffbb00;
}

.epic-football-match-overview__card.is-red {
    background: #d92332;
}

.epic-football-match-overview__assist {
    margin-top: 1px;
    font-size: 11px;
    color: #877975;
    overflow-wrap: anywhere;
}

.epic-football-match-overview__side.is-home .epic-football-match-overview__assist {
    text-align: right;
}

.epic-football-match-overview__side.is-away .epic-football-match-overview__assist {
    text-align: left;
}

.epic-football-match-info {
    padding: 9px 15px;
    border: 1px solid #ebe1e0;
    border-radius: 15px;
    background: #fbf7f7;
}

.epic-football-match-info__row {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    font-size: 14px;
}

.epic-football-match-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--property-accent, #c51f2d);
}

.epic-football-match-info__value {
    font-size: 14px;
    font-weight: 600;
    color: #554a46;
}

@media (max-width: 700px) {
    .epic-football-match-overview__columns {
        gap: 10px;
    }

    .epic-football-match-overview__cell {
        font-size: 11px;
        margin-bottom: 7px;
    }

    .epic-football-match-info__row {
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 10px;
    }

    .epic-football-match-info__value {
        font-size: 13px;
    }
}


/* =========================================================
   Football match drawer compact refinements — Stage 37N.6
   ========================================================= */

/* Use the exact Premier League fixture-card colours. */
.epic-football-match-drawer__competition {
    background: #e9d7f3;
    color: #5e2b97;
}

/* Reduce the match header height and internal spacing. */
.epic-football-match-drawer__header {
    min-height: 105px;
    padding: 13px 16px;
    gap: 12px;
}

.epic-football-match-drawer__team {
    gap: 5px;
    font-size: 14px;
}

.epic-football-match-drawer__team img {
    width: 36px;
    height: 36px;
}

.epic-football-match-drawer__score {
    font-size: 27px;
}

/* Bring the first Overview content closer to the tabs divider. */
.epic-football-match-drawer__content {
    padding-top: 12px;
}

.epic-football-match-overview__event-section {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Compact the match information rows. */
.epic-football-match-info {
    padding-top: 6px;
    padding-bottom: 6px;
}

.epic-football-match-info__row {
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.3;
}

.epic-football-match-info__value {
    line-height: 1.35;
}

/* Mobile-specific refinements. */
@media (max-width: 700px) {
    .epic-football-match-drawer__header {
        min-height: 100px;
        padding: 12px 10px;
        gap: 8px;
    }

    .epic-football-match-drawer__team img {
        width: 34px;
        height: 34px;
    }

    .epic-football-match-drawer__score {
        font-size: 25px;
    }

    .epic-football-match-drawer__content {
        padding-top: 10px;
    }

    .epic-football-match-info__row {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}


/* Football match drawer property slogan — Stage 37O */
.epic-football-match-drawer__slogan {
    margin: 34px 0 18px;
    padding: 0 12px;
    color: var(--property-accent, #c51f2d);
    font-family: Geist, Arial, sans-serif;
    font-size: 20px;
    font-weight: 750;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 700px) {
    .epic-football-match-drawer__slogan {
        margin-top: 28px;
        font-size: 19px;
    }
}


/* Lineups tab — Stage 37P.3 */

.epic-match-lineups__selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
}

.epic-match-lineups__team-button {
    min-width: 0;
    padding: 11px 8px;
    border: 1px solid #e4ddd6;
    border-radius: 10px;
    background: #faf8f6;
    color: #554a46;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.epic-match-lineups__team-button[aria-pressed="true"] {
    color: var(--property-accent, #c51f2d);
    border-color: var(--property-accent, #c51f2d);
    background: #fff;
}

.epic-match-lineups__team-button:focus-visible {
    outline: 2px solid var(--property-accent, #c51f2d);
    outline-offset: 2px;
}

.epic-match-lineups__formation,
.epic-match-lineups__coach {
    margin: 0 0 9px;
    font-size: 14px;
}

.epic-match-lineups__heading {
    margin: 20px 0 9px;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 500;
}

.epic-match-lineups__list {
    border: 1px solid #ebe4dd;
    border-radius: 12px;
    overflow: hidden;
}

.epic-match-lineups__player {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 26px;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid #f0ece7;
    font-size: 13px;
}

.epic-match-lineups__player:last-child {
    border-bottom: 0;
}

.epic-match-lineups__number {
    color: var(--property-accent, #c51f2d);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.epic-match-lineups__player-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.epic-match-lineups__position {
    color: #817974;
    text-align: right;
}

.epic-match-lineups__notice {
    font-size: 14px;
    color: #756d68;
}


/* Formation pitch and substitutions — Stage 37P.4D */

.epic-match-lineups__team-button[aria-pressed="true"] {
    background: var(--lineup-button-fill, #c51f2d);
    color: var(--lineup-button-text, #fff);
    border: 2px solid var(--lineup-button-border, #888);
    border-color: color-mix(
        in srgb,
        var(--lineup-button-border, #888) 55%,
        #666 45%
    );
}

.epic-match-lineups__team-button[aria-pressed="false"] {
    background: #f8f6f4;
    color: #554a46;
    border-color: #e4ddd6;
}

.epic-match-lineups__formation {
    text-align: center;
    font-weight: 700;
    margin: 12px 0;
}

.epic-match-lineups__pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #1f6a43;
}

.epic-match-lineups__pitch-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.epic-match-lineups__pitch-layout {
    position: absolute;
    inset: 8% 4%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.epic-match-lineups__pitch-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.epic-match-lineups__pitch-player {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.epic-match-lineups__shirt-wrap {
    position: relative;
}

.epic-match-lineups__shirt-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--shirt-border, #fff);
    border-radius: 50%;
    background: var(--shirt-fill, #fff);
    color: var(--shirt-number, #222);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}

.epic-match-lineups__pitch-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.epic-match-lineups__change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 750;
}

.epic-match-lineups__change.is-on {
    color: #19814d;
}

.epic-match-lineups__change.is-off {
    color: #c73340;
}

.epic-match-lineups__shirt-wrap > .epic-match-lineups__change {
    position: absolute;
    top: 8px;
    left: calc(100% + 3px);
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 9px;
    z-index: 1;
}

.epic-match-lineups__player {
    grid-template-columns: 35px minmax(0, 1fr) 26px auto;
}

.epic-match-lineups__player .epic-match-lineups__change {
    justify-self: end;
}

.epic-match-lineups__replaced {
    grid-column: 2 / -1;
    color: #817974;
    font-size: 11px;
}

.epic-match-lineups__coach {
    margin: 14px 0 10px;
}

@media (max-width: 700px) {
    .epic-match-lineups__pitch-layout {
        inset: 8% 2%;
    }

    .epic-match-lineups__shirt-number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .epic-match-lineups__pitch-name {
        font-size: 9px;
    }

    .epic-match-lineups__shirt-wrap > .epic-match-lineups__change {
        font-size: 8px;
        padding: 1px 3px;
    }
}


/* Football lineup compact pitch — Stage 37P.4F */

/* Reduce the pitch height by one-third without changing its width. */
.epic-match-lineups__pitch {
    aspect-ratio: 3 / 2;
}

/* Keep players within the shorter pitch. */
.epic-match-lineups__pitch-layout {
    inset: 6% 3%;
}


/* Football lineup centre-circle fix — Stage 37P.4G */
.epic-match-lineups__pitch::before {
    width: 22%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    box-sizing: border-box;
}


/* Half-pitch round centre circle — Stage 37P.4H */

/* 10% taller than the previous 3:2 pitch. */
.epic-match-lineups__pitch {
    aspect-ratio: 15 / 11;
}

/* Draw a geometrically round centre circle. */
.epic-match-lineups__pitch::before {
    content: "";
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 30%;
    aspect-ratio: 1 / 1;
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
}



/* Substitutes app-style rows — Stage 37P.4I */

.epic-match-lineups__subs-list {
    margin: 0;
    padding: 0;
}

.epic-match-lineups__sub-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center;
    min-height: 49px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd6d3;
    font-size: 14px;
    line-height: 1.4;
}

.epic-match-lineups__sub-row:last-child {
    border-bottom: 0;
}

.epic-match-lineups__sub-identity {
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    font-weight: 700;
    color: #938078;
}

.epic-match-lineups__sub-number {
    font-variant-numeric: tabular-nums;
}

.epic-match-lineups__sub-player {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.epic-match-lineups__sub-name {
    color: #625750;
    font-weight: 700;
}

.epic-match-lineups__sub-minute {
    color: #2c9954;
    font-weight: 750;
    white-space: nowrap;
}

.epic-match-lineups__sub-out {
    color: #f04437;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
}

@media (max-width: 450px) {
    .epic-match-lineups__sub-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        column-gap: 6px;
        font-size: 12px;
    }

    .epic-match-lineups__sub-out {
        font-size: 11px;
    }
}


/* Lineups unavailable card — Stage 37P.4J */
.epic-match-lineups__unavailable-card {
    margin: 16px 2px 20px;
    padding: 20px 22px;
    border: 1px solid #eaded9;
    border-radius: 15px;
    background: #faf7f6;
    color: #625c59;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    text-align: center;
}



/* Overview country flags — Stage 37Q.3 */

.epic-football-match-info__flag {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    font-size: 19px;
    line-height: 1;
}

.epic-football-match-info__flag.is-england {
    width: 20px;
    height: 14px;
    flex-basis: 20px;
    background:
        linear-gradient(
            to right,
            transparent 40%,
            #ce1124 40%,
            #ce1124 60%,
            transparent 60%
        ),
        linear-gradient(
            to bottom,
            transparent 37%,
            #ce1124 37%,
            #ce1124 63%,
            transparent 63%
        ),
        #fff;
    border: 1px solid #e4e0dc;
    border-radius: 1px;
}

.epic-football-match-info__flag.is-scotland {
    width: 20px;
    height: 14px;
    flex-basis: 20px;
    background:
        linear-gradient(
            33deg,
            transparent 43%,
            #fff 43%,
            #fff 57%,
            transparent 57%
        ),
        linear-gradient(
            -33deg,
            transparent 43%,
            #fff 43%,
            #fff 57%,
            transparent 57%
        ),
        #0065bd;
    border-radius: 1px;
}


/* Shared football mobile match spacing — Stage 38A.3 */
@media (max-width: 700px) {

    /* All Fixtures: remove extra gaps around scores and times. */
    .epic-football-all-fixtures__teams,
    .epic-football-all-fixtures__match.is-upcoming
    .epic-football-all-fixtures__teams {
        gap: 2px;
    }

    .epic-football-all-fixtures__middle {
        margin-left: 0;
        margin-right: 0;
    }

    .epic-football-all-fixtures__upcoming-time {
        margin-right: 0;
        flex-basis: 40px;
        width: 40px;
    }

    .epic-football-all-fixtures__versus {
        margin-left: 0;
        margin-right: 0;
    }

    /* Forest Fixtures: remove extra spacing around time and v. */
    .epic-football-fixtures__upcoming-row {
        column-gap: 2px;
    }

    .epic-football-fixtures__upcoming-row
    .epic-football-fixtures__kickoff-time {
        flex-basis: 40px;
        width: 40px;
        margin-right: 0;
    }

    .epic-football-fixtures__upcoming-matchup {
        gap: 2px;
    }

    .epic-football-fixtures__upcoming-separator,
    .epic-football-fixtures__versus {
        margin-left: 0;
        margin-right: 0;
    }

    /* Preserve badge-to-name spacing. */
    .epic-football-all-fixtures__team,
    .epic-football-fixtures__upcoming-team {
        gap: 4px;
    }
}


/* Shared football mobile spacing refinement — Stage 38A.4 */
@media (max-width: 700px) {

    /* Completed primary-club fixtures: remove excessive flex gaps. */
    .epic-football-fixtures__match.is-finished
    .epic-football-fixtures__line {
        gap: 4px;
    }

    /* Completed All Fixtures: restore breathing room around scores. */
    .epic-football-all-fixtures__match.is-finished
    .epic-football-all-fixtures__middle {
        margin-left: 4px;
        margin-right: 4px;
    }

    /* Upcoming primary-club fixtures: comfortable spacing around v. */
    .epic-football-fixtures__versus {
        margin-left: 4px;
        margin-right: 4px;
    }

    .epic-football-fixtures__upcoming-separator {
        margin-left: 4px;
        margin-right: 4px;
    }

    /* Upcoming All Fixtures: same spacing around v. */
    .epic-football-all-fixtures__versus {
        margin-left: 4px;
        margin-right: 4px;
    }
}


/* Shared football mobile spacing refinement — Stage 38A.5 */
@media (max-width: 700px) {

    /* Completed primary-club fixtures: restore normal badge-to-name spacing. */
    .epic-football-fixtures__match.is-finished
    .epic-football-fixtures__line
    .epic-football-fixtures__badge + .epic-football-fixtures__team-name {
        margin-left: 0;
    }
}



/* Football mobile short team names — Stage 38B.7 */

@media (max-width: 700px) {

    /* Primary-team completed results. */
    .epic-football-fixtures__match.is-finished
    .epic-football-fixtures__line {
        flex-wrap: nowrap;
    }

    .epic-football-fixtures__match.is-finished
    .epic-football-fixtures__team-name {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .epic-football-fixtures__match.is-finished
    .epic-football-fixtures__score {
        flex: 0 0 auto;
    }

    /* Primary-team upcoming matches. */
    .epic-football-fixtures__upcoming-row {
        flex-wrap: nowrap;
    }

    .epic-football-fixtures__upcoming-team {
        flex: 0 1 auto;
        min-width: 0;
    }

    .epic-football-fixtures__upcoming-team
    .epic-football-fixtures__team-name {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    /* All Fixtures: completed and upcoming. */
    .epic-football-all-fixtures__teams,
    .epic-football-all-fixtures__match.is-upcoming
    .epic-football-all-fixtures__teams {
        flex-wrap: nowrap;
    }

    .epic-football-all-fixtures__team {
        flex: 0 1 auto;
        min-width: 0;
    }

    .epic-football-all-fixtures__team > span {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .epic-football-all-fixtures__middle,
    .epic-football-all-fixtures__upcoming-time,
    .epic-football-all-fixtures__versus {
        flex-shrink: 0;
    }
}


/* Mobile match drawer compact layout — Stage 38C.2 */
@media (max-width: 700px) {

    /* Remove excessive space below the drag handle. */
    .epic-football-match-drawer__scroll {
        padding-top: 22px;
    }

    /* Bring competition closer to the top and reduce its size. */
    .epic-football-match-drawer__competition {
        margin-bottom: 13px;
        padding: 5px 12px;
        font-size: 12px;
        line-height: 1.3;
    }

    /* Smaller match score card, closer to Flutter proportions. */
    .epic-football-match-drawer__header {
        min-height: 88px;
        padding: 10px 8px;
        gap: 7px;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(66px, auto)
            minmax(0, 1fr);
        border-radius: 14px;
    }

    .epic-football-match-drawer__team {
        gap: 4px;
        font-size: 12px;
        line-height: 1.25;
    }

    .epic-football-match-drawer__team img {
        width: 29px;
        height: 29px;
    }

    .epic-football-match-drawer__score {
        font-size: 23px;
        line-height: 1.2;
    }

    /* Shorter tab buttons and reduced spacing above them. */
    .epic-football-match-drawer__tabs {
        margin-top: 12px;
        padding-bottom: 8px;
        gap: 4px;
    }

    .epic-football-match-drawer__tabs button {
        padding: 7px 10px;
        border-radius: 7px;
        font-size: 13px;
        line-height: 1.25;
    }

    /* Bring Overview/Lineups content closer to the tabs. */
    .epic-football-match-drawer__content {
        padding-top: 8px;
    }
}


/* Match drawer FT and spacing — Stage 38C.6 */

/* Stack the final-status label directly beneath the score. */
.epic-football-match-drawer__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.epic-football-match-drawer__score-number {
    display: block;
}

/* Match drawer — secondary date/time for scheduled fixtures. */
.epic-football-match-drawer__scheduled-time {
    display: block;
    color: #6b6660;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.epic-football-match-drawer__final-status {
    display: block;
    color: var(--property-accent, #c51f2d);
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .02em;
}

/* Slightly more separation between home and away match events. */
.epic-football-match-overview__columns {
    gap: 26px;
}

/* Desktop only: move competition and all content below it up 18px. */
@media (min-width: 701px) {
    .epic-football-match-drawer__scroll {
        padding-top: 46px;
    }
}

/* Mobile: retain the approved compact header positioning. */
@media (max-width: 700px) {
    .epic-football-match-overview__columns {
        gap: 18px;
    }

    .epic-football-match-drawer__final-status {
        font-size: 11px;
    }
}

/* Match drawer — flashing live indicator. */
.epic-football-match-drawer__final-status.is-live::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-match-drawer__final-status.is-live::before {
        animation: none;
    }
}

/* Football match drawer FT size tweak — Stage 38C.9 */
.epic-football-match-drawer__final-status {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 700px) {
    .epic-football-match-drawer__final-status {
        font-size: 14px;
    }
}


/* Compact football substitutes — Stage 38C.11 */

/* Desktop and mobile: reduce unnecessary vertical row spacing. */
.epic-match-lineups__sub-row {
    min-height: 38px;
    padding-top: 5px;
    padding-bottom: 5px;
}



/* Lineups mobile pitch and short team label — Stage 38C.12 */
@media (max-width: 700px) {

    /* Lift the goalkeeper row so the name stays inside the pitch. */
    .epic-match-lineups__pitch-layout {
        top: 6%;
        right: 3%;
        bottom: 19%;
        left: 3%;
    }

    /* Keep full button width but reduce its vertical height. */
    .epic-match-lineups__team-button {
        padding: 7px 8px;
        line-height: 1.2;
    }
}


/* Mobile goalkeeper-only positioning — Stage 38C.16 */
@media (max-width: 700px) {

    /* Formation renderer always places the goalkeeper in the final row. */
    .epic-match-lineups__pitch-row:last-child {
        transform: translateY(-16px);
    }
}


/* Mobile lineup pitch height refinement — Stage 38C.19 */
@media (max-width: 700px) {

    /* More vertical room between the formation rows. */
    .epic-match-lineups__pitch {
        aspect-ratio: 1.03;
    }

    .epic-match-lineups__pitch-layout {
        min-height: 0;
    }

    .epic-match-lineups__pitch-row:last-child {
        transform: none;
    }
}


/* Mobile formation row distribution — Stage 38C.20 */
@media (max-width: 700px) {
    .epic-match-lineups__pitch-layout {
        top: 4%;
        right: 3%;
        bottom: 5%;
        left: 3%;
    }
}



/* Match Stats frontend — Stage 38D.6 */

.epic-match-stats {
    width: 100%;
    font-family: Geist, Arial, sans-serif;
}

.epic-match-stats__row {
    padding: 11px 0 10px;
    border-bottom: 1px solid #eee9e6;
}

.epic-match-stats__row:last-child {
    border-bottom: 0;
}

.epic-match-stats__headings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 9px;
}

.epic-match-stats__value {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.epic-match-stats__value.is-home {
    text-align: left;
}

.epic-match-stats__value.is-away {
    text-align: right;
}

.epic-match-stats__label {
    text-align: center;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}

.epic-match-stats__comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.epic-match-stats__track {
    display: flex;
    height: 6px;
    background: #eeeae7;
    border-radius: 99px;
    overflow: hidden;
}

.epic-match-stats__track.is-home {
    justify-content: flex-start;
}

.epic-match-stats__track.is-away {
    justify-content: flex-end;
}

.epic-match-stats__fill {
    display: block;
    height: 100%;
    border-radius: 99px;
}

.epic-match-stats__fill.is-home,
.epic-match-stats__possession-home {
    background: #16a34a;
}

.epic-match-stats__fill.is-away,
.epic-match-stats__possession-away {
    background: #3b82f6;
}

.epic-match-stats__possession {
    display: flex;
    width: 100%;
    height: 16px;
    border-radius: 99px;
    overflow: hidden;
}

.epic-match-stats__possession > span {
    display: block;
    height: 100%;
}

.epic-match-stats__notice {
    margin: 16px 2px 20px;
    padding: 20px 22px;
    border: 1px solid #eaded9;
    border-radius: 15px;
    background: #faf7f6;
    color: #625c59;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .epic-match-stats__row {
        padding: 10px 0;
    }

    .epic-match-stats__headings {
        gap: 6px;
    }

    .epic-match-stats__value {
        font-size: 14px;
    }

    .epic-match-stats__label {
        font-size: 12px;
    }
}


/* Standings short table — Stage 39.9E */

.epic-football__standings-view {
    min-width: 0;
    padding: 28px 32px;
    border: 1px solid #e4ddd6;
    border-radius: 17px;
    background: #fff;
}

.epic-football__standings-view[hidden] {
    display: none !important;
}

.epic-football__filter[hidden] {
    display: none !important;
}

.epic-football-standings {
    width: 100%;
    color: #5f4a42;
    font-family: Geist, Arial, sans-serif;
}

.epic-football-standings__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.epic-football-standings__heading h2 {
    margin: 0;
    color: #171e25;
    font-size: 24px;
    line-height: 1.3;
}

.epic-football-standings__heading > span {
    font-size: 13px;
    color: #827771;
}

.epic-football-standings__table {
    width: 100%;
}

.epic-football-standings__row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 50px 60px 50px;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 5px 10px;
    border-bottom: 1px solid #eeeae6;
    font-size: 14px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.epic-football-standings__row > :nth-child(n+3) {
    text-align: right;
}

/* Standings rows with an available match drawer */
.epic-football-standings__row[data-fixture-id] {
    cursor: pointer;
}

.epic-football-standings__row[data-fixture-id]:hover {
    background: var(--property-accent-soft, #fff1f0);
    border-radius: 8px;
}

.epic-football-standings__row[data-fixture-id]:focus-visible {
    outline: 2px solid var(--property-accent, #cc0000);
    outline-offset: -2px;
    border-radius: 8px;
}

.epic-football-standings__row.is-header {
    min-height: 40px;
    color: #827771;
    font-size: 13px;
    font-weight: 700;
}

.epic-football-standings__row.is-primary {
    background: var(--property-accent-soft, #fff1f0);
    border-radius: 8px;
    font-weight: 700;
}

.epic-football-standings__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.epic-football-standings__rank.is-top,
.epic-football-standings__legend .is-top {
    background: #16a34a;
    color: #fff;
}

.epic-football-standings__rank.is-europa,
.epic-football-standings__legend .is-europa {
    background: #3b82f6;
    color: #fff;
}

.epic-football-standings__rank.is-conference,
.epic-football-standings__legend .is-conference {
    background: #0d989d;
    color: #fff;
}

.epic-football-standings__rank.is-relegation,
.epic-football-standings__legend .is-relegation {
    background: #dc4040;
    color: #fff;
}

.epic-football-standings__team {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    text-align: left;
}

.epic-football-standings__team img {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.epic-football-standings__team > span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.epic-football-standings__row > strong {
    font-weight: 750;
}

.epic-football-standings__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 20px;
    font-size: 12px;
}

.epic-football-standings__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.epic-football-standings__legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

@media (max-width: 700px) {
    .epic-football__standings-view {
        padding: 18px 10px;
        border-radius: 12px;
    }

    .epic-football-standings__row {
        grid-template-columns: 28px minmax(0, 1fr) 25px 35px 30px;
        gap: 5px;
        padding: 5px 3px;
        font-size: 12px;
    }

    .epic-football-standings__team {
        gap: 6px;
    }

    .epic-football-standings__team img {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
    }

    .epic-football-standings__rank {
        width: 24px;
        height: 24px;
    }

    .epic-football-standings__heading h2 {
        font-size: 20px;
    }
}


/* Dedicated standings page card — Stage 39.10G */

/* Apply the card only to the standalone standings shortcode.
   The match drawer and embedded fixtures table remain unchanged. */
.epic-page-layout__main .wp-block-shortcode > .epic-football-standings,
.epic-page-layout__main > .epic-football-standings,
.epic-page-layout__main .wp-block-shortcode .epic-football-standings {
    min-width: 0;
    padding: 34px 40px;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 17px;
}

@media (max-width: 700px) {
    .epic-page-layout__main .wp-block-shortcode > .epic-football-standings,
    .epic-page-layout__main > .epic-football-standings,
    .epic-page-layout__main .wp-block-shortcode .epic-football-standings {
        padding: 22px 15px;
        border-radius: 12px;
    }
}


/* Dedicated standings navigation — Stage 39.10I */
.epic-football-standings__nav {
    margin-bottom: 30px;
}

.epic-football-standings__nav a.epic-football__tab {
    text-decoration: none;
    cursor: pointer;
}

.epic-football-standings__nav a.epic-football__tab:hover {
    color: var(--property-accent, #b5121b);
}

@media (max-width: 700px) {
    .epic-football-standings__nav {
        margin-bottom: 20px;
    }
}


/* Shared football link navigation — Stage 39.11D */

/* Links and buttons use the same visual treatment. */
.epic-football__nav a.epic-football__tab {
    display: inline-block;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 8px 0 6px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #827771;
    font-family: Geist, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.epic-football__nav a.epic-football__tab.is-active,
.epic-football__nav a.epic-football__tab[aria-current="page"] {
    color: var(--property-accent, #b5121b);
    border-bottom-color: var(--property-accent, #b5121b);
}

.epic-football__nav a.epic-football__tab:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: 3px;
}

/* Match the main Fixtures navigation spacing. */
.epic-football-standings__toolbar {
    margin-bottom: 20px;
}

.epic-football-standings__nav {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .epic-football__nav a.epic-football__tab {
        font-size: 15px;
    }
}


/* Football navigation link correction — Stage 39.11E */

/* Override theme link styles for shared football navigation. */
.epic-football__nav a.epic-football__tab,
.epic-football__nav a.epic-football__tab:link,
.epic-football__nav a.epic-football__tab:visited,
.epic-football__nav a.epic-football__tab:hover {
    color: #827771 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: none !important;
    border-bottom: 3px solid transparent;
}

/* Highlight only the active football page. */
.epic-football__nav a.epic-football__tab.is-active,
.epic-football__nav a.epic-football__tab[aria-current="page"],
.epic-football__nav a.epic-football__tab.is-active:hover,
.epic-football__nav a.epic-football__tab[aria-current="page"]:hover {
    color: var(--property-accent, #b5121b) !important;
    border-bottom-color: var(--property-accent, #b5121b);
}


/* Standings navigation vertical alignment — Stage 39.11F */

/* Match the heading-to-navigation spacing used by Fixtures. */
body:not(.home) .epic-page-layout__main > h1:has(
    + .wp-block-shortcode .epic-football-standings__toolbar
) {
    margin-bottom: 16px;
}

/* Avoid additional top spacing on the standalone toolbar. */
.epic-football-standings__toolbar {
    margin-top: 0;
}


/* Standings heading spacing correction — Stage 39.11I */

/* Match the Fixtures heading-to-navigation spacing exactly. */
body:not(.home) .epic-page-layout__main > h1:has(
    ~ .epic-football-standings__toolbar
) {
    margin-bottom: 16px;
}


/* Standings sidebar alignment — Stage 39.12C */

@media (min-width: 961px) {

    /* The standings card begins 232px below the page-grid top. */
    body:not(.home)
    .epic-page-layout:has(.epic-football-standings)
    > .epic-app-promo-sidebar {
        padding-top: 232px;
        padding-bottom: 0;
        align-self: stretch;
    }

    /* Keep the promotion card sticky inside its grid column. */
    body:not(.home)
    .epic-page-layout:has(.epic-football-standings)
    .epic-app-promo-sidebar__inner {
        position: sticky;
        top: 110px;
    }
}


/* Standings rank badge centering — Stage 39.14A */

/* Use a single grid cell rather than font-dependent flex alignment. */
.epic-football-standings__rank {
    display: inline-grid;
    place-items: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 700px) {
    .epic-football-standings__rank {
        width: 27px;
        min-width: 27px;
        height: 27px;
        font-size: 14px;
    }
}


/* Standings rank optical alignment — Stage 39.14C */
.epic-football-standings__rank {
    text-indent: 1px;
}


/* Mobile standings badge sizing and alignment — Stage 39.14F */
@media (max-width: 700px) {
    .epic-football-standings__rank {
        width: 24px;
        min-width: 24px;
        height: 24px;
        font-size: 12px;
        border-radius: 6px;
        transform: none;
        text-indent: 0;
        padding-top: 1px;
        box-sizing: border-box;
    }
}


/* Standings selector and view styling — Stage 39.15G */

.epic-football-standings__selectors {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .85fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 640px;
    margin: 0 0 24px;
    padding: 0;
}

.epic-football-standings__selectors select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 0 10px;
    border: 1px solid #ded8d1;
    border-radius: 8px;
    background-color: #f8f6f3;
    color: #292929;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    box-sizing: border-box;
    cursor: pointer;
}

.epic-football-standings__selectors select:focus-visible {
    outline: 2px solid #d21b13;
    outline-offset: 2px;
}

/* Full table: ten columns, horizontally scrollable when needed. */
.epic-football-standings__table.is-full {
    overflow-x: auto;
    max-width: 100%;
}

.epic-football-standings__table.is-full .epic-football-standings__row {
    grid-template-columns: 38px minmax(160px, 1fr)
        repeat(7, 42px) 52px;
    min-width: 710px;
}

/* Form table: recent match results in the fourth column. */
.epic-football-standings__table.is-form .epic-football-standings__row {
    grid-template-columns: 38px minmax(0, 1fr) 48px 145px 50px;
}

.epic-football-standings__form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.epic-football-standings__form-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 5px;
    background: #969696;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.epic-football-standings__form-result.is-w {
    background: #129857;
}

.epic-football-standings__form-result.is-d {
    background: #929292;
}

.epic-football-standings__form-result.is-l {
    background: #dc4242;
}

.epic-football-standings__empty {
    padding: 12px 0 28px;
    margin: 0;
    color: #68615d;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .epic-football-standings__selectors {
        grid-template-columns: minmax(0, 1.35fr)
            minmax(0, .8fr) minmax(0, 1fr);
        gap: 6px;
        margin-bottom: 20px;
    }

    .epic-football-standings__selectors select {
        height: 38px;
        padding: 0 4px;
        font-size: 12px;
        border-radius: 7px;
    }

    .epic-football-standings__table.is-form .epic-football-standings__row {
        grid-template-columns: 28px minmax(0, 1fr) 27px 97px 30px;
    }

    .epic-football-standings__form {
        gap: 2px;
    }

    .epic-football-standings__form-result {
        width: 17px;
        height: 18px;
        font-size: 10px;
        border-radius: 4px;
    }

    .epic-football-standings__table.is-full .epic-football-standings__row {
        grid-template-columns: 32px minmax(155px, 1fr)
            repeat(7, 42px) 52px;
        min-width: 710px;
    }
}


/* Standings combined table — Stage 39.15H */

/* One selector at each end, no central control. */
.epic-football-standings__selectors {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    gap: 12px;
    margin-bottom: 24px;
}

.epic-football-standings__selectors select {
    flex: 0 1 auto;
    min-width: 0;
    width: 218px;
    max-width: 100%;
    height: 43px;
    padding: 0 34px 0 13px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #f8f6f3;
    background-image:
        linear-gradient(45deg, transparent 50%, #5b5550 50%),
        linear-gradient(135deg, #5b5550 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 51%,
        calc(100% - 12px) 51%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.epic-football-standings__selectors select:last-child {
    width: 150px;
}

/* All statistics and form on a single scrollable table. */
.epic-football-standings__table.is-combined {
    overflow-x: auto;
    max-width: 100%;
}

.epic-football-standings__table.is-combined .epic-football-standings__row {
    grid-template-columns:
        38px minmax(160px, 1fr)
        repeat(7, 42px) 52px 145px;
    min-width: 750px;
}

.epic-football-standings__table.is-combined .epic-football-standings__form {
    width: 100%;
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .epic-football-standings__selectors {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 20px;
    }

    .epic-football-standings__selectors select {
        width: 180px;
        max-width: calc(100% - 118px);
        padding-left: 10px;
        padding-right: 27px;
        font-size: 12px;
        background-position:
            calc(100% - 16px) 51%,
            calc(100% - 11px) 51%;
    }

    .epic-football-standings__selectors select:last-child {
        width: 108px;
        max-width: 108px;
    }

    .epic-football-standings__table.is-combined .epic-football-standings__row {
        grid-template-columns:
            30px minmax(150px, 1fr)
            repeat(7, 38px) 45px 120px;
        min-width: 660px;
    }
}


/* Knockout bracket layout — Stage 39.16E */

.epic-football-bracket {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.epic-football-bracket__scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 16px;
}

.epic-football-bracket__rounds {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: max-content;
    min-width: 100%;
}

.epic-football-bracket__round {
    width: 260px;
    flex: 0 0 260px;
    min-width: 0;
}

.epic-football-bracket__round-title {
    position: sticky;
    top: 0;
    margin: 0 0 18px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #6b5a54;
    white-space: nowrap;
}

.epic-football-bracket__ties {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.epic-football-bracket__tie {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #e9e1dc;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.epic-football-bracket__team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    font-size: 13px;
    color: #61544f;
}

.epic-football-bracket__team img {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.epic-football-bracket__team-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.epic-football-bracket__score {
    flex: 0 0 auto;
    font-weight: 700;
}

.epic-football-bracket__penalty {
    font-size: 10px;
    color: #81736d;
}

.epic-football-bracket__team.is-winner {
    color: #27211e;
    font-weight: 700;
}

.epic-football-bracket__tie:has(.is-winner) {
    border-color: #ded4cf;
}

.epic-football-bracket__scroll:focus-visible {
    outline: 2px solid #cf2019;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .epic-football-bracket__rounds {
        gap: 16px;
    }

    .epic-football-bracket__round {
        width: 250px;
        flex-basis: 250px;
    }

    .epic-football-bracket__tie {
        min-height: 76px;
        border-radius: 12px;
    }
}


/* Knockout bracket drag interaction — Stage 39.16O.3 */
@media (pointer: fine) {
    .epic-football-bracket__scroll {
        cursor: grab;
    }

    .epic-football-bracket__scroll.is-dragging {
        cursor: grabbing;
        user-select: none;
        -webkit-user-select: none;
    }
}

.epic-football-bracket__scroll img {
    -webkit-user-drag: none;
    user-select: none;
}

/* Team Statistics — shared football presentation */
.epic-football-team-stats {
    width: 100%;
    min-width: 0;
}

.epic-football-team-stats .epic-football__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 22px;
    margin: 0 0 24px;
    border-bottom: 1px solid #dedbd5;
}

.epic-football-team-stats .epic-football__tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    color: #555b61;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.epic-football-team-stats .epic-football__tab.is-active {
    color: #b61920;
    border-bottom-color: #b61920;
}

.epic-football-team-stats .epic-football__tab.is-disabled {
    color: #aaa5a0;
    cursor: default;
}

.epic-football-team-stats .epic-football-standings__selectors {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 34px;
}

.epic-football-team-stats .epic-football-standings__selectors select {
    min-width: 190px;
    max-width: 100%;
    padding: 11px 38px 11px 14px;
    border: 1px solid #e0dbd4;
    border-radius: 9px;
    background-color: #fff;
    color: #252525;
    font-size: 14px;
    font-weight: 600;
}

.epic-football-team-stats__section {
    margin: 0 0 38px;
}

.epic-football-team-stats__heading {
    margin: 0 0 18px;
    color: #222;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.2;
}

.epic-football-team-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.epic-football-team-stats__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 118px;
    padding: 20px 14px;
    border: 1px solid #e8e1d9;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.epic-football-team-stats__value {
    margin-bottom: 8px;
    color: #21252a;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.epic-football-team-stats__label {
    color: #687078;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.epic-football-team-stats__empty {
    padding: 28px;
    border: 1px solid #e8e1d9;
    border-radius: 12px;
    background: #fff;
    color: #687078;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .epic-football-team-stats__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .epic-football-team-stats .epic-football__tabs {
        gap: 0 15px;
    }

    .epic-football-team-stats .epic-football__tab {
        font-size: 12px;
    }

    .epic-football-team-stats .epic-football-standings__selectors {
        gap: 10px;
        margin-bottom: 28px;
    }

    .epic-football-team-stats .epic-football-standings__selectors select {
        flex: 1 1 140px;
        min-width: 0;
    }

    .epic-football-team-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .epic-football-team-stats__card {
        min-height: 105px;
        padding: 17px 10px;
    }

    .epic-football-team-stats__value {
        font-size: 27px;
    }

    .epic-football-team-stats__heading {
        font-size: 25px;
    }
}


/* Team Statistics sidebar alignment — Stage 40.35 */
@media (min-width: 961px) {

    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats) {
        align-items: stretch;
    }

    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    > .epic-app-promo-sidebar {
        padding-top: 232px;
        padding-bottom: 0;
        align-self: stretch;
        box-sizing: border-box;
    }

    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    .epic-app-promo-sidebar__inner {
        position: sticky;
        top: 110px;
        min-height: 100%;
        box-sizing: border-box;
    }
}


/* Team Statistics final layout adjustments — Stage 40.36 */

/* Match the spacing below the football navigation. */
.epic-football-team-stats .epic-football-standings__nav {
    margin-bottom: 24px;
}

/* Let the promotion card use its natural content height. */
@media (min-width: 961px) {
    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    > .epic-app-promo-sidebar {
        padding-top: 228px;
    }

    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    .epic-app-promo-sidebar__inner {
        min-height: 0;
        height: auto;
    }
}


/* Team Statistics sidebar alignment — Stage 40.37 */
@media (min-width: 961px) {

    /* Raise sidebar to match selector top. */
    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    > .epic-app-promo-sidebar {
        padding-top: 228px;
        padding-bottom: 0;
    }

    /* Use remaining column height, ending with the statistics. */
    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    .epic-app-promo-sidebar__inner {
        height: calc(100% - 40px);
        min-height: 0;
        box-sizing: border-box;
    }
}


/* Team Statistics: natural-height sidebar — Stage 40.38 */
@media (min-width: 961px) {
    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    .epic-app-promo-sidebar__inner {
        height: auto;
        min-height: 0;
        max-height: none;
        align-self: start;
    }
}





/* Team Statistics — extend sidebar bottom only */
@media (min-width: 961px) {
    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    .epic-app-promo-sidebar__inner {
        padding-bottom: 0;
        height: auto;
        min-height: 0;
        transform: none;
    }
}


/* Team Statistics card hover — Stage 40.43 */
@media (hover: hover) {
    .epic-football-team-stats__card {
        transition: background-color 180ms ease,
                    border-color 180ms ease;
    }

    .epic-football-team-stats__card:hover {
        background-color: #fae8e8;
        border-color: #d9b4b4;
    }
}


/* Player Statistics — shared football styling */

.epic-football-player-stats {
    width: 100%;
    min-width: 0;
}

.epic-football-player-stats .epic-football-standings__nav {
    margin-bottom: 24px;
}

.epic-football-player-stats .epic-football-standings__selectors {
    margin-bottom: 32px;
}

.epic-football-player-stats__section {
    margin-bottom: 32px;
}

.epic-football-player-stats__heading {
    margin: 0 0 16px;
    color: #20252a;
    font-family: Georgia, serif;
    font-size: 27px;
    line-height: 1.25;
}

.epic-football-player-stats__list {
    overflow: hidden;
    border: 1px solid #e8e1d9;
    border-radius: 13px;
    background: #fff;
}

.epic-football-player-stats__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 59px;
    padding: 14px 18px;
    border-bottom: 1px solid #eee9e4;
    background: #fff;
    transition: background-color 180ms ease;
}

.epic-football-player-stats__row:last-child {
    border-bottom: 0;
}

.epic-football-player-stats__name {
    min-width: 0;
    color: #71645f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.epic-football-player-stats__rank {
    color: #948781;
}

.epic-football-player-stats__value {
    flex: 0 0 auto;
    color: #24272b;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
    .epic-football-player-stats__row:hover {
        background-color: #fae8e8;
    }
}

.epic-football-player-stats__more {
    border-top: 1px solid #eee9e4;
}

.epic-football-player-stats__more summary {
    padding: 13px 18px;
    color: var(--property-accent, #b5121b);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.epic-football-player-stats__more summary:hover {
    background: #fae8e8;
}

.epic-football-player-stats__more .epic-football-player-stats__row {
    background: #fff;
}

.epic-football-player-stats__more .epic-football-player-stats__row:hover {
    background: #fae8e8;
}

.epic-football-player-stats__empty {
    padding: 24px;
    border: 1px solid #e8e1d9;
    border-radius: 12px;
    background: #fff;
    color: #71645f;
}

@media (max-width: 700px) {
    .epic-football-player-stats__heading {
        font-size: 23px;
    }

    .epic-football-player-stats__section {
        margin-bottom: 26px;
    }

    .epic-football-player-stats__row {
        min-height: 54px;
        padding: 12px 14px;
    }

    .epic-football-player-stats__name {
        font-size: 14px;
    }
}


/* Player Statistics layout — Stage 41.10 */

/* Match the white selectors on Team Statistics. */
.epic-football-player-stats
.epic-football-standings__selectors select {
    background-color: #fff;
}

/* Display ranking categories in two columns on desktop. */
@media (min-width: 961px) {
    .epic-football-player-stats__sections {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        align-items: start;
    }

    .epic-football-player-stats__section {
        min-width: 0;
        margin-bottom: 0;
    }
}


/* Player Statistics layout alignment — Stage 41.12 */

/* Match navigation spacing on Team Statistics. */
.epic-football-player-stats .epic-football-standings__nav {
    margin-bottom: 30px;
}

/* Align promotion card with the selectors, without stretching it. */
@media (min-width: 961px) {
    body:not(.home)
    .epic-page-layout:has(.epic-football-player-stats)
    > .epic-app-promo-sidebar {
        padding-top: 228px;
        padding-bottom: 0;
        align-self: stretch;
        box-sizing: border-box;
    }

    body:not(.home)
    .epic-page-layout:has(.epic-football-player-stats)
    .epic-app-promo-sidebar__inner {
        position: sticky;
        top: 110px;
        height: auto;
        min-height: 0;
        max-height: none;
        transform: none;
    }
}


/* Property footer: five columns, responsive navigation */
body.epic-property-site .site-footer__grid {
    grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(0, 1fr));
    column-gap: 32px;
    justify-content: stretch;
}

@media (max-width: 1100px) {
    body.epic-property-site .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.epic-property-site .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    body.epic-property-site .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 36px;
    }

    body.epic-property-site .site-footer__grid > div:nth-child(4) {
        grid-column: auto;
    }
}


/* Separate Contact and Legal menus within the shared footer column */
body.epic-property-site .site-footer__grid > div > .site-footer__menu + .site-footer__menu {
    margin-top: 12px;
}

/* Property navigation: site tools SVG gear */
body.epic-property-site .site-nav__list > .epic-site-tools-menu > a {
    font-size: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    vertical-align: middle;
}

body.epic-property-site .site-nav__list > .epic-site-tools-menu > a::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.14 12.94a7.7 7.7 0 0 0 .05-1.88l2.03-1.58-2-3.46-2.4.96a7.4 7.4 0 0 0-1.63-.94L14.83 3h-4l-.36 3.04c-.59.23-1.14.55-1.63.94l-2.4-.96-2 3.46 2.03 1.58a7.7 7.7 0 0 0 0 1.88l-2.03 1.58 2 3.46 2.4-.96c.49.39 1.04.71 1.63.94L10.83 21h4l.36-3.04c.59-.23 1.14-.55 1.63-.94l2.4.96 2-3.46-2.08-1.58ZM12.83 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.14 12.94a7.7 7.7 0 0 0 .05-1.88l2.03-1.58-2-3.46-2.4.96a7.4 7.4 0 0 0-1.63-.94L14.83 3h-4l-.36 3.04c-.59.23-1.14.55-1.63.94l-2.4-.96-2 3.46 2.03 1.58a7.7 7.7 0 0 0 0 1.88l-2.03 1.58 2 3.46 2.4-.96c.49.39 1.04.71 1.63.94L10.83 21h4l.36-3.04c.59-.23 1.14-.55 1.63-.94l2.4.96 2-3.46-2.08-1.58ZM12.83 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.epic-property-site .site-nav__list > .epic-site-tools-menu > a::after {
    font-size: 12px;
}

/* Property mobile navigation: show More instead of gear */
@media (max-width: 800px) {
    body.epic-property-site
    .site-nav__list > li.epic-site-tools-menu > a {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        min-height: 50px;
        padding: 13px 0;
        font-size: 17px !important;
        line-height: 24px;
        text-align: left;
        color: #5D6871;
    }

    body.epic-property-site
    .site-nav__list > li.epic-site-tools-menu > a::before {
        content: none;
        display: none;
    }
}

/* Match drawer standings — highlight both participating teams. */
.epic-football-match-standings
.epic-football-standings__row.is-match-team:not(.is-primary) {
    background: #f1f2f4;
    border-radius: 8px;
    font-weight: 700;
}


/* Match drawer — fixture-specific knockout bracket path. */
.epic-football-match-bracket {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 20px 18px 22px;
    background: #faf6f5;
    border: 1px solid #eee3e0;
    border-radius: 16px;
    color: #61544f;
}

.epic-football-match-bracket__heading {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    color: #8c7b74;
}

.epic-football-match-bracket__section {
    margin: 0 0 32px;
    padding: 0;
}

.epic-football-match-bracket__section:last-child {
    margin-bottom: 0;
}

.epic-football-match-bracket__section-title {
    margin: 14px 0 10px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    color: #96847d;
}

.epic-football-match-bracket__card {
    min-width: 0;
    box-sizing: border-box;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #eee8e5;
    border-radius: 14px;
}

.epic-football-match-bracket__card + .epic-football-match-bracket__card {
    margin-top: 9px;
}

.epic-football-match-bracket__card.is-current {
    border: 2px solid #9d8981;
    padding: 15px 11px;
}

.epic-football-match-bracket__round {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    color: #8a7972;
}

.epic-football-match-bracket__fixture {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(44px, auto)
        minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.epic-football-match-bracket__team {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    color: #61544f;
}

.epic-football-match-bracket__team.is-home {
    justify-self: end;
    justify-content: flex-start;
    text-align: right;
}

.epic-football-match-bracket__team.is-away {
    justify-self: start;
    justify-content: flex-start;
    flex-direction: row-reverse;
    text-align: left;
}

.epic-football-match-bracket__team img {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.epic-football-match-bracket__team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epic-football-match-bracket__score {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    color: #655650;
}

.epic-football-match-bracket__penalties {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    color: #8b7972;
}

@media (max-width: 700px) {
    .epic-football-match-bracket {
        padding: 18px 12px 20px;
    }

    .epic-football-match-bracket__card {
        padding: 10px 9px;
    }

    .epic-football-match-bracket__card.is-current {
        padding: 9px 8px;
    }

    .epic-football-match-bracket__fixture {
        gap: 14px;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(35px, auto)
            minmax(0, 1fr);
    }

    .epic-football-match-bracket__team {
        gap: 5px;
        font-size: 12px;
    }

    .epic-football-match-bracket__team img {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .epic-football-match-bracket__score {
        font-size: 14px;
    }
}

/* Match Compare — app-style league position card */

.epic-football-compare__section {
    margin: 0 0 24px;
}

.epic-football-compare__title {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #5f514b;
}

.epic-football-compare__section .epic-football-standings__table {
    width: 100%;
    overflow: hidden;
    border: 1px solid #eadfd9;
    border-radius: 14px;
    background: #fff;
}

.epic-football-compare__section .epic-football-standings__row {
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid #efe6e1;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
}

.epic-football-compare__section .epic-football-standings__row:last-child {
    border-bottom: 0;
}

.epic-football-compare__section .epic-football-standings__row.is-header {
    background: #fff;
    color: #897e78;
    font-size: 11px;
    font-weight: 700;
}

.epic-football-compare__section .epic-football-standings__rank {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: #4b8df8;
    color: #fff;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
}

.epic-football-compare__section .epic-football-standings__team {
    min-width: 0;
    font-weight: 700;
}

.epic-football-compare__section .epic-football-standings__team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .epic-football-compare__section .epic-football-standings__row {
        padding: 12px 8px;
        font-size: 12px;
    }

    .epic-football-compare__section .epic-football-standings__rank {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}


/* Match Compare — recent form card */

.epic-football-compare__form-card {
    background: #fff;
    border: 1px solid #eadfd9;
    border-radius: 14px;
    overflow: hidden;
}

.epic-football-compare__form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #efe6e1;
    background: #fff;
}

.epic-football-compare__form-row:last-child {
    border-bottom: 0;
}

.epic-football-compare__form-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
}

.epic-football-compare__form-team img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.epic-football-compare__form-team span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.epic-football-compare__form-results {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.epic-football-compare__form-pill {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: #999;
}

.epic-football-compare__form-pill.is-w {
    background: #2eaa65;
}

.epic-football-compare__form-pill.is-d {
    background: #e5a03b;
}

.epic-football-compare__form-pill.is-l {
    background: #df5757;
}

.epic-football-compare__note {
    margin: 9px 2px 0;
    color: #82766f;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .epic-football-compare__form-row {
        padding: 11px 10px;
        gap: 8px;
    }

    .epic-football-compare__form-team {
        font-size: 12px;
        gap: 6px;
    }

    .epic-football-compare__form-results {
        gap: 3px;
    }

    .epic-football-compare__form-pill {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}


/* Match Compare — shared row backgrounds and form alignment */

/* Match the existing fixture-header background, not team colours. */
.epic-football-compare__section
.epic-football-standings__row:not(.is-header),
.epic-football-compare__form-row {
    background: #faf8f6;
}

/* Keep the League Position column headings white. */
.epic-football-compare__section
.epic-football-standings__row.is-header {
    background: #fff;
}

/* Form ranks share the Flutter-style blue badge. */
.epic-football-compare__form-rank {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background: #4b8df8;
    color: #fff;
    border-radius: 7px;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

/* Keep identity flexible and reserve room for five form results. */
.epic-football-compare__form-team {
    flex: 1 1 auto;
}

/* Consistent square geometry and centred result lettering. */
.epic-football-compare__form-pill {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    line-height: 1;
    text-align: center;
    font-family: Geist, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .epic-football-compare__form-rank {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .epic-football-compare__form-pill {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        font-size: 10px;
    }
}


/* Match Compare — final typography alignment */

/* Match the established Standings team-name typography. */
.epic-football-compare__section
.epic-football-standings__team,
.epic-football-compare__form-team {
    font-size: 14px;
    line-height: 1.3;
}

/* Keep the Form explanation compact, like the Flutter app. */
.epic-football-compare__note {
    margin: 8px 2px 0;
    color: #82766f;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 400;
}

@media (max-width: 700px) {
    .epic-football-compare__section
    .epic-football-standings__team,
    .epic-football-compare__form-team {
        font-size: 12px;
    }
}


/* Match Compare — caption and form-pill typography correction */

/* Override general match-drawer paragraph typography. */
.epic-football-match-drawer
.epic-football-compare__section
.epic-football-compare__note {
    font-size: 11px;
    line-height: 1.45;
    font-weight: 400;
    color: #82766f;
    margin: 8px 2px 0;
}

/* Use fixed square geometry and neutral glyph metrics. */
.epic-football-match-drawer
.epic-football-compare__form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    line-height: 1;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 700px) {
    .epic-football-match-drawer
    .epic-football-compare__form-pill {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        font-size: 10px;
    }
}


/* Match Compare — compact table layout v1 */

/* Compact both comparison tables without changing Standings. */
.epic-football-compare__section
.epic-football-standings__row:not(.is-header) {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

.epic-football-compare__form-row {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Smaller blue position badges in both Compare tables. */
.epic-football-compare__section
.epic-football-standings__rank {
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 1;
    border-radius: 6px;
}

.epic-football-compare__form-rank {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex: 0 0 24px;
    font-size: 12px;
    line-height: 1;
    border-radius: 6px;
}

/* Slightly reduce team typography to suit compact rows. */
.epic-football-compare__section
.epic-football-standings__team,
.epic-football-compare__form-team {
    font-size: 13px;
    line-height: 1.25;
}

/* Form explanation — exactly 12px. */
.epic-football-match-drawer
.epic-football-compare__section
.epic-football-compare__note {
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .epic-football-compare__section
    .epic-football-standings__row:not(.is-header),
    .epic-football-compare__form-row {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .epic-football-compare__section
    .epic-football-standings__team,
    .epic-football-compare__form-team {
        font-size: 12px;
    }
}


/* Match Compare — unified badge geometry */

/* Both position badge types use identical dimensions and typography. */
.epic-football-compare__section .epic-football-standings__rank,
.epic-football-compare__form-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex: 0 0 24px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: #4b8df8;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

/* Use one consistent geometry for W/D/L letters. */
.epic-football-match-drawer .epic-football-compare__form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    padding: 0;
    margin: 0;
    border: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 700px) {
    .epic-football-match-drawer .epic-football-compare__form-pill {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        flex-basis: 18px;
        font-size: 10px;
        line-height: 18px;
    }
}


/* Match Compare — unified rank column alignment */

/* Both tables start their rank badges at the same position. */
.epic-football-compare__section
.epic-football-standings__row {
    grid-template-columns:
        24px minmax(0, 1fr) 35px 45px 35px;
    column-gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
}

/* Form uses the same left inset and rank-column width. */
.epic-football-compare__form-row {
    padding-left: 12px;
    padding-right: 12px;
    column-gap: 12px;
}

/* Prevent the League Position badge cell adding extra offset. */
.epic-football-compare__section
.epic-football-standings__row > :first-child {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 700px) {
    .epic-football-compare__section
    .epic-football-standings__row {
        grid-template-columns:
            24px minmax(0, 1fr) 25px 35px 30px;
        column-gap: 5px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .epic-football-compare__form-row {
        padding-left: 10px;
        padding-right: 10px;
        column-gap: 8px;
    }
}


/* Match Compare — Last Match card */

.epic-football-compare__last-card {
    background: #faf8f6;
    border: 1px solid #ebe4dd;
    border-radius: 14px;
    padding: 14px 16px 13px;
    text-align: center;
}

.epic-football-compare__last-date {
    color: #978680;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 12px;
}

.epic-football-compare__last-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
}

.epic-football-compare__last-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    color: #65534e;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.epic-football-compare__last-team img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.epic-football-compare__last-team span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.epic-football-compare__last-score {
    color: #65534e;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.epic-football-compare__last-competition {
    margin-top: 16px;
    color: #978680;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

@media (max-width: 700px) {
    .epic-football-compare__last-card {
        padding: 13px 12px 12px;
    }

    .epic-football-compare__last-date {
        margin-bottom: 10px;
    }

    .epic-football-compare__last-matchup {
        column-gap: 8px;
    }

    .epic-football-compare__last-team {
        font-size: 13px;
    }

    .epic-football-compare__last-team img {
        width: 34px;
        height: 34px;
    }

    .epic-football-compare__last-score {
        font-size: 24px;
    }

    .epic-football-compare__last-competition {
        margin-top: 13px;
    }
}


/* Match Compare — recent average stats card */

.epic-football-compare__stats-card {
    overflow: hidden;
    background: #faf8f6;
    border: 1px solid #ebe4dd;
    border-radius: 14px;
}

.epic-football-compare__stats-row {
    display: grid;
    grid-template-columns: minmax(65px, 1fr) minmax(120px, 1.5fr) minmax(65px, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 47px;
    padding: 9px 14px;
    border-bottom: 1px solid #eee7e2;
    box-sizing: border-box;
}

.epic-football-compare__stats-row:last-child {
    border-bottom: 0;
}

.epic-football-compare__stats-home,
.epic-football-compare__stats-away {
    color: #65534e;
    font-family: Geist, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.epic-football-compare__stats-home {
    text-align: left;
}

.epic-football-compare__stats-away {
    text-align: right;
}

.epic-football-compare__stats-label {
    color: #95817a;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 700px) {
    .epic-football-compare__stats-row {
        grid-template-columns: minmax(48px, 1fr) minmax(105px, 1.5fr) minmax(48px, 1fr);
        gap: 6px;
        min-height: 43px;
        padding: 9px 12px;
    }

    .epic-football-compare__stats-home,
    .epic-football-compare__stats-away {
        font-size: 14px;
    }

    .epic-football-compare__stats-label {
        font-size: 12px;
    }
}


/* Match Compare — advantage summary card */

.epic-football-compare__advantage-card {
    overflow: hidden;
    background: #faf8f6;
    border: 1px solid #ebe4dd;
    border-radius: 14px;
}

.epic-football-compare__prediction {
    padding: 14px 14px 15px;
    border-bottom: 1px solid #eee7e2;
}

.epic-football-compare__prediction-label {
    color: #95817a;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 9px;
}

.epic-football-compare__prediction-outcome {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.epic-football-compare__prediction-outcome img {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.epic-football-compare__prediction-outcome strong {
    color: #65534e;
    font-family: Geist, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.epic-football-compare__advantage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 41px;
    padding: 9px 14px;
    border-bottom: 1px solid #eee7e2;
    box-sizing: border-box;
}

.epic-football-compare__advantage-row:last-child {
    border-bottom: 0;
}

.epic-football-compare__advantage-row span {
    min-width: 0;
    color: #65534e;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
}

.epic-football-compare__advantage-row strong {
    color: #65534e;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .epic-football-compare__prediction {
        padding: 12px;
    }

    .epic-football-compare__prediction-outcome {
        gap: 9px;
    }

    .epic-football-compare__prediction-outcome strong {
        font-size: 17px;
    }

    .epic-football-compare__advantage-row {
        gap: 8px;
        padding: 9px 12px;
    }

    .epic-football-compare__advantage-row span,
    .epic-football-compare__advantage-row strong {
        font-size: 12px;
    }
}


/* Match Overview — league position and prediction */

.epic-football-overview-comparison {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    min-width: 0;
}

.epic-football-overview-comparison
.epic-football-compare__section {
    margin: 0;
    min-width: 0;
}

.epic-football-overview-prediction
.epic-football-compare__prediction {
    border-bottom: 0;
}

.epic-football-overview-prediction__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-top: 1px solid #eee7e2;
    border-radius: 0;
    background: transparent;
    color: #65534e;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.epic-football-overview-prediction__toggle:hover {
    background: #f3eeea;
}

.epic-football-overview-prediction__toggle:focus-visible {
    outline: 2px solid #65534e;
    outline-offset: -3px;
}

.epic-football-overview-prediction__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    font-weight: 400;
}

.epic-football-overview-prediction__details[hidden] {
    display: none !important;
}

.epic-football-overview-prediction__details {
    border-top: 1px solid #eee7e2;
}

.epic-football-overview-prediction__details
.epic-football-compare__advantage-row {
    min-height: 41px;
}

@media (max-width: 700px) {
    .epic-football-overview-comparison {
        gap: 18px;
        margin-top: 18px;
    }

    .epic-football-overview-prediction__toggle {
        min-height: 40px;
        font-size: 12px;
    }
}


/* Match Overview — compact prediction with inline explanation toggle. */
.epic-football-overview-prediction
.epic-football-compare__advantage-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.epic-football-overview-prediction
.epic-football-compare__prediction {
    min-width: 0;
    padding-right: 8px;
}

.epic-football-overview-prediction__toggle {
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    border-top: 0;
    border-radius: 8px;
    white-space: nowrap;
    align-self: center;
}

.epic-football-overview-prediction__details {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .epic-football-overview-prediction__toggle {
        padding: 8px;
        font-size: 12px;
    }

    .epic-football-overview-prediction
    .epic-football-compare__prediction-outcome strong {
        overflow-wrap: anywhere;
    }
}

/* Match Overview — clickable prediction area. */
.epic-football-overview-prediction
.epic-football-compare__advantage-card {
    cursor: pointer;
}

.epic-football-overview-prediction
.epic-football-compare__prediction {
    transition: background-color 160ms ease;
}

.epic-football-overview-prediction
.epic-football-compare__advantage-card:hover
> .epic-football-compare__prediction {
    background-color: #f3eeea;
}

.epic-football-overview-prediction__details,
.epic-football-overview-prediction__details * {
    cursor: auto;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-overview-prediction
    .epic-football-compare__prediction {
        transition: none;
    }
}

/* Match Overview — unified clickable prediction hover. */
.epic-football-overview-prediction
.epic-football-compare__advantage-card {
    transition: background-color 160ms ease;
}

.epic-football-overview-prediction
.epic-football-compare__advantage-card:hover {
    background-color: #f3eeea;
}

.epic-football-overview-prediction
.epic-football-compare__advantage-card:hover
> .epic-football-compare__prediction,
.epic-football-overview-prediction
.epic-football-overview-prediction__toggle:hover {
    background-color: transparent;
}

.epic-football-overview-prediction
.epic-football-compare__advantage-card:has(
    > .epic-football-compare__prediction:hover
)
.epic-football-overview-prediction__toggle,
.epic-football-overview-prediction
.epic-football-overview-prediction__toggle:hover {
    color: var(--property-accent, #c51f2d);
}

.epic-football-overview-prediction
.epic-football-overview-prediction__details {
    background-color: #faf8f6;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-overview-prediction
    .epic-football-compare__advantage-card {
        transition: none;
    }
}

/* Match Overview — SVG prediction chevron */

.epic-football-overview-prediction__toggle {
    gap: 8px;
}

.epic-football-overview-prediction__arrow {
    display: inline-flex;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.epic-football-overview-prediction__arrow svg {
    display: block;
    width: 16px;
    height: 16px;
    transform: rotate(0deg);
    transition: transform 160ms ease;
}

.epic-football-overview-prediction__arrow.is-expanded svg {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-overview-prediction__arrow svg {
        transition: none;
    }
}


/* Main Standings — responsive short team names */

/* Desktop: show full names. */
.epic-football-standings__table.is-combined
.epic-football-standings__name-short {
    display: none;
}

@media (max-width: 700px) {
    /* Mobile: show names from the shared short-name catalogue. */
    .epic-football-standings__table.is-combined
    .epic-football-standings__name-full {
        display: none;
    }

    .epic-football-standings__table.is-combined
    .epic-football-standings__name-short {
        display: inline;
    }
}


/* Standings — short names at all screen widths */

.epic-football-standings__table.is-combined
.epic-football-standings__name-full {
    display: none;
}

.epic-football-standings__table.is-combined
.epic-football-standings__name-short {
    display: inline;
}


/* Main Standings — compact mobile team column */
@media (max-width: 700px) {
    .epic-football-standings__table.is-combined
    .epic-football-standings__row {
        grid-template-columns:
            30px minmax(110px, 110px)
            repeat(7, 38px) 45px 120px;
        min-width: 620px;
    }
}


/* Main Standings — tighter mobile statistics columns */
@media (max-width: 700px) {
    .epic-football-standings__table.is-combined
    .epic-football-standings__row {
        grid-template-columns:
            30px 110px
            repeat(7, 30px) 38px 170px;
        min-width: 0;
        width: max-content;
    }
}


/* Football statistics — unified content cards */

/* Match the standalone Standings content container.
   Keep football navigation outside the white card. */
.epic-page-layout__main .epic-football-team-stats,
.epic-page-layout__main .epic-football-player-stats {
    min-width: 0;
}

/* Shared outer white card, beginning at the selectors. */
.epic-page-layout__main .epic-football-team-stats
.epic-football-standings__selectors,
.epic-page-layout__main .epic-football-player-stats
.epic-football-standings__selectors {
    position: relative;
}

/* Use one visual card around the selectors and all sections,
   without introducing another PHP wrapper. */
.epic-page-layout__main .epic-football-team-stats,
.epic-page-layout__main .epic-football-player-stats {
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 17px;
    padding: 34px 40px;
}

/* Keep navigation visually outside the content card. */
.epic-page-layout__main .epic-football-team-stats
> .epic-football-standings__nav,
.epic-page-layout__main .epic-football-player-stats
> .epic-football-standings__nav {
    margin-top: -35px;
    margin-left: -41px;
    margin-right: -41px;
    padding-bottom: 30px;
    background: #f5f1ec;
    border: 0;
}

/* Individual statistics cards match completed-fixture surfaces. */
.epic-page-layout__main .epic-football-team-stats__card {
    background: #faf8f6;
    border-color: #ebe4dd;
}

/* Player rankings use the same warm surfaces and dividers. */
.epic-page-layout__main .epic-football-player-stats__list,
.epic-page-layout__main .epic-football-player-stats__row,
.epic-page-layout__main .epic-football-player-stats__more
.epic-football-player-stats__row {
    background: #faf8f6;
}

.epic-page-layout__main .epic-football-player-stats__list {
    border-color: #ebe4dd;
}

.epic-page-layout__main .epic-football-player-stats__row {
    border-bottom-color: #eee7e2;
}

@media (max-width: 700px) {
    .epic-page-layout__main .epic-football-team-stats,
    .epic-page-layout__main .epic-football-player-stats {
        padding: 22px 15px;
        border-radius: 12px;
    }

    .epic-page-layout__main .epic-football-team-stats
    > .epic-football-standings__nav,
    .epic-page-layout__main .epic-football-player-stats
    > .epic-football-standings__nav {
        margin-top: -23px;
        margin-left: -16px;
        margin-right: -16px;
        padding-bottom: 20px;
    }
}



/* Football statistics — unified card top alignment fix */

/* Match Standings layout: nav first, then the white content card. */
.epic-page-layout__main .epic-football-team-stats,
.epic-page-layout__main .epic-football-player-stats {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

/* Keep the football nav outside the white card. */
.epic-page-layout__main .epic-football-team-stats > .epic-football-standings__nav,
.epic-page-layout__main .epic-football-player-stats > .epic-football-standings__nav {
    margin: 0 0 30px;
    padding: 0;
    background: transparent;
    border: 0;
}

/* Start the white card at the selectors. */
.epic-page-layout__main .epic-football-team-stats > .epic-football-standings__selectors,
.epic-page-layout__main .epic-football-player-stats > .epic-football-standings__selectors {
    margin-bottom: 0;
    padding: 34px 40px 24px;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-bottom: 0;
    border-radius: 17px 17px 0 0;
}

/* Continue the same card through the content below. */
.epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__empty,
.epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__section,
.epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__empty,
.epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__sections {
    margin-top: 0;
    padding-left: 40px;
    padding-right: 40px;
    background: #fff;
    border-left: 1px solid #e4ddd6;
    border-right: 1px solid #e4ddd6;
}

.epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__section:last-child,
.epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__empty:last-child,
.epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__sections:last-child,
.epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__empty:last-child {
    padding-bottom: 34px;
    border-bottom: 1px solid #e4ddd6;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
}

/* Keep the inner statistic cards using the warm football card surface. */
.epic-page-layout__main .epic-football-team-stats__card {
    background: #faf8f6;
    border-color: #ebe4dd;
}

.epic-page-layout__main .epic-football-player-stats__list,
.epic-page-layout__main .epic-football-player-stats__row,
.epic-page-layout__main .epic-football-player-stats__more .epic-football-player-stats__row {
    background: #faf8f6;
}

.epic-page-layout__main .epic-football-player-stats__list {
    border-color: #ebe4dd;
}

.epic-page-layout__main .epic-football-player-stats__row {
    border-bottom-color: #eee7e2;
}

@media (max-width: 700px) {
    .epic-page-layout__main .epic-football-team-stats > .epic-football-standings__selectors,
    .epic-page-layout__main .epic-football-player-stats > .epic-football-standings__selectors {
        padding: 22px 15px 18px;
        border-radius: 12px 12px 0 0;
    }

    .epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__empty,
    .epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__section,
    .epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__empty,
    .epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__sections {
        padding-left: 15px;
        padding-right: 15px;
    }

    .epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__section:last-child,
    .epic-page-layout__main .epic-football-team-stats > .epic-football-team-stats__empty:last-child,
    .epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__sections:last-child,
    .epic-page-layout__main .epic-football-player-stats > .epic-football-player-stats__empty:last-child {
        padding-bottom: 22px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}


/* Team Statistics — continuous white content card */

/* Remove the external gaps between sections. */
.epic-page-layout__main
.epic-football-team-stats > .epic-football-team-stats__section {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 38px;
}

/* Make the white background continue directly after selectors. */
.epic-page-layout__main
.epic-football-team-stats > .epic-football-standings__selectors {
    margin-bottom: 0;
}

/* Keep the final section neatly enclosed. */
.epic-page-layout__main
.epic-football-team-stats > .epic-football-team-stats__section:last-child {
    padding-bottom: 34px;
}

@media (max-width: 700px) {
    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-team-stats__section {
        padding-bottom: 26px;
    }

    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-team-stats__section:last-child {
        padding-bottom: 22px;
    }
}


/* Team Statistics — desktop card top alignment */
@media (min-width: 961px) {
    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-standings__selectors {
        margin-top: -7px;
    }
}


/* Player Statistics — desktop card top alignment */
@media (min-width: 961px) {
    .epic-page-layout__main
    .epic-football-player-stats > .epic-football-standings__selectors {
        margin-top: -2px;
    }
}


/* Football Statistics — compact mobile layout */

@media (max-width: 700px) {

    /* Remove the outer white content card from both pages. */
    .epic-page-layout__main .epic-football-team-stats
    > .epic-football-standings__selectors,
    .epic-page-layout__main .epic-football-player-stats
    > .epic-football-standings__selectors {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
        margin: 0 0 22px;
    }

    .epic-page-layout__main .epic-football-team-stats
    > .epic-football-team-stats__section,
    .epic-page-layout__main .epic-football-player-stats
    > .epic-football-player-stats__sections,
    .epic-page-layout__main .epic-football-team-stats
    > .epic-football-team-stats__empty,
    .epic-page-layout__main .epic-football-player-stats
    > .epic-football-player-stats__empty {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Smaller section headings. */
    .epic-football-team-stats__heading,
    .epic-football-player-stats__heading {
        font-size: 21px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    /* More compact Team Statistics cards. */
    .epic-football-team-stats__grid {
        gap: 10px;
    }

    .epic-football-team-stats__card {
        min-height: 82px;
        padding: 12px 8px;
    }

    .epic-football-team-stats__value {
        font-size: 23px;
        line-height: 1.15;
        margin-bottom: 4px;
    }

    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-team-stats__section {
        padding-bottom: 24px;
    }

    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-team-stats__section:last-child {
        padding-bottom: 0;
    }

    /* Player names and values use the same font size. */
    .epic-football-player-stats__name,
    .epic-football-player-stats__value {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Reduce vertical space in Player Statistics rows. */
    .epic-football-player-stats__row {
        min-height: 42px;
        padding: 9px 12px;
        gap: 10px;
    }

    .epic-football-player-stats__section {
        margin-bottom: 22px;
    }

    .epic-football-player-stats__list {
        border-radius: 12px;
    }
}


/* Football statistics — final mobile typography sizing */
@media (max-width: 700px) {

    /* Section titles on both statistics pages. */
    .epic-page-layout__main
    .epic-football-team-stats .epic-football-team-stats__heading,
    .epic-page-layout__main
    .epic-football-player-stats .epic-football-player-stats__heading {
        font-size: 17px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    /* Numbers inside Team Statistics cards. */
    .epic-page-layout__main
    .epic-football-team-stats .epic-football-team-stats__value {
        font-size: 20px;
        line-height: 1.15;
        margin-bottom: 4px;
    }

    /* Compact card height to match the smaller numbers. */
    .epic-page-layout__main
    .epic-football-team-stats .epic-football-team-stats__card {
        min-height: 76px;
        padding: 10px 8px;
    }
}


/* Statistics headings — mobile specificity correction */
@media (max-width: 700px) {
    body:not(.home) main.site-shell
    .epic-football-team-stats h2.epic-football-team-stats__heading,
    body:not(.home) main.site-shell
    .epic-football-player-stats h2.epic-football-player-stats__heading {
        font-size: 17px !important;
        line-height: 1.25;
        margin-bottom: 12px;
    }
}


/* Football Statistics — mobile bottom cleanup */
@media (max-width: 700px) {

    /* Remove the leftover bottom edge of the desktop white card. */
    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-team-stats__section:last-child,
    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-team-stats__empty:last-child,
    .epic-page-layout__main
    .epic-football-player-stats > .epic-football-player-stats__sections:last-child,
    .epic-page-layout__main
    .epic-football-player-stats > .epic-football-player-stats__empty:last-child {
        border: 0;
        border-radius: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Remove unnecessary space after the final player ranking. */
    .epic-football-player-stats__section:last-child {
        margin-bottom: 0;
    }
}


/* Football statistics — mobile page bottom spacing */
@media (max-width: 700px) {

    /* Remove excess space after the last statistics section. */
    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats)
    > .epic-page-layout__main,
    body:not(.home)
    .epic-page-layout:has(.epic-football-player-stats)
    > .epic-page-layout__main {
        padding-bottom: 16px;
    }

    /* No extra grid gap beneath the statistics content. */
    body:not(.home)
    .epic-page-layout:has(.epic-football-team-stats),
    body:not(.home)
    .epic-page-layout:has(.epic-football-player-stats) {
        gap: 0;
    }
}


/* Standings matchday — Form / Matches switch */

/* Only the standalone combined standings table. */
.epic-football-standings:has(> .epic-football-standings__table.is-combined)
> .epic-football-standings__matchday-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0 0 14px;
}

.epic-football-standings__matchday-switch
.epic-football-standings__matchday-button {
    appearance: none;
    border: 1px solid #e4ddd6;
    border-radius: 7px;
    background: #f8f6f3;
    color: #615650;
    padding: 7px 13px;
    font: 700 12px/1.3 Geist, Arial, sans-serif;
    cursor: pointer;
}

.epic-football-standings__matchday-switch
.epic-football-standings__matchday-button.is-active {
    background: var(--property-accent, #b5121b);
    border-color: var(--property-accent, #b5121b);
    color: #fff;
}

.epic-football-standings__matchday-switch
.epic-football-standings__matchday-button:focus-visible {
    outline: 2px solid var(--property-accent, #b5121b);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .epic-football-standings:has(> .epic-football-standings__table.is-combined)
    > .epic-football-standings__matchday-switch {
        margin-bottom: 10px;
    }

    .epic-football-standings__matchday-switch
    .epic-football-standings__matchday-button {
        padding: 6px 11px;
        font-size: 11px;
    }
}


/* Standings matchday — single-row controls */

/* Competition and season together on the left. */
.epic-football-standings__selectors
.epic-football-standings__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Override the previous rule that positioned the season at the far right. */
.epic-football-standings__selectors
.epic-football-standings__filters select:last-child {
    width: 150px;
    max-width: 100%;
}

/* Form / Matches together on the right. */
.epic-football-standings__selectors
.epic-football-standings__matchday-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 4px;
    margin: 0;
}

@media (max-width: 700px) {
    .epic-football-standings__selectors {
        flex-wrap: wrap;
        gap: 10px;
    }

    .epic-football-standings__selectors
    .epic-football-standings__filters {
        flex: 1 1 auto;
        gap: 6px;
    }

    .epic-football-standings__selectors
    .epic-football-standings__filters select {
        width: 140px;
        max-width: 100%;
    }

    .epic-football-standings__selectors
    .epic-football-standings__filters select:last-child {
        width: 100px;
        max-width: 100%;
    }
}


/* Main Standings — mobile sticky match column */
@media (max-width: 700px) {

    /* Keep only the Form / Matches column visible during horizontal scrolling. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined
    .epic-football-standings__row > :last-child {
        position: sticky;
        right: 0;
        z-index: 3;
        background: #fff;
    }

    /* Preserve the primary team's highlighted background. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined
    .epic-football-standings__row.is-primary > :last-child {
        background: var(--property-accent-soft, #fff1f0);
    }
}


/* Main Standings — mobile optional Form / Matches column */
@media (max-width: 700px) {

    /* When neither toggle is selected, remove the final grid track. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined.is-matchday-column-hidden
    .epic-football-standings__row {
        grid-template-columns:
            30px 110px repeat(7, 30px) 38px;
    }

    /* Remove the final cell, including its header. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined.is-matchday-column-hidden
    .epic-football-standings__row > :last-child {
        display: none;
        position: static;
    }

    /* When activated, retain the existing sticky right column. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined:not(.is-matchday-column-hidden)
    .epic-football-standings__row > :last-child {
        position: sticky;
        right: 0;
        z-index: 3;
    }

    /* Respect the hidden attribute when switching content. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined
    .epic-football-standings__form-values[hidden],
    .epic-page-layout__main
    .epic-football-standings__table.is-combined
    .epic-football-standings__match-value[hidden] {
        display: none !important;
    }
}

/* Give live scores the same right-hand padding as the left side. */
.epic-football-all-fixtures__match:has(
    .epic-football-all-fixtures__live-meta
) {
    padding-right: 14px;
}

/* All Fixtures live right-side meta */
.epic-football-all-fixtures__live-meta {
    margin-left: auto;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d71920;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.epic-football-all-fixtures__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

.epic-football-all-fixtures__live-text {
    color: inherit;
}

@keyframes epic-football-live-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

@media (max-width: 700px) {
    .epic-football-all-fixtures__live-meta {
        gap: 6px;
        font-size: 14px;
    }

    .epic-football-all-fixtures__live-dot {
        width: 7px;
        height: 7px;
    }
}


/* Club Fixtures: confirmed live score and minute. */
.epic-football-fixtures__live-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d71920;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.epic-football-fixtures__live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #d71920;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-fixtures__live-dot {
        animation: none;
    }
}

/* Club fixtures: pending live-feed confirmation after kickoff. */
.epic-football-fixtures__feed-pending[hidden] {
    display: none !important;
}

.epic-football-fixtures__feed-pending:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #b36b00;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.epic-football-fixtures__feed-pending::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #d88b12;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-fixtures__feed-pending::before {
        animation: none;
    }
}

/* All Fixtures: awaiting confirmation after scheduled kickoff. */
.epic-football-all-fixtures__upcoming-time.is-awaiting-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b36b00;
    font-weight: 700;
    white-space: nowrap;
}

.epic-football-all-fixtures__upcoming-time.is-awaiting-live::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #d88b12;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-all-fixtures__upcoming-time.is-awaiting-live::before {
        animation: none;
    }
}

/* Standings Matches: kickoff pending, awaiting live confirmation. */
.epic-football-standings__match-value.is-kickoff-pending:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
    color: #b36b00;
}

.epic-football-standings__match-value.is-kickoff-pending::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #d88b12;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-standings__match-value.is-kickoff-pending::before {
        animation: none;
    }
}

/* Standings Matches column: live score presentation. */
.epic-football-standings__match-value.is-live:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.epic-football-standings__match-value.is-live::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #d71920;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

.epic-football-standings__live-label {
    color: #d71920;
    font-weight: 700;
    white-space: nowrap;
}

.epic-football-standings__live-score {
    color: inherit;
    font-weight: 700;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .epic-football-standings__match-value.is-live::before {
        animation: none;
    }
}


/* All Fixtures: completed match status for today's fixtures. */
.epic-football-all-fixtures__finished-meta {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    flex: 0 0 auto;
    color: #827771;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Completed matches in the upcoming matchday use the results colour. */
.epic-football-all-fixtures__day-group.is-next-matchday
.epic-football-all-fixtures__match.is-finished {
    background: #faf6f5;
}

/* Preserve primary-team highlighting. */
.epic-football-all-fixtures__day-group.is-next-matchday
.epic-football-all-fixtures__match.is-finished.is-primary {
    background: #fff0f1;
}

/* Match the right-hand spacing used for live status labels. */
.epic-football-all-fixtures__match:has(
    .epic-football-all-fixtures__finished-meta
) {
    padding-right: 14px;
}


/* Football Vote prediction controls — stage 1 */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 16px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-choices > p {
    grid-column: 1 / -1;
    margin: 0;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-button {
    min-width: 0;
    min-height: 52px;
    padding: 10px 8px;
    border: 1px solid #e6dada;
    border-radius: 14px;
    background: #fff;
    color: #493d3d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-button:not(:disabled):hover {
    background: #fff4f4;
    border-color: #c5323c;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-button:focus-visible {
    outline: 2px solid #c5323c;
    outline-offset: 3px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-button:disabled {
    opacity: 0.65;
    cursor: default;
}

@media (max-width: 480px) {
    .epic-football-match-drawer [data-match-panel="vote"]
    .epic-football-vote__prediction-choices {
        gap: 6px;
    }

    .epic-football-match-drawer [data-match-panel="vote"]
    .epic-football-vote__prediction-button {
        padding: 8px 5px;
        font-size: 11px;
    }
}


/* Football Vote prediction card — stage 2 */

/* Prediction choices and their introductory text form one card. */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-choices {
    background: #fbf6f6;
    border: 1px solid #eee2e2;
    border-radius: 16px;
    padding: 18px;
    margin: 14px 0 18px;
}

/* Compact, rounded prediction choices. */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-button {
    border-radius: 999px;
    background: #fff;
    min-height: 54px;
    border-color: #e9e0e0;
}

/* Keep the description and voting-status text understated. */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-choices > p {
    color: #806e6e;
    font-size: 13px;
    line-height: 1.5;
}

/* Give the three options room inside the drawer on mobile. */
@media (max-width: 480px) {
    .epic-football-match-drawer [data-match-panel="vote"]
    .epic-football-vote__prediction-choices {
        padding: 12px;
        gap: 7px;
    }
}


/* Football Vote prediction card — finished layout */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card {
    background: #fbf6f6;
    border: 1px solid #ede1e1;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card > h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #292323;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__prediction-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__prediction-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 112px;
    padding: 12px 6px;
    border: 1px solid #e8dddd;
    border-radius: 14px;
    background: #fff;
    color: #342b2b;
    font-size: 12px;
    text-align: center;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__prediction-button:not(:disabled):hover {
    background: #fff0f1;
    border-color: #b52c37;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__prediction-button:disabled {
    opacity: 1;
    cursor: default;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__team-badge {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__choice-label {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.3;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__choice-percent {
    display: block;
    color: #ae2935;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e9dddd;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-footer p {
    margin: 0 0 5px;
    font-size: 12px;
    line-height: 1.5;
    color: #796666;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__personal-status p {
    margin-top: 5px;
}

@media (max-width: 480px) {
    .epic-football-match-drawer [data-match-panel="vote"]
    .epic-football-vote__prediction-card {
        padding: 13px;
    }

    .epic-football-match-drawer [data-match-panel="vote"]
    .epic-football-vote__prediction-card
    .epic-football-vote__prediction-choices {
        gap: 7px;
    }

    .epic-football-match-drawer [data-match-panel="vote"]
    .epic-football-vote__prediction-card
    .epic-football-vote__prediction-button {
        min-height: 100px;
        padding: 10px 4px;
    }
}


/* Football Vote app-style prediction refinements */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card > h3 {
    font-family: inherit;
    font-size: 17px;
    font-weight: 750;
    margin-bottom: 16px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__prediction-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 54px;
    padding: 8px 6px;
    border-radius: 999px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__team-badge {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__choice-label {
    font-size: 12px;
    font-weight: 750;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__choice-percent {
    font-size: 13px;
    font-weight: 800;
    color: #a82530;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card [hidden] {
    display: none !important;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-footer {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-personal-status {
    font-size: 13px;
    color: #756a6a;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .epic-football-match-drawer [data-match-panel="vote"]
    .epic-football-vote__prediction-card
    .epic-football-vote__prediction-button {
        min-height: 48px;
        padding: 7px 4px;
        gap: 5px;
    }
}


/* Football Vote selected prediction — app style */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__prediction-button.is-selected,
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-card
.epic-football-vote__prediction-button.is-selected:disabled {
    background: #f9e7e9;
    border-color: #ce535d;
    box-shadow: inset 0 0 0 1px #e7a0a6;
    color: #b21d2b;
    opacity: 1;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-button.is-selected
.epic-football-vote__choice-percent,
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__prediction-button.is-selected
.epic-football-vote__choice-label {
    color: #b21d2b;
}


/* Fix fixed-position football drawer in Edge */
html:has(.epic-football-match-drawer:not([hidden])) {
    container-type: normal;
}


/* Football player ratings slider interface — stage 1 */

.epic-football-vote__ratings-card {
    background: #fbf6f6;
    border: 1px solid #eee2e2;
    border-radius: 16px;
    padding: 18px;
    margin: 20px 0;
}

.epic-football-vote__ratings-card > h4 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
}

.epic-football-vote__ratings-intro,
.epic-football-vote__ratings-note {
    color: #897775;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.epic-football-vote__ratings-group-heading {
    margin: 22px 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #66514b;
}

.epic-football-vote__rating-slider-row {
    background: #fff;
    border: 1px solid #e4d8d8;
    border-radius: 13px;
    padding: 13px 14px;
    margin-bottom: 8px;
}

.epic-football-vote__rating-slider-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.epic-football-vote__rating-player-name {
    font-weight: 650;
    font-size: 14px;
    color: #66514b;
}

.epic-football-vote__rating-slider-score {
    color: #c31e2b;
    font-size: 14px;
    font-weight: 750;
    flex-shrink: 0;
}

.epic-football-vote__rating-slider {
    display: block;
    width: 100%;
    margin: 0;
    cursor: pointer;
    accent-color: #c31e2b;
}

.epic-football-vote__ratings-submit {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 22px;
    background: #fff;
    color: #c31e2b;
    border: 1px solid #e4d8d8;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}

.epic-football-vote__ratings-submit:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.epic-football-vote__ratings-development-note {
    text-align: center;
    color: #897775;
    font-size: 12px;
    margin: 10px 0 0;
}

@media (max-width: 480px) {
    .epic-football-vote__ratings-card {
        padding: 14px;
    }

    .epic-football-vote__rating-slider-row {
        padding: 12px;
    }
}


/* Football rating substitution indicators */
.epic-football-vote__rating-slider-top {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.epic-football-vote__rating-substitution {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.epic-football-vote__rating-substitution:empty {
    display: none;
}

.epic-football-vote__rating-substitution.is-off {
    color: #e65b35;
}

.epic-football-vote__rating-substitution.is-on {
    color: #259d50;
}

.epic-football-vote__rating-slider-score {
    margin-left: auto;
}


/* Player ratings submit button cursor fix */
.epic-football-vote__ratings-submit:not(:disabled) {
    cursor: pointer;
}

.epic-football-vote__ratings-submit:disabled {
    cursor: not-allowed;
}


/* Player ratings results — app-style layout */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-winners {
    background: #fff;
    border: 1px solid #e8a7aa;
    border-radius: 13px;
    padding: 12px 13px;
    margin: 12px 0 18px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-winners h5 {
    color: #c4212f;
    font-size: 14px;
    font-weight: 750;
    margin: 0 0 8px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-winners
.epic-football-vote__rating-result-row {
    border: 0;
    padding: 4px 0;
    margin: 0;
    background: transparent;
    color: #c4212f;
    font-weight: 750;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-section-heading {
    margin: 19px 0 10px;
    font-size: 14px;
    font-weight: 750;
    color: #66514b;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-results-list {
    display: grid;
    gap: 6px;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__rating-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    background: #fff;
    border: 1px solid #e3d7d7;
    border-radius: 11px;
    padding: 11px 12px;
    color: #66514b;
    font-size: 14px;
    line-height: 1.4;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__rating-result-name {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    font-weight: 650;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__rating-result-rank {
    flex-shrink: 0;
    min-width: 22px;
    font-weight: 700;
    color: #887675;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__rating-result-score {
    flex-shrink: 0;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-results-footer {
    margin-top: 19px;
    color: #887675;
    font-size: 13px;
    font-weight: 600;
}

.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-results-footer p {
    margin: 0 0 5px;
}


/* Player ratings results — final typography refinements */

/* Player of the Match: larger name, same dark tone as other players. */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-winners
.epic-football-vote__rating-result-row {
    color: #66514b;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.4;
}

/* Keep the winning player's score in the red accent. */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__ratings-winners
.epic-football-vote__rating-result-score {
    color: #c4212f;
    font-size: 16px;
    font-weight: 800;
}

/* Smaller, quieter substitute label beside the player's name. */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__rating-result-sub {
    color: #938483;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}


/* Football final vote result — closed predictions */
.epic-football-match-drawer [data-match-panel="vote"]
.epic-football-vote__closed-result {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 0;
    color: #887675;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}


/* Standings match badges and contextual score tabs */
.epic-football-standings__table.is-combined
.epic-football-standings__row {
    grid-template-columns:
        38px minmax(160px, 1fr)
        repeat(7, 42px) 52px 185px;
}

.epic-football-standings__match-value.is-score:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.epic-football-standings__match-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.epic-football-standings__match-status {
    font-size: 12px;
    font-weight: 700;
    color: #827771;
    white-space: nowrap;
}

.epic-football-standings__match-value.is-live
.epic-football-standings__match-status {
    color: #d71920;
}

.epic-football-standings__match-score {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 5px;
}

.epic-football-standings__match-score.is-win,
.epic-football-standings__match-score.is-loss,
.epic-football-standings__match-score.is-draw {
    padding: 4px 6px;
}

.epic-football-standings__match-score.is-win {
    background: #d7f1df;
    color: #17683a;
}

.epic-football-standings__match-score.is-loss {
    background: #f8dcdf;
    color: #9c2936;
}

.epic-football-standings__match-score.is-draw {
    background: #e7e7e7;
    color: #555;
}

/* Half-time retains its score colour but has no live pulse. */
.epic-football-standings__match-value.is-half-time::before {
    display: none !important;
}

@media (max-width: 700px) {
    .epic-football-standings__table.is-combined
    .epic-football-standings__row {
        grid-template-columns:
            30px 110px repeat(7, 30px) 38px 170px;
    }

    .epic-football-standings__table.is-combined
    .epic-football-standings__match-value.is-score {
        gap: 4px;
    }
}


/* Standings desktop match column fit fix — 20261019 */
@media (min-width: 701px) {
    .epic-football-standings__table.is-combined
    .epic-football-standings__row {
        grid-template-columns:
            32px minmax(110px, 1fr)
            repeat(7, 36px) 42px 170px;
        min-width: 0;
        width: 100%;
    }

    .epic-football-standings__table.is-combined
    .epic-football-standings__match-value.is-score {
        gap: 4px;
    }
}


/* Consolidated mobile sticky Matches column — 20261019 */
@media (max-width: 700px) {

    /* Keep all columns scrollable except the right-hand Matches cell. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined
    .epic-football-standings__row {
        grid-template-columns:
            30px 110px repeat(7, 30px) 38px 105px;
    }

    /* Preserve layout when Form/Matches is switched off. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined.is-matchday-column-hidden
    .epic-football-standings__row {
        grid-template-columns:
            30px 110px repeat(7, 30px) 38px;
    }

    /*
     * Give ordinary rows an opaque background.
     * Existing hover/highlight styles remain in control of their colours.
     */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined
    .epic-football-standings__row:not(.is-primary):not(:hover) {
        background-color: #fff;
    }

    /* Only Matches stays fixed against the right edge. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined:not(.is-matchday-column-hidden)
    .epic-football-standings__row > :last-child {
        position: sticky;
        right: 0;
        z-index: 3;

        /* Exactly match the parent row, including hover highlights. */
        background: inherit !important;
    }

    /* Compact scores without sacrificing badge visibility. */
    .epic-page-layout__main
    .epic-football-standings__match-value.is-score {
        gap: 1px;
    }

    .epic-page-layout__main
    .epic-football-standings__match-badge {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }

    .epic-page-layout__main
    .epic-football-standings__match-score {
        min-width: 27px;
        font-size: 11px;
    }

    .epic-page-layout__main
    .epic-football-standings__match-status {
        font-size: 11px;
    }

    /* Hidden columns must remain hidden. */
    .epic-page-layout__main
    .epic-football-standings__table.is-combined.is-matchday-column-hidden
    .epic-football-standings__row > :last-child {
        display: none;
        position: static;
    }
}


/* Upcoming standings opponent badges — 20261019 */
.epic-football-standings__match-value.is-upcoming:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .epic-page-layout__main
    .epic-football-standings__match-value.is-upcoming {
        gap: 3px;
    }
}


/* Homepage hero match-card alignment refinement */
@media (min-width: 801px) {
    .home #forest-home-hero .epic-home-featured-event {
        width: min(100%, 460px);
        max-width: 460px;
        padding-bottom: 18px;
    }
}


/* Reserve viewport scrollbar space when overlays lock page scrolling. */
html {
    scrollbar-gutter: stable;
}


/* Homepage app banner: remove gap before footer. */
/* Preserve normal spacing on pages without the app banner. */
@supports selector(:has(*)) {
    .home main.site-shell:has(.epic-app-promo-banner) {
        padding-bottom: 0;
    }
}

/* Mobile-only page H1 sizing — homepage and tablet/desktop unchanged */
@media (max-width: 700px) {
    body:not(.home) .epic-page-layout__main > h1,
    body:not(.home) .epic-profile-page__header h1 {
        font-size: 23px;
        line-height: 28px;
        font-weight: 700;
    }
}


/* Compact mobile-only property header — Stage 280 */
@media (max-width: 700px) {
    body:not(.network-admin)
    .site-header:has(.site-brand__name--property)
    .site-header__inner {
        min-height: 60px;
        padding-top: 0;
        padding-bottom: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .site-header:has(.site-brand__name--property)
    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .site-header:has(.site-brand__name--property)
    .site-brand__logo-image {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .site-header .site-brand__name--property {
        min-width: 0;
        font-size: clamp(12px, 3.6vw, 16px);
        line-height: 1.1;
        letter-spacing: -0.035em;
        white-space: nowrap;
    }

    .site-header .site-brand__title-mobile {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 0.28em;
        white-space: nowrap;
    }

    .site-header:has(.site-brand__name--property)
    .site-nav-toggle {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }
}


/* Mobile-only homepage hero heading — Stage 287 */
@media (max-width: 700px) {
    body.home #forest-home-hero h2.wp-block-heading {
        font-size: 36px !important;
        line-height: 40px !important;
    }
}


/* Mobile-only homepage hero vertical spacing — Stage 290 */
@media (max-width: 700px) {
    body.home #forest-home-hero > .kt-row-column-wrap {
        padding-top: 24px !important;
        padding-bottom: 20px !important;
    }
}


/* Mobile timeline and dashboard shared width — Stage 296 */
@media (max-width: 700px) {
    body:has(.epic-fans-timeline[data-epic-football-timeline])
    main.site-shell {
        width: calc(100% - 24px);
        max-width: var(--epic-wide-width);
        margin-inline: auto;
    }
}


/* Shared timeline compact mobile month bar — Stage 302 */
@media (max-width: 700px) {
    .epic-fans-timeline .epic-fans-timeline__month-row {
        padding: 4px 8px;
        margin-bottom: 10px;
    }

    .epic-fans-timeline .epic-fans-timeline__month {
        font-size: 15px !important;
        line-height: 1.2;
    }

    .epic-fans-timeline .epic-fans-timeline__arrow {
        width: 30px;
        height: 30px;
    }
}


/* Shared timeline compact mobile dates — Stage 306 */
@media (max-width: 700px) {
    .epic-fans-timeline .epic-fans-timeline__dates {
        gap: 0;
        padding-left: calc(50% - 18px);
        padding-right: calc(50% - 18px);
    }

    .epic-fans-timeline .epic-fans-timeline__date {
        box-sizing: border-box;
        flex: 0 0 36px;
        width: 36px;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .epic-fans-timeline .epic-fans-timeline__day,
    .epic-fans-timeline .epic-fans-timeline__day:link,
    .epic-fans-timeline .epic-fans-timeline__day:visited {
        width: 34px;
        height: 34px;
        font-size: 12px;
        margin-inline: auto;
    }

    .epic-fans-timeline .epic-fans-timeline__selection-ring {
        width: 34px;
        height: 34px;
    }

    .epic-fans-timeline .epic-fans-timeline__date.is-selected
    .epic-fans-timeline__day {
        font-size: 12px !important;
    }

    .epic-fans-timeline .epic-fans-timeline__date.is-today
    .epic-fans-timeline__day {
        font-size: 18px !important;
    }
}


/* Shared timeline mobile ring vertical nudge — Stage 307 */
@media (max-width: 700px) {
    .epic-fans-timeline .epic-fans-timeline__selection-ring {
        top: 5px !important;
    }
}


/* Shared timeline compact mobile event typography — Stage 308 */
@media (max-width: 700px) {
    .epic-fans-timeline .epic-fans-timeline__event-year {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .epic-fans-timeline .epic-fans-timeline__event-title {
        font-size: 16px !important;
        line-height: 1.25;
        margin-bottom: 7px;
    }
}


/* Shared timeline event descriptions — protect from page typography */
body:not(.home) main.site-shell
.epic-fans-timeline p.epic-fans-timeline__event-excerpt {
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 800px) {
    body:not(.home) main.site-shell
    .epic-fans-timeline p.epic-fans-timeline__event-excerpt {
        font-size: 14px;
        line-height: 1.45;
    }
}


/* Shared mobile event and news drawer title sizes — Stage 318 */
@media (max-width: 700px) {
    .epic-fans-event-drawer .epic-fans-event-drawer__title {
        font-size: 29px !important;
        line-height: 30px !important;
    }

    .epic-fans-news-drawer .epic-fans-news-drawer__title {
        font-size: 29px !important;
        line-height: 30px !important;
    }
}


/* Shared mobile History archive compact rows — Stage 325 */
@media (max-width: 700px) {
    .epic-fans-history-archive__year {
        margin-bottom: 14px;
    }

    body:not(.home) main.site-shell
    .epic-fans-history-archive__year-heading {
        margin-bottom: 6px;
        padding-bottom: 6px;
        font-size: 20px !important;
        line-height: 1.15 !important;
    }

    .epic-fans-history-archive__link {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .epic-fans-history-archive__date {
        font-size: 12px;
    }

    .epic-fans-history-archive__title {
        font-size: 15px;
        line-height: 1.3;
    }
}

/* Standalone event Poll question: match mobile event drawer typography.
   Do not affect timeline supplements or desktop. */
@media (max-width: 700px) {
    body:not(.home) main.site-shell
    .epic-fans-event-poll:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-poll
    ) h3.epic-fans-event-poll__question {
        margin-bottom: 15px;
        font-family: Geist, Arial, sans-serif;
        font-size: 16px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
    }
}

/* Mobile event-page and drawer quizzes — compact app-inspired layout. */
@media (max-width: 700px) {
    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) {
        margin: 18px 0;
        padding: 16px;
        border-radius: 16px;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__header {
        gap: 8px;
        margin-bottom: 12px;
        color: #715f59;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__header-icon {
        width: 22px;
        height: 22px;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__header-icon svg {
        width: 20px;
        height: 20px;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__header-text {
        font-size: 15px;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: none;
    }

    body:not(.home) main.site-shell
    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) h3.epic-fans-event-quiz__question,
    .epic-fans-event-drawer
    .epic-fans-event-quiz__question {
        margin: 0 0 15px;
        font-size: 16px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__options {
        gap: 7px;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__option {
        gap: 9px;
        min-height: 44px;
        padding: 7px 12px;
        border-width: 1px;
        border-radius: 10px;
        font-size: 15px;
        line-height: 1.3;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__option-index {
        width: 22px;
        height: 22px;
        border-width: 1.5px;
        font-size: 12px;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__result-icon {
        width: 22px;
        height: 22px;
        font-size: 15px;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__answer-card {
        margin-top: 12px;
        padding: 12px;
        border-width: 1px;
        border-radius: 12px;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__answer-title {
        margin-bottom: 6px;
        font-size: 14px;
        line-height: 1.4;
    }

    .epic-fans-event-quiz:not(
        .epic-fans-timeline__supplementary-card .epic-fans-event-quiz
    ) .epic-fans-event-quiz__answer-body {
        font-size: 14px;
        line-height: 1.45;
    }
}

/* =========================================================
   Shared desktop content-card/sidebar alignment
   =========================================================
   Correct the 25px offset introduced by earlier page spacing
   refinements. Keep existing sticky positioning and card height.
*/
@media (min-width: 961px) {
    body:not(.home) .epic-page-layout:has(
        .epic-football-fixtures,
        .epic-football-standings,
        .epic-football-team-stats,
        .epic-football-player-stats,
        .epic-fans-rankings__card
    ) > .epic-app-promo-sidebar {
        padding-top: 207px;
    }

    body:not(.home) .epic-page-layout:has(
        .epic-football-team-stats,
        .epic-football-player-stats
    ) > .epic-app-promo-sidebar {
        padding-top: 203px;
    }

    body:not(.home) .epic-page-layout:has(
        .epic-fans-rankings__card
    ) > .epic-app-promo-sidebar {
        padding-top: 297px;
    }
}


/* Shared football sticky sidebar clearance — Stage 2026-10-25 */
/* Keep promotion below the sticky header and football toolbar. */
@media (min-width: 961px) {
    body:not(.home)
    .epic-page-layout:has(.epic-football-fixtures, .epic-football-standings)
    .epic-app-promo-sidebar__inner {
        top: 195px;
    }
}


/* Epic Fans shared utility bar */
.epic-utility-bar {
    background: #F1F2F3;
    border-bottom: 1px solid #E1E4E6;
    font-family: Geist, Arial, sans-serif;
}

.epic-utility-bar__inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.epic-utility-bar__social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.epic-utility-bar__social a {
    color: #53616B;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.epic-utility-bar__social a:hover,
.epic-utility-bar__social a:focus-visible {
    color: #A91B2B;
}

@media (max-width: 800px) {
    .epic-utility-bar {
        display: none;
    }
}


/* Epic Fans utility bar SVG icons */
.epic-utility-bar__social a,
.epic-utility-bar__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 28px;
}

.epic-utility-bar__icon {
    display: block;
    width: 18px;
    height: 18px;
}

.epic-utility-bar__placeholder {
    color: #78838B;
    cursor: default;
}

.epic-utility-bar__social a:hover .epic-utility-bar__icon,
.epic-utility-bar__social a:focus-visible .epic-utility-bar__icon {
    color: #A91B2B;
}


/* Epic Fans dark utility bar */
.epic-utility-bar {
    background: #20252B;
    border-bottom: 0;
}

.epic-utility-bar__social a,
.epic-utility-bar__placeholder {
    color: #FFFFFF;
}

.epic-utility-bar__social a:hover,
.epic-utility-bar__social a:focus-visible,
.epic-utility-bar__social a:hover .epic-utility-bar__icon,
.epic-utility-bar__social a:focus-visible .epic-utility-bar__icon {
    color: #CBD2D8;
}


/* Epic Fans compact utility bar */
.epic-utility-bar__inner {
    min-height: 26px;
}

.epic-utility-bar__social {
    gap: 14px;
}

.epic-utility-bar__social a,
.epic-utility-bar__placeholder {
    height: 26px;
    width: 22px;
}

.epic-utility-bar__icon {
    width: 16px;
    height: 16px;
}


/* EPIC FANS SHARED PREMIUM CHECKOUT DESIGN - STAGE 3N.12E.4 */

.epic-billing-checkout-preview {
    --epic-checkout-accent: var(--epic-primary, #C90000);
    max-width: 1180px;
    margin: 20px auto 90px;
    color: #18212b;
}

.epic-billing-checkout-preview > h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    color: #101820;
}

.epic-billing-checkout-preview > p {
    max-width: 760px;
    line-height: 1.65;
    color: #607080;
}

.epic-billing-checkout-preview > p[role="status"] {
    max-width: none;
    margin: 26px 0;
    padding: 14px 18px;
    border: 1px solid #e8d7b6;
    border-radius: 10px;
    background: #fff9ec;
    color: #72551d;
    font-size: 14px;
}

.epic-billing-checkout-preview fieldset {
    min-width: 0;
    margin: 26px 0;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
}

.epic-billing-checkout-preview fieldset legend {
    padding: 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: #18212b;
}

.epic-billing-checkout-preview__field,
.epic-billing-checkout-preview fieldset > p {
    margin: 0 0 19px;
}

.epic-billing-checkout-preview label {
    display: block;
    margin-bottom: 8px;
    color: #25313d;
    font-size: 14px;
    font-weight: 600;
}

.epic-billing-checkout-preview input,
.epic-billing-checkout-preview select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #cfd6dc;
    border-radius: 8px;
    background: #fff;
    color: #18212b;
    font-size: 15px;
}

.epic-billing-checkout-preview fieldset[disabled] input,
.epic-billing-checkout-preview fieldset[disabled] select {
    opacity: 0.75;
    background: #f5f6f7;
    cursor: not-allowed;
}

.epic-billing-checkout-preview fieldset h3 {
    margin: 34px 0 22px;
    padding-top: 26px;
    border-top: 1px solid #e8eaed;
    font-size: 21px;
    color: #18212b;
}

.epic-billing-checkout-preview__order,
.epic-billing-checkout-preview__stripe {
    margin: 24px 0;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
}

.epic-billing-checkout-preview__order h3,
.epic-billing-checkout-preview > h3 {
    margin-top: 0;
    color: #18212b;
    font-size: 22px;
}

.epic-billing-checkout-preview__order dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    margin: 24px 0;
}

.epic-billing-checkout-preview__order dt,
.epic-billing-checkout-preview__order dd {
    margin: 0;
}

.epic-billing-checkout-preview__order dd {
    text-align: right;
}

.epic-billing-checkout-preview__order dl strong {
    font-size: 18px;
}

.epic-billing-checkout-preview__stripe {
    padding: 35px 25px;
    border-style: dashed;
    background: #f8f9fa;
    text-align: center;
    color: #627080;
}

.epic-billing-checkout-preview__legal {
    max-width: 820px;
    font-size: 13px;
    line-height: 1.7;
    color: #65717b;
}

/* Responsive form fields */
@media (min-width: 700px) {
    .epic-billing-checkout-preview fieldset {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
        align-items: start;
    }

    .epic-billing-checkout-preview fieldset legend {
        float: left;
        width: 100%;
    }

    .epic-billing-checkout-preview fieldset h3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 699px) {
    .epic-billing-checkout-preview {
        margin-bottom: 50px;
    }

    .epic-billing-checkout-preview fieldset,
    .epic-billing-checkout-preview__order {
        padding: 20px;
    }

    .epic-billing-checkout-preview__stripe {
        padding: 24px 16px;
    }
}


/* EPIC PREMIUM TWO COLUMN CHECKOUT - 3N.12E.5 */

.epic-billing-checkout-preview__columns {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 32px;
    align-items: start;
    margin-top: 28px;
}

.epic-billing-checkout-preview__left,
.epic-billing-checkout-preview__right {
    min-width: 0;
}

.epic-billing-checkout-preview__left fieldset {
    display: block;
    margin: 0;
    padding: 28px;
}

.epic-billing-checkout-preview__left fieldset legend {
    float: none;
    width: auto;
    padding: 0 8px;
    font-size: 21px;
    font-weight: 700;
}

.epic-billing-checkout-preview__fields,
.epic-billing-checkout-preview__passwords {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
}

.epic-billing-checkout-preview__fields > p,
.epic-billing-checkout-preview__passwords > p {
    min-width: 0;
}

.epic-billing-checkout-preview__fields > p:nth-child(n+3) {
    grid-column: 1 / -1;
}

.epic-billing-checkout-preview__fields > p:nth-child(4),
.epic-billing-checkout-preview__fields > p:nth-child(6),
.epic-billing-checkout-preview__fields > p:nth-child(8),
.epic-billing-checkout-preview__fields > p:nth-child(10) {
    grid-column: auto;
}

.epic-billing-checkout-preview__left fieldset h3 {
    margin: 20px 0;
    padding-top: 26px;
    border-top: 1px solid #e8eaed;
}

.epic-billing-checkout-preview__right .epic-billing-checkout-preview__order {
    margin: 0 0 22px;
}

.epic-billing-checkout-preview__right > h3 {
    margin: 22px 0 12px;
}

.epic-billing-checkout-preview__right .epic-billing-checkout-preview__stripe {
    margin: 0 0 20px;
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epic-billing-checkout-preview__right .epic-billing-checkout-preview__legal {
    max-width: none;
    margin: 14px 0;
}

@media (max-width: 900px) {
    .epic-billing-checkout-preview__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 540px) {
    .epic-billing-checkout-preview__left fieldset {
        padding: 20px;
    }

    .epic-billing-checkout-preview__fields,
    .epic-billing-checkout-preview__passwords {
        grid-template-columns: minmax(0, 1fr);
    }

    .epic-billing-checkout-preview__fields > p {
        grid-column: 1 / -1 !important;
    }
}


/* EPIC PREMIUM COMPACT CHECKOUT - 3N.12E.6 */

/* Keep both card tops precisely aligned. */
.epic-billing-checkout-preview__columns {
    gap: 26px;
    margin-top: 22px;
    align-items: start;
}

.epic-billing-checkout-preview__left fieldset,
.epic-billing-checkout-preview__right .epic-billing-checkout-preview__order {
    margin-top: 0;
}

.epic-billing-checkout-preview__left fieldset {
    padding: 22px 24px 20px;
}

/* Billing heading is now inside the card, not a legend. */
.epic-billing-checkout-preview__left fieldset
.epic-billing-checkout-preview__billing-heading {
    display: block;
    grid-column: 1 / -1;
    margin: 0 0 17px;
    padding: 0;
    border: 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

/* Denser ESL KidStuff-style billing field layout. */
.epic-billing-checkout-preview__fields,
.epic-billing-checkout-preview__passwords {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 0;
}

.epic-billing-checkout-preview__fields > p,
.epic-billing-checkout-preview__passwords > p {
    grid-column: 1 / -1;
    margin: 0 0 11px;
    min-width: 0;
}

.epic-billing-checkout-preview__fields
.epic-billing-checkout-preview__field--first_name,
.epic-billing-checkout-preview__fields
.epic-billing-checkout-preview__field--last_name,
.epic-billing-checkout-preview__fields
.epic-billing-checkout-preview__field--city,
.epic-billing-checkout-preview__fields
.epic-billing-checkout-preview__field--state,
.epic-billing-checkout-preview__fields
.epic-billing-checkout-preview__field--postcode,
.epic-billing-checkout-preview__fields
.epic-billing-checkout-preview__field--phone {
    grid-column: span 1;
}

.epic-billing-checkout-preview label {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.35;
}

.epic-billing-checkout-preview input,
.epic-billing-checkout-preview select {
    min-height: 39px;
    padding: 7px 11px;
    font-size: 14px;
}

.epic-billing-checkout-preview__left fieldset
h3:not(.epic-billing-checkout-preview__billing-heading) {
    margin: 9px 0 12px;
    padding-top: 16px;
    font-size: 19px;
}

.epic-billing-checkout-preview__passwords
.epic-billing-checkout-preview__username {
    grid-column: 1 / -1;
}

.epic-billing-checkout-preview__right
.epic-billing-checkout-preview__order {
    padding: 22px 24px;
}

.epic-billing-checkout-preview__right
.epic-billing-checkout-preview__order h3 {
    margin: 0 0 16px;
    font-size: 21px;
    line-height: 1.3;
}

.epic-billing-checkout-preview__product {
    margin: 0 0 16px;
    color: #25313d;
    font-weight: 600;
    line-height: 1.5;
}

.epic-billing-checkout-preview__order dl {
    gap: 10px 16px;
    margin: 16px 0;
}

.epic-billing-checkout-preview__right
.epic-billing-checkout-preview__stripe {
    min-height: 115px;
}

@media (max-width: 540px) {
    .epic-billing-checkout-preview__fields,
    .epic-billing-checkout-preview__passwords {
        grid-template-columns: minmax(0, 1fr);
    }

    .epic-billing-checkout-preview__fields > p,
    .epic-billing-checkout-preview__passwords > p {
        grid-column: 1 / -1;
    }

    .epic-billing-checkout-preview__left fieldset {
        padding: 18px;
    }
}


/* EPIC PREMIUM ORDER AND FIELD REFINEMENTS - 3N.12E.7 */

.epic-billing-checkout-preview label {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.epic-billing-checkout-preview label span[aria-hidden="true"] {
    color: #c90000;
    font-weight: 700;
}

.epic-billing-checkout-preview__optional {
    color: #697581;
    font-weight: 400;
    font-size: 13px;
}

.epic-billing-checkout-preview__order
.epic-billing-checkout-preview__order-table {
    width: 100%;
    margin: 8px 0 14px;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 15px;
    line-height: 1.5;
    color: #263746;
}

.epic-billing-checkout-preview__order-table th,
.epic-billing-checkout-preview__order-table td {
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid #d7dfe7;
    vertical-align: top;
    text-align: left;
    background: transparent;
}

.epic-billing-checkout-preview__order-table thead th {
    font-size: 16px;
    font-weight: 700;
}

.epic-billing-checkout-preview__order-table th:last-child,
.epic-billing-checkout-preview__order-table td:last-child {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

.epic-billing-checkout-preview__order-table tbody th {
    font-weight: 700;
}

.epic-billing-checkout-preview__order-table
.epic-billing-checkout-preview__total-row th,
.epic-billing-checkout-preview__order-table
.epic-billing-checkout-preview__total-row td {
    font-weight: 800;
    font-size: 16px;
    border-bottom: 0;
}

.epic-billing-checkout-preview__quantity {
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 540px) {
    .epic-billing-checkout-preview__order-table th,
    .epic-billing-checkout-preview__order-table td {
        padding: 10px 5px;
    }
}


/* EPIC PREMIUM LEGAL TEXT REFINEMENT - 3N.12E.8 */

.epic-billing-checkout-preview
.epic-billing-checkout-preview__legal {
    font-size: 12px;
    line-height: 1.4;
    color: #65717b;
}

.epic-billing-checkout-preview
.epic-billing-checkout-preview__legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.epic-billing-checkout-preview
.epic-billing-checkout-preview__legal a:hover,
.epic-billing-checkout-preview
.epic-billing-checkout-preview__legal a:focus-visible {
    color: #101820;
    text-decoration-thickness: 2px;
}


/* EPIC PREMIUM LEGAL TYPOGRAPHY FIX - 3N.12E.9 */

/* Override the theme's generic article paragraph typography. */
body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__right
p.epic-billing-checkout-preview__legal {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: normal;
    margin-top: 10px;
    margin-bottom: 12px;
    color: #65717b;
}

body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__right
p.epic-billing-checkout-preview__legal a {
    font-size: inherit;
    line-height: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* EPIC PREMIUM LEGAL TYPOGRAPHY FINAL - 3N.12E.10 */

body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__right
p.epic-billing-checkout-preview__legal {
    font-size: 13px;
    line-height: 1.4;
}

body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__right
p.epic-billing-checkout-preview__legal a {
    font-size: inherit;
    line-height: inherit;
}


/* EPIC PREMIUM REGISTRATION REDESIGN - 3N.12F.11B */

.epic-billing-checkout-preview__benefits {
    grid-column: 1 / -1;
    margin: 18px 0 15px;
    padding: 16px 18px;
    border: 1px solid #dce5dd;
    border-radius: 8px;
    background: #f5faf6;
}

.epic-billing-checkout-preview__left fieldset
.epic-billing-checkout-preview__benefits h3 {
    margin: 0 0 11px;
    padding: 0;
    font-size: 19px;
    line-height: 1.35;
}

.epic-billing-checkout-preview__benefits ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.epic-billing-checkout-preview__benefits li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 23px;
    font-size: 14px;
    line-height: 1.5;
}

.epic-billing-checkout-preview__benefits li:last-child {
    margin-bottom: 0;
}

.epic-billing-checkout-preview__benefits li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: #267642;
    font-weight: 700;
}

.epic-billing-checkout-preview__payment-action {
    margin-top: 20px;
}

.epic-billing-checkout-preview__payment-button {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 6px;
    background: #68737e;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.epic-billing-checkout-preview__payment-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.epic-billing-checkout-preview__payment-button:not(:disabled) {
    background: #c31e2b;
    cursor: pointer;
    opacity: 1;
}

.epic-billing-checkout-preview__payment-button:not(:disabled):hover {
    background: #a91824;
}

.epic-billing-checkout-preview__payment-action > p {
    margin: 10px 0 0;
    color: #65717b;
    font-size: 13px;
    line-height: 1.5;
}


/* EPIC PREMIUM REGISTRATION REFINEMENTS - 3N.12F.11C */

.epic-billing-checkout-preview__title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.epic-billing-checkout-preview__rosette {
    flex: 0 0 38px;
    width: 38px;
    height: 48px;
}

.epic-billing-checkout-preview__benefits {
    margin: 0 0 22px;
    padding: 18px 22px;
}

.epic-billing-checkout-preview__benefits h3 {
    margin: 0 0 14px;
    border: 0;
    padding: 0;
    font-size: 21px;
    font-weight: 700;
}

.epic-billing-checkout-preview__benefits ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 11px;
    margin: 0;
    padding: 0;
}

.epic-billing-checkout-preview__benefits li {
    margin: 0;
}

.epic-billing-checkout-preview__left fieldset
.epic-billing-checkout-preview__billing-heading {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.epic-billing-checkout-preview__columns {
    margin-top: 0;
}

.epic-billing-checkout-preview__order
.epic-billing-pricing-status:empty {
    display: none;
}

@media (max-width: 600px) {
    .epic-billing-checkout-preview__benefits ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .epic-billing-checkout-preview__title {
        gap: 10px;
    }

    .epic-billing-checkout-preview__rosette {
        width: 32px;
        height: 40px;
        flex-basis: 32px;
    }
}


/* EPIC PREMIUM FULL-WIDTH ALIGNMENT - 3N.12F.11D */

/* Use the complete width of the existing site content container. */
.epic-page-layout--full
.epic-page-layout__main
.epic-billing-checkout-preview {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Prevent the registration columns from exceeding their parent. */
.epic-billing-checkout-preview__columns {
    width: 100%;
    min-width: 0;
}


/* EPIC PREMIUM BENEFIT DESCRIPTIONS - 3N.12F.11E */

.epic-billing-checkout-preview__benefits
.epic-premium-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 32px;
    margin-top: 12px;
}

.epic-billing-checkout-preview__benefits
.epic-premium-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.epic-premium-benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #fce9ed;
    color: #ad1028;
}

.epic-premium-benefit__icon svg {
    width: 24px;
    height: 24px;
}

.epic-premium-benefit__content {
    min-width: 0;
}

.epic-premium-benefit__content strong {
    display: block;
    margin-bottom: 4px;
    color: #18212b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.epic-billing-checkout-preview__benefits
.epic-premium-benefit__content p {
    margin: 0;
    color: #627080;
    font-size: 13.5px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .epic-billing-checkout-preview__benefits
    .epic-premium-benefit-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    .epic-premium-benefit__icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }
}


/* EPIC PREMIUM PURCHASE LAYOUT - 3N.12F.11F-FINAL */

.epic-billing-checkout-preview__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.epic-billing-checkout-preview__left,
.epic-billing-checkout-preview__right {
    min-width: 0;
}

.epic-billing-checkout-preview__left
.epic-billing-checkout-preview__benefits {
    margin: 0;
    padding: 22px 24px;
}

.epic-billing-checkout-preview__left
.epic-premium-benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.epic-billing-checkout-preview__right fieldset {
    display: block;
    min-width: 0;
    margin: 16px 0 0;
    padding: 22px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.epic-billing-checkout-preview__right fieldset
.epic-billing-checkout-preview__billing-heading {
    display: block;
    margin: 0 0 17px;
    padding: 0;
    border: 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.epic-billing-checkout-preview__right fieldset
.epic-billing-checkout-preview__passwords {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.epic-billing-checkout-preview__right fieldset
.epic-billing-checkout-preview__passwords > p {
    grid-column: 1 / -1;
}

.epic-billing-checkout-preview__right fieldset input,
.epic-billing-checkout-preview__right fieldset select {
    width: 100%;
    box-sizing: border-box;
}

.epic-billing-checkout-preview__right
.epic-billing-checkout-preview__order {
    margin-bottom: 0;
}

.epic-billing-checkout-preview__payment-action {
    margin-top: 16px;
}

.epic-billing-checkout-preview__payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    line-height: 1.35;
}

.epic-billing-checkout-preview__payment-button svg {
    flex: 0 0 20px;
}

@media (max-width: 900px) {
    .epic-billing-checkout-preview__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 540px) {
    .epic-billing-checkout-preview__left
    .epic-billing-checkout-preview__benefits,
    .epic-billing-checkout-preview__right fieldset {
        padding: 18px;
    }
}


/* EPIC PREMIUM BENEFIT TYPOGRAPHY - 3N.12F.11H */

/* Match description size to benefit titles, with tighter spacing. */
.epic-billing-checkout-preview__benefits
.epic-premium-benefit__content p {
    font-size: 15px;
    line-height: 1.35;
    margin-top: 3px;
    margin-bottom: 0;
}


/* EPIC PREMIUM BENEFIT TYPOGRAPHY FIX - 3N.12F.11I */

/* Match benefit title and description sizes. */
body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-premium-benefit__content strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 5px;
}

/* Override general page paragraph typography. */
body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__benefits
.epic-premium-benefit__content p {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
}


/* EPIC PREMIUM BENEFIT FONT SIZE - 3N.12F.11J */

body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-premium-benefit__content strong,
body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__benefits
.epic-premium-benefit__content p {
    font-size: 16px;
    line-height: 1.25;
}


/* EPIC PREMIUM COUNTRY DROPDOWN SPACING - 3N.12G.9 */

/* Move the country dropdown arrow away from the right edge. */
.epic-billing-checkout-preview
select[name="country"] {
    padding-right: 48px;
    background-position: right 18px center;
}


/* EPIC PREMIUM CUSTOM COUNTRY ARROW - 3N.12G.10 */

/* Replace the native arrow so its position can be controlled. */
.epic-billing-checkout-preview
select[name="country"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    padding-right: 48px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231b2633' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

/* =========================================================
   Shared Gutenberg content cards
   Reusable across all Epic Fans properties
   ========================================================= */

.epic-page-layout__main .epic-content-card {
    min-width: 0;
    margin: 0 0 24px;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(20, 24, 28, 0.07);
}

/* The final content card defines the bottom of the content column. */
.epic-page-layout__main .epic-content-card:last-child {
    margin-bottom: 0;
}

.epic-page-layout__main .epic-content-card > :first-child {
    margin-top: 0;
}

.epic-page-layout__main .epic-content-card > :last-child {
    margin-bottom: 0;
}

/* Match existing Profile cards on narrow mobile screens. */
@media (max-width: 700px) {
    .epic-page-layout__main .epic-content-card {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* =========================================================
   About content-card sidebar alignment
   Align app promotion with first Gutenberg content card
   ========================================================= */

@media (min-width: 961px) {
    body:not(.home)
    .epic-page-layout:has(> .epic-page-layout__main .epic-content-card)
    > .epic-app-promo-sidebar {
        padding-top: 135px;
        padding-bottom: 0;
    }
}

/* =========================================================
   Shared content-card heading typography
   Match the condensed serif treatment used in profile cards
   ========================================================= */

.epic-page-layout__main
.epic-content-card > h2.wp-block-heading {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    transform: scaleX(var(--epic-condensed-serif-scale));
    transform-origin: left center;
}

/* =========================================================
   Shared content-card footer artwork opacity
   Matches the decorative artwork on event pages
   ========================================================= */

.epic-page-layout__main
.epic-card-footer-artwork img {
    opacity: 0.55;
}


/* Epic Fans — unavailable match comparison card */
.epic-football-match-drawer
.epic-football-compare__section.is-unavailable {
    background: #faf8f6;
    border: 1px solid #ebe1e0;
    border-radius: 14px;
    padding: 22px 20px;
    margin: 10px 0 24px;
}

.epic-football-match-drawer
.epic-football-compare__section.is-unavailable
.epic-football-compare__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #5f514b;
}

.epic-football-match-drawer
.epic-football-compare__section.is-unavailable
.epic-football-compare__note {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    color: #756d68;
}


/* Match drawer — reuse Fixtures competition badge colours */
.epic-football-match-drawer__competition {
    background: var(--competition-bg, #e9d7f3);
    color: var(--competition-fg, #5e2b97);
}


/* Epic Fans — shared Premium account membership card */

.epic-account-membership--card {
    max-width: 520px;
    padding: 24px;
    margin: 16px 0 28px;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
}

.epic-account-membership--card > h4 {
    margin: 0 0 18px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.epic-account-membership__status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 11px;
    margin: 0 0 18px;
    background: #e9f6ed;
    color: #20733e;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
}

.epic-account-membership--card
.epic-account-membership__status strong {
    font-weight: 700;
}

.epic-account-membership--card > p:not(.epic-account-membership__status) {
    margin: 0 0 12px;
    line-height: 1.6;
}

.epic-account-membership__detail-label {
    font-weight: 600;
    margin-right: 8px;
}

.epic-account-membership--card form {
    margin: 16px 0 0;
}

.epic-account-membership__payment-button {
    display: block;
    width: 100%;
    padding: 13px 18px;
    background: var(--epic-accent, #b70e26);
    border: 1px solid transparent;
    border-radius: 7px;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.epic-account-membership__payment-button:hover,
.epic-account-membership__payment-button:focus-visible {
    filter: brightness(0.9);
    color: #fff;
}

.epic-account-membership__cancel-link {
    display: block;
    width: 100%;
    padding: 4px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.epic-account-membership__cancel-link:hover,
.epic-account-membership__cancel-link:focus-visible {
    background: transparent;
    color: #a51d2d;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .epic-account-membership--card {
        padding: 20px 16px;
    }
}


/* Shared fan-property account success confirmation. */
.epic-account-dashboard__notice--success {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    padding: 16px 18px;
    background: #edf7f0;
    border: 1px solid #c6e5ce;
    border-left: 4px solid #27864e;
    border-radius: 8px;
    color: #245c37;
}

.epic-account-dashboard__notice--success strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.epic-account-dashboard__notice--success p {
    margin: 0;
    color: #245c37;
}


/* Shared fan-property login cards. */
.epic-account-login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin: 20px 0 36px;
}

.epic-account-login-card {
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
}

.epic-account-login-card h2 {
    margin: 0 0 16px;
    font-size: 23px;
    line-height: 1.3;
}

.epic-account-login-card p {
    margin: 0 0 18px;
    line-height: 1.6;
}

.epic-account-login-card__intro {
    color: #606b78;
}

#epic-account-loginform p {
    margin: 0 0 18px;
}

#epic-account-loginform label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

#epic-account-loginform .input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #cdd1d5;
    border-radius: 7px;
    font-size: 16px;
}

#epic-account-loginform .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

#epic-account-loginform .login-remember input {
    margin: 0;
}

#epic-account-loginform .button-primary,
.epic-account-login-card__register {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 13px 18px;
    background: var(--epic-accent, #b70e26);
    border: 1px solid transparent;
    border-radius: 7px;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

#epic-account-loginform .button-primary:hover,
#epic-account-loginform .button-primary:focus-visible,
.epic-account-login-card__register:hover,
.epic-account-login-card__register:focus-visible {
    filter: brightness(0.9);
    color: #fff;
}

.epic-account-login-card__help {
    margin: 16px 0 0 !important;
    text-align: center;
    font-size: 14px;
}

.epic-account-login-card__register {
    margin-top: 24px;
}

@media (max-width: 700px) {
    .epic-account-login-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .epic-account-login-card {
        padding: 20px 16px;
    }
}


/* Shared login registration button link fix. */
.epic-account-login-card a.epic-account-login-card__register,
.epic-account-login-card a.epic-account-login-card__register:visited,
.epic-account-login-card a.epic-account-login-card__register:hover,
.epic-account-login-card a.epic-account-login-card__register:focus-visible {
    color: #fff !important;
    text-decoration: none !important;
}


/* Shared login Premium benefits list. */
.epic-account-login-card__benefits {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.epic-account-login-card__benefits li {
    position: relative;
    margin: 0 0 13px;
    padding-left: 27px;
    line-height: 1.5;
}

.epic-account-login-card__benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #27864e;
    font-weight: 700;
    font-size: 17px;
}


/* Epic account password recovery and reset cards */
.epic-account-password-recovery,
.epic-account-password-reset {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0 0 36px;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.045);
}

.epic-account-password-recovery > p,
.epic-account-password-reset > p {
    line-height: 1.65;
}

.epic-account-password-recovery form,
.epic-account-password-reset form {
    margin-top: 24px;
}

.epic-account-password-recovery form > p,
.epic-account-password-reset form > p {
    margin: 0 0 20px;
}

.epic-account-password-recovery form label,
.epic-account-password-reset form label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
    font-size: 15px;
}

.epic-account-password-recovery form input[type="email"],
.epic-account-password-reset form input[type="password"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 11px 14px;
    background: #fff;
    color: #222;
    border: 1px solid #c9cdd2;
    border-radius: 7px;
    font: inherit;
}

.epic-account-password-recovery form input:focus,
.epic-account-password-reset form input:focus {
    border-color: #8c1725;
    outline: 2px solid rgba(140, 23, 37, 0.15);
    outline-offset: 1px;
}

.epic-account-password-recovery form button[type="submit"],
.epic-account-password-reset form button[type="submit"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 20px;
    background: #a71930;
    color: #fff;
    border: 1px solid #a71930;
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.epic-account-password-recovery form button[type="submit"]:hover,
.epic-account-password-reset form button[type="submit"]:hover {
    background: #861225;
    border-color: #861225;
}

.epic-account-password-recovery .epic-account-form__notice,
.epic-account-password-reset .epic-account-form__notice {
    padding: 14px 18px;
    background: #f5f6f7;
    border: 1px solid #e1e3e6;
    border-radius: 7px;
    line-height: 1.6;
}

.epic-account-password-recovery > p:last-child {
    margin-top: 24px;
    margin-bottom: 0;
    text-align: center;
}

@media (max-width: 600px) {
    .epic-account-password-recovery,
    .epic-account-password-reset {
        padding: 25px 22px;
    }
}


/* Password forms: left-aligned half-width controls. */
.epic-account-password-recovery form,
.epic-account-password-reset form {
    width: 50%;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
}

.epic-account-password-recovery > p:last-child {
    width: 50%;
    text-align: center;
}

@media (max-width: 700px) {
    .epic-account-password-recovery form,
    .epic-account-password-reset form,
    .epic-account-password-recovery > p:last-child {
        width: 100%;
    }
}


/* Epic account dashboard two-card layout. */
.epic-account-dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
    margin: 20px 0 36px;
}

.epic-account-dashboard__card {
    min-width: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
    box-sizing: border-box;
}

.epic-account-dashboard__card > h2 {
    margin: 0 0 24px;
    font-size: 23px;
    line-height: 1.3;
}

.epic-account-dashboard__details {
    display: flex;
    flex-direction: column;
}

.epic-account-dashboard__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 24px;
}


/* Match account identity text to Premium membership details. */
.epic-account-dashboard__details .epic-account-dashboard__value {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #1b2630;
}

.epic-account-dashboard__label {
    color: #68717b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.epic-account-dashboard__value {
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.5;
}

.epic-account-dashboard__logout {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #e9e7e5;
}

.epic-account-dashboard__logout a {
    font-weight: 600;
}

/* The existing Premium component lives inside the right card.
   Remove its second border/background without changing its forms. */
.epic-account-dashboard__membership-card
.epic-account-membership--card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.epic-account-dashboard__membership-card
.epic-account-membership--card > h4 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.4;
}

.epic-account-dashboard__membership-card
.epic-account-membership__payment-button {
    width: 100%;
    box-sizing: border-box;
}

.epic-account-dashboard__notice {
    margin-bottom: 24px;
}

@media (max-width: 760px) {
    .epic-account-dashboard__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .epic-account-dashboard__card {
        padding: 24px;
    }

    .epic-account-dashboard__logout {
        margin-top: 12px;
    }
}


/* Epic Premium confirmation card styling. */
.epic-premium-confirmation {
    box-sizing: border-box;
    width: 100%;
    margin: 20px 0 36px;
    padding: 32px 36px;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
}

.epic-premium-confirmation h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.3;
}

.epic-premium-confirmation p {
    margin: 0 0 16px;
    line-height: 1.65;
}

.epic-premium-confirmation__action {
    margin: 26px 0 18px !important;
}

.epic-premium-confirmation a.epic-premium-confirmation__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 24px;
    background: #a71930;
    border: 1px solid #a71930;
    border-radius: 7px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.4;
}

.epic-premium-confirmation a.epic-premium-confirmation__button:hover {
    background: #861225;
    border-color: #861225;
    color: #fff !important;
    text-decoration: none !important;
}

.epic-premium-confirmation__note {
    margin-bottom: 0 !important;
    color: #66717b;
    font-size: 14px;
}

@media (max-width: 600px) {
    .epic-premium-confirmation {
        padding: 24px 22px;
    }

    .epic-premium-confirmation a.epic-premium-confirmation__button {
        width: 100%;
    }
}


/* Shared network account email management. */
.epic-account-email__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-sizing: border-box;
    min-height: 40px;
    margin: -4px 0 24px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid #a71930;
    border-radius: 7px;
    color: #a71930 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.epic-account-email__edit:hover,
.epic-account-email__edit:focus-visible {
    background: #a71930;
    color: #fff !important;
    text-decoration: none !important;
}

.epic-account-email__edit:focus-visible {
    outline: 2px solid #a71930;
    outline-offset: 3px;
}

.epic-account-email__form {
    margin: 0 0 24px;
    padding: 22px;
    background: #faf9f8;
    border: 1px solid #e5e0dd;
    border-radius: 9px;
}

.epic-account-email__form h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.epic-account-email__form p {
    margin: 0 0 17px;
}

.epic-account-email__form label {
    display: block;
    margin: 0 0 7px;
    font-weight: 600;
}

.epic-account-email__form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    font-size: 16px;
    line-height: 1.4;
}

.epic-account-email__explanation {
    color: #66717b;
    font-size: 14px;
    line-height: 1.6;
}

.epic-account-email__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 13px 24px;
    background: #a71930;
    color: #fff;
    border: 1px solid #a71930;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.epic-account-email__button:hover {
    background: #861225;
    border-color: #861225;
    color: #fff;
}

.epic-account-email__cancel {
    display: block;
    margin: 14px 0 0;
    font-weight: 600;
}

.epic-account-email-confirmation {
    width: 100%;
}

.epic-account-email-confirmation p {
    margin: 0 0 20px;
    line-height: 1.65;
}

.epic-account-email__back {
    margin: 24px 0 0 !important;
}

@media (max-width: 600px) {
    .epic-account-email__form {
        padding: 18px;
    }

    .epic-account-email__button {
        width: 100%;
    }

    .epic-account-email__cancel {
        margin-top: 14px;
        margin-left: 0;
    }
}


/* Shared account email-change error card. */
.epic-account-email__error {
    margin: 0 0 20px;
    padding: 15px 17px;
    background: #fff1f2;
    border: 1px solid #e7a2ac;
    border-left: 4px solid #b42339;
    border-radius: 8px;
    color: #922035;
}

.epic-account-email__error strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
}

.epic-account-email__error p {
    margin: 0;
    color: #922035;
    font-size: 15px;
    line-height: 1.55;
}


/* Shared account password-change button alignment. */
.epic-account-password__edit {
    margin-top: -10px;
}

.epic-account-password__form {
    margin-top: 0;
}


/* Epic Fans branded login error card. */
.epic-account-login__error {
    margin: 0 0 22px;
    padding: 15px 17px;
    background: #fff1f2;
    border: 1px solid #e7a2ac;
    border-left: 4px solid #b42339;
    border-radius: 8px;
    color: #922035;
}

.epic-account-login__error strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
}

.epic-account-login__error p {
    margin: 0 !important;
    color: #922035;
    font-size: 15px;
    line-height: 1.55;
}


/* Shared My Account paired action buttons. */

/* Account details: edit email and change password. */
.epic-account-dashboard__account-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
    min-width: 0;
}

.epic-account-dashboard__account-actions > .epic-account-email__edit {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 10px 8px;
    text-align: center;
}

.epic-account-dashboard__account-actions > .epic-account-email__form {
    flex: 1 1 100%;
    min-width: 0;
    margin: 0;
}

/* Premium membership: Stripe portal buttons. */
.epic-account-membership--card .epic-account-membership__portal-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
    min-width: 0;
}

.epic-account-membership--card .epic-account-membership__portal-actions > form {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.epic-account-dashboard__membership-card
.epic-account-membership__portal-actions
.epic-account-membership__payment-button {
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 11px 9px;
    font-size: 14px;
    line-height: 1.35;
}

/* Narrow screens: stack buttons with comfortable spacing. */
@media (max-width: 520px) {
    .epic-account-dashboard__account-actions,
    .epic-account-membership--card .epic-account-membership__portal-actions {
        flex-direction: column;
    }

    .epic-account-dashboard__account-actions > .epic-account-email__edit,
    .epic-account-membership--card .epic-account-membership__portal-actions > form {
        flex: 0 0 auto;
    }

    .epic-account-dashboard__membership-card
    .epic-account-membership__portal-actions
    .epic-account-membership__payment-button {
        min-height: 44px;
    }
}


/* Existing Premium member registration-page confirmation. */
.epic-billing-existing-premium {
    max-width: 700px;
    margin: 20px auto 35px;
    padding: 36px 32px;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
}

.epic-billing-existing-premium__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e8f6ed;
    color: #16803c;
    font-size: 30px;
    font-weight: 700;
}

.epic-billing-existing-premium h2 {
    margin: 0 0 16px;
    color: #151c23;
    font-size: 26px;
    line-height: 1.3;
}

.epic-billing-existing-premium > p {
    margin: 0 auto 18px;
    max-width: 510px;
    color: #526171;
    font-size: 16px;
    line-height: 1.65;
}

.epic-billing-existing-premium__status strong {
    display: inline-block;
    padding: 8px 14px;
    background: #e8f6ed;
    border-radius: 25px;
    color: #16803c;
    font-size: 14px;
}

.epic-billing-existing-premium a.epic-billing-existing-premium__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 8px;
    padding: 12px 28px;
    background: var(--epic-accent, #b70e26);
    border-radius: 7px;
    box-sizing: border-box;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
}

.epic-billing-existing-premium a.epic-billing-existing-premium__button:hover,
.epic-billing-existing-premium a.epic-billing-existing-premium__button:focus-visible {
    filter: brightness(0.9);
    color: #fff !important;
}

@media (max-width: 520px) {
    .epic-billing-existing-premium {
        padding: 28px 20px;
    }

    .epic-billing-existing-premium h2 {
        font-size: 23px;
    }

    .epic-billing-existing-premium a.epic-billing-existing-premium__button {
        width: 100%;
    }
}


/* Guest My Account card. */
.epic-account-login-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

.epic-account-dashboard__guest-card {
    min-height: 0;
}

.epic-account-dashboard__guest-help {
    margin-top: 18px;
    text-align: center;
}

/* EPIC PREMIUM BENEFITS CARD POLISH - CORRECTED */

/* Match the white registration and order cards. */
body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__benefits {
    border-radius: 12px;
}

/* Create more breathing room above both columns. */
body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__title {
    margin-bottom: 32px;
}

/* Relax the benefit descriptions without changing font size. */
body .epic-page-layout__main
.epic-billing-checkout-preview
.epic-billing-checkout-preview__benefits
.epic-premium-benefit__content p {
    line-height: 1.5;
}


/* Epic Fans utility bar account navigation - 20261028. */
.epic-utility-bar__inner {
    justify-content: space-between;
}

.epic-utility-bar__account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    min-width: 0;
    font-family: Geist, Arial, sans-serif;
}

.epic-utility-bar__account a {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.epic-utility-bar__account a:hover,
.epic-utility-bar__account a:focus-visible {
    color: #cbd2d8;
    text-decoration: underline;
}

.epic-utility-bar__separator {
    color: #87919b;
    font-size: 12px;
}


/* Shared Premium registration validation */
.epic-billing-registration-form
.epic-registration-field-error {
    display: block;
    margin-top: 6px;
    color: #a51d2a;
    font-size: 13px;
    line-height: 1.45;
}

.epic-billing-registration-form
.epic-registration-field-error[hidden] {
    display: none;
}

.epic-billing-registration-form
[aria-invalid="true"] {
    border-color: #bd2633 !important;
    box-shadow: 0 0 0 1px #bd2633;
}

.epic-billing-registration-form
.epic-registration-password-toggle {
    display: inline-block;
    width: auto;
    margin-top: 6px;
    padding: 2px 0;
    background: transparent;
    border: 0;
    color: #a51d2a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.epic-billing-registration-form
.epic-registration-password-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* Inline registration password visibility icons */
.epic-billing-registration-form
.epic-registration-password-wrap {
    position: relative;
    width: 100%;
}

.epic-billing-registration-form
.epic-registration-password-wrap > input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 48px !important;
}

.epic-billing-registration-form
.epic-registration-password-wrap
.epic-registration-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    text-decoration: none;
}

.epic-billing-registration-form
.epic-registration-password-wrap
.epic-registration-password-toggle:hover {
    background: #f1f3f5;
    color: #273444;
}

.epic-billing-registration-form
.epic-registration-password-wrap
.epic-registration-password-toggle:focus-visible {
    outline: 2px solid #c31e2b;
    outline-offset: 1px;
}

.epic-billing-registration-form
.epic-registration-password-toggle svg {
    display: block;
    flex: none;
}

.epic-billing-registration-form
.epic-registration-eye-slash[hidden] {
    display: none;
}


/* Account Explore navigation cards */
.epic-account-explore {
    margin: 28px 0 40px;
}

.epic-account-explore > h2 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.3;
}

.epic-account-explore__intro {
    margin: 0 0 22px;
    color: #68717b;
    line-height: 1.6;
}

.epic-account-explore__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.epic-account-explore__card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    min-height: 126px;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
    color: #1b2630;
    text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.epic-account-explore__card:hover,
.epic-account-explore__card:focus-visible {
    border-color: #c31e2b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.epic-account-explore__icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #f9eeee;
    color: #a91824;
}

.epic-account-explore__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.epic-account-explore__content strong {
    font-size: 16px;
    line-height: 1.35;
    color: #1b2630;
}

.epic-account-explore__content > span {
    font-size: 13px;
    line-height: 1.55;
    color: #68717b;
}

.epic-account-explore__arrow {
    flex: 0 0 auto;
    font-size: 19px;
    color: #a91824;
}

@media (max-width: 1000px) {
    .epic-account-explore__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .epic-account-explore__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .epic-account-explore__card {
        min-height: 0;
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-account-explore__card {
        transition: none;
    }
}



/* Account Explore navigation cards */
.epic-account-explore__card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.epic-account-explore__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3f5;
}

.epic-account-explore__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.epic-account-explore__card:hover .epic-account-explore__image {
    transform: scale(1.025);
}

.epic-account-explore__content {
    padding: 18px 20px 6px;
}

.epic-account-explore__arrow {
    align-self: flex-end;
    margin: auto 20px 16px;
}

.epic-account-explore__card > .epic-account-explore__icon {
    margin: 20px 20px 0;
}

@media (prefers-reduced-motion: reduce) {
    .epic-account-explore__image {
        transition: none;
    }
}

/* Account Explore section spacing adjustment */
.epic-account-dashboard__grid:has(+ .epic-account-explore) {
    margin-bottom: 56px;
}

.epic-account-dashboard__grid + .epic-account-explore {
    margin-top: 0;
}


/* Epic Fans — Premium account upgrade offer */

.epic-account-premium-offer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.epic-account-premium-offer > h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.epic-account-premium-offer > p:not(
    .epic-account-premium-offer__secure
) {
    margin: 0;
    line-height: 1.65;
    color: #565656;
}

.epic-account-premium-offer__price {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
    padding: 17px 18px;
    background: #f7f6f5;
    border: 1px solid #e8e5e2;
    border-radius: 9px;
}

.epic-account-premium-offer__price > span {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.epic-account-premium-offer__price > strong {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 750;
    white-space: nowrap;
}

.epic-account-premium-offer__price > small {
    flex-basis: 100%;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.epic-account-membership--card
.epic-account-premium-offer > form {
    margin: 2px 0 0;
}

.epic-account-premium-offer__secure {
    margin: 0;
    text-align: center;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .epic-account-premium-offer__price {
        padding: 15px;
    }

    .epic-account-premium-offer__price > strong {
        font-size: 18px;
    }
}


/* Account Explore: text-first screenshot card layout */
.epic-account-explore__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.epic-account-explore__top {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
    min-height: 116px;
    padding: 20px;
    box-sizing: border-box;
}

.epic-account-explore__top .epic-account-explore__icon {
    flex: 0 0 40px;
    margin: 0;
}

.epic-account-explore__top .epic-account-explore__content {
    flex: 1 1 auto;
    padding: 0;
}

.epic-account-explore__top .epic-account-explore__arrow {
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0;
}

.epic-account-explore__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: auto;
    overflow: hidden;
}

.epic-account-explore__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .epic-account-explore__top {
        min-height: 0;
        padding: 17px;
    }
}


/* Account Explore: card visual separation */
.epic-account-explore__card {
    border: 1px solid #d9dde2;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 30, 40, .06);
}

.epic-account-explore__top {
    background: #f5f6f8;
    border-bottom: 2px solid #e1e4e8;
}

.epic-account-explore__media {
    background: #fff;
}

.epic-account-explore__card:hover,
.epic-account-explore__card:focus-visible {
    border-color: #c31e2b;
    box-shadow: 0 6px 18px rgba(20, 30, 40, .12);
}

/* Epic mobile account navigation */
.epic-mobile-account-nav {
    display: none;
}

@media (max-width: 800px) {
    .site-nav .epic-mobile-account-nav {
        display: block;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 2px solid #D7DBDE;
    }

    .epic-mobile-account-nav__heading {
        padding: 8px 0;
        color: #606970;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .site-nav .epic-mobile-account-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 0;
        color: #30383D;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

    .site-nav .epic-mobile-account-nav a:hover,
    .site-nav .epic-mobile-account-nav a:focus {
        color: var(--property-accent, #B90000);
    }
}


/* Standings LIVE TABLE pill and information card. */
.epic-football-standings__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.epic-standings-live-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    background: #69717b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.2;
    cursor: pointer;
}

.epic-standings-live-pill.is-live {
    background: #d71920;
}

.epic-standings-live-pill__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #c2c6cb;
}

.epic-standings-live-pill.is-live
.epic-standings-live-pill__dot {
    background: #fff;
}

.epic-standings-live-pill.is-live
.epic-standings-live-pill__dot {
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

.epic-standings-live-pill:focus-visible {
    outline: 3px solid #2876c7;
    outline-offset: 3px;
}

.epic-standings-live-card {
    position: fixed;
    z-index: 100000;
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    padding: 17px;
    border: 1px solid #e4ddd6;
    border-radius: 12px;
    background: #fff;
    color: #252525;
    box-shadow: 0 10px 32px rgba(0,0,0,.18);
    font-size: 13px;
    line-height: 1.55;
}

.epic-standings-live-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.epic-standings-live-card__heading strong {
    font-size: 15px;
}

.epic-standings-live-card__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.epic-standings-live-card p {
    margin: 0 0 10px;
}

.epic-standings-live-card__status {
    margin-bottom: 0 !important;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .epic-standings-live-pill.is-live
    .epic-standings-live-pill__dot {
        animation: none;
    }
}

/* Epic mobile navigation backdrop */
@media (max-width: 800px) {
    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 990;
        background: rgba(0, 0, 0, 0.5);
        pointer-events: none;
    }

    body.nav-open .site-header {
        position: sticky;
        z-index: 1100;
    }
}

/* Blinking red dot in the LIVE TABLE information card. */
.epic-standings-live-card__live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #d71920;
    vertical-align: 1px;
    animation: epic-football-live-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .epic-standings-live-card__live-dot {
        animation: none;
    }
}


/* Mobile LIVE TABLE pill beside Standings heading. */
@media (max-width: 700px) {

    body:has(.epic-football-standings__toolbar)
    .epic-page-layout__main {
        position: relative;
    }

    .epic-football-standings__toolbar {
        display: contents;
    }

    .epic-football-standings__toolbar
    .epic-football-standings__nav {
        margin-bottom: 16px;
    }

    .epic-football-standings__toolbar
    .epic-standings-live-pill {
        position: absolute;
        top: 24px;
        right: 0;
        z-index: 2;
        margin: 0;
        padding: 7px 11px;
        font-size: 10px;
    }
}


/* Epic dynamic primary More account links */
@media (max-width: 800px) {
    .site-nav__list .epic-account-dynamic-menu-item {
        display: none !important;
    }
}


/* League history heading and comparison selector */
.epic-football-team-stats__history {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 12px;
}

.epic-football-team-stats__history > .epic-football-team-stats__heading {
    margin: 0;
    flex: 1 1 auto;
}

.epic-football-team-stats__history-compare {
    flex: 0 0 auto;
    margin: 0;
}

.epic-football-team-stats__history-compare label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.epic-football-team-stats__history-compare select {
    width: auto;
    min-width: 150px;
    max-width: 210px;
    padding: 8px 26px 8px 10px;
    font-size: 13px;
}

.epic-football-team-stats__history-chart,
.epic-football-team-stats__history-note {
    flex: 0 0 100%;
}

@media (max-width: 700px) {
    .epic-football-team-stats__history-compare {
        margin-left: 14px;
        margin-right: 14px;
    }
}

/* Team Statistics — keep competition and season together */
.epic-football-team-stats
.epic-football-standings__selectors {
    justify-content: flex-start;
    gap: 12px;
}

/* Team Statistics — matching comparison dropdown */
.epic-football-team-stats__history-compare select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 150px;
    max-width: 210px;
    min-height: 42px;
    padding: 11px 38px 11px 14px;
    border: 1px solid #e0dbd4;
    border-radius: 9px;
    background-color: #fff;
    color: #252525;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23555555' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px auto;
}

.epic-football-team-stats__history-compare select:focus-visible {
    outline: 2px solid #d23d35;
    outline-offset: 2px;
}

/* Team Statistics — keep competition and season together */
.epic-football-team-stats
.epic-football-standings__selectors {
    justify-content: flex-start;
    gap: 12px;
}

/* Team Statistics — matching comparison dropdown */
.epic-football-team-stats__history-compare select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 150px;
    max-width: 210px;
    min-height: 42px;
    padding: 11px 38px 11px 14px;
    border: 1px solid #e0dbd4;
    border-radius: 9px;
    background-color: #fff;
    color: #252525;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23555555' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px auto;
}

.epic-football-team-stats__history-compare select:focus-visible {
    outline: 2px solid #d23d35;
    outline-offset: 2px;
}

/* League Position Over Time — shared football statistics chart */

.epic-page-layout__main
.epic-football-team-stats > .epic-football-team-stats__history {
    padding-top: 6px;
    padding-bottom: 38px;
}

.epic-football-team-stats__history-chart {
    position: relative;
    width: 100%;
    min-width: 0;
}

.epic-football-team-stats__history svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.epic-football-team-stats__history .epic-history-grid {
    stroke: #e9e3dd;
    stroke-width: 1;
}

.epic-football-team-stats__history .epic-history-axis {
    fill: #77716c;
    font-size: 12px;
}

.epic-football-team-stats__history .epic-history-line {
    fill: none;
    stroke: #d23d35;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-football-team-stats__history .epic-history-point {
    fill: #d23d35;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    outline: none;
}

.epic-football-team-stats__history .epic-history-point:hover,
.epic-football-team-stats__history .epic-history-point:focus,
.epic-football-team-stats__history .epic-history-point.is-active {
    fill: #aa241e;
    stroke: #fff;
    stroke-width: 3;
}

.epic-football-team-stats__history .epic-history-hit {
    fill: transparent;
    cursor: pointer;
}

.epic-football-team-stats__history-tooltip {
    position: absolute;
    z-index: 5;
    max-width: min(250px, 90%);
    padding: 12px 14px;
    background: #252525;
    color: #fff;
    border-radius: 9px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none;
    transform: translate(-50%, -100%);
}

.epic-football-team-stats__history-tooltip[hidden] {
    display: none;
}

.epic-football-team-stats__history-note {
    margin: 12px 0 0;
    color: #77716c;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .epic-page-layout__main
    .epic-football-team-stats > .epic-football-team-stats__history {
        padding: 18px 0 26px;
        margin-bottom: 22px;
        background: #fff;
        border: 1px solid #e4ddd6;
        border-radius: 12px;
    }

    .epic-football-team-stats__history > .epic-football-team-stats__heading,
    .epic-football-team-stats__history > .epic-football-team-stats__history-chart,
    .epic-football-team-stats__history > .epic-football-team-stats__history-note {
        margin-left: 14px;
        margin-right: 14px;
    }

    .epic-football-team-stats__history-tooltip {
        font-size: 12px;
        padding: 10px 12px;
    }
}


/* League history tooltip — compact team badges */

.epic-football-team-stats__history-tooltip {
    width: 250px;
    max-width: min(250px, 90%);
    box-sizing: border-box;
}

.epic-history-tooltip__header {
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.epic-history-tooltip__matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.epic-history-tooltip__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
}

.epic-history-tooltip__badge {
    display: block;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    flex: 0 0 28px;
}

.epic-history-tooltip__score {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.epic-history-tooltip__footer {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
}

.epic-history-tooltip__warning {
    margin-top: 6px;
    text-align: center;
    font-size: 11px;
    color: #ffd39b;
}

/* Epic Fans shared archive search interface. */
.epic-fans-search__toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.epic-fans-search__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--property-accent, #c51f2d);
    border-radius: 9px;
    background: #fff;
    color: var(--property-accent, #c51f2d);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.epic-fans-search__open[hidden],
.epic-fans-search__drawer[hidden] {
    display: none !important;
}

.epic-fans-search__open:hover,
.epic-fans-search__open:focus-visible {
    background: #f8f8f8;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.epic-fans-search__drawer {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    justify-content: flex-end;
    font-family: Geist, Arial, sans-serif;
}

.epic-fans-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.epic-fans-search__panel {
    position: relative;
    width: min(100%, 560px);
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #252525;
    box-shadow: -12px 0 40px rgba(0,0,0,.16);
    overflow: hidden;
}

.epic-fans-search__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--property-accent, #c51f2d);
    background: var(--property-accent, #c51f2d);
}

.epic-fans-search__header h2 {
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 750;
}

.epic-fans-search__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.epic-fans-search__close:hover {
    background: #f3f3f3;
}

/*
 * Reuse the established event-drawer X centring technique.
 */
.epic-fans-search__close span {
    display: grid;
    place-items: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    transform: translateY(-1px);
}

.epic-fans-search__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    overscroll-behavior: contain;
}

.epic-fans-search__body label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.epic-fans-search__query {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #c9cfd4;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 16px;
}

.epic-fans-search__query:focus {
    outline: 2px solid var(--property-accent, #c51f2d);
    outline-offset: 2px;
}

.epic-fans-search__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.epic-fans-search__suggestion {
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    padding: 7px 12px;
    background: #f7f7f7;
    color: #424242;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.epic-fans-search__suggestion:hover {
    border-color: var(--property-accent, #c51f2d);
}

.epic-fans-search__results {
    margin-top: 22px;
}

.epic-fans-search__result {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 17px 4px;
    border: 0;
    border-bottom: 1px solid #e9e9e9;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.epic-fans-search__result:hover,
.epic-fans-search__result:focus-visible {
    background: #f8f8f8;
}

.epic-fans-search__result-date {
    display: block;
    margin-bottom: 6px;
    color: #737373;
    font-size: 12px;
    font-weight: 650;
}

.epic-fans-search__result-title {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 750;
}

.epic-fans-search__result-preview {
    display: block;
    margin-top: 7px;
    color: #626262;
    font-size: 13px;
    line-height: 1.6;
}

.epic-fans-search__results mark {
    padding: 0;
    border-radius: 2px;
    background: #fff0aa;
    color: inherit;
}

.epic-fans-search__status {
    margin: 20px 0;
    color: #686868;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .epic-fans-search__panel {
        width: 100%;
    }

    .epic-fans-search__header {
        padding: 15px 18px;
    }

    .epic-fans-search__body {
        padding: 18px;
    }
}

/* Shared primary-navigation archive Search icon. */

/* The original Timeline toolbar is empty after button relocation. */
.epic-fans-search__toolbar:empty {
    display: none;
}

.site-nav__list > .epic-fans-search__nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-nav__list .epic-fans-search__nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 7px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #FFFFFF;
    cursor: pointer;
}

.site-nav__list .epic-fans-search__nav-button:hover,
.site-nav__list .epic-fans-search__nav-button:focus-visible {
    background: rgba(255,255,255,.14);
    color: #FFFFFF;
    box-shadow: none;
}

.site-nav__list .epic-fans-search__nav-button svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.site-nav__list .epic-fans-search__nav-button[hidden] {
    display: none !important;
}

@media (max-width: 800px) {
    .site-nav__list > .epic-fans-search__nav-item {
        display: block;
        border-bottom: 1px solid #E1E4E6;
    }

    .site-nav__list .epic-fans-search__nav-button {
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 12px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        text-align: left;
        color: #30383D;
    }

    .site-nav__list .epic-fans-search__nav-button span.screen-reader-text {
        position: static !important;
        display: inline !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        clip: auto !important;
        clip-path: none !important;
        overflow: visible !important;
        white-space: normal !important;
        font-size: 16px;
        font-weight: 600;
    }
}

/* === Shared event category icon key === */

.epic-fans-category-key[hidden] {
    display: none !important;
}

.epic-fans-category-key {
    position: fixed;
    z-index: 100100;
    width: min(610px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #262626;
    border: 1px solid #dedede;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
    font-family: inherit;
}

.epic-fans-category-key__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 12px 18px;
    background: var(--property-accent, #444);
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
}

.epic-fans-category-key__close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font: inherit;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.epic-fans-category-key__close span {
    display: grid;
    place-items: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    transform: translateY(-1px);
}

.epic-fans-category-key__close:hover {
    background: rgba(255, 255, 255, .25);
}

.epic-fans-category-key__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    overscroll-behavior: contain;
}

.epic-fans-category-key__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.3;
}

.epic-fans-category-key__row.is-active {
    background: color-mix(
        in srgb,
        var(--category-key-color) 12%,
        white
    );
    border-color: var(--category-key-color);
    font-weight: 750;
}

.epic-fans-category-key__icon {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: transparent;
    color: var(--category-key-color);
}

.epic-fans-category-key__icon svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.epic-fans-category-key__label {
    flex: 1;
    min-width: 0;
}

.epic-fans-category-key__description {
    flex: 0 0 auto;
    padding: 12px 20px 15px;
    border-top: 1px solid #e8e8e8;
    background: #f8f9fb;
}

.epic-fans-category-key__description-title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.epic-fans-category-key__description-text {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

[data-epic-category-key] {
    cursor: help;
}

[data-epic-category-key]:focus-visible {
    outline: 3px solid var(--event-accent, #555);
    outline-offset: 3px;
}

/*
 * Mobile/touch: use a compact centred popup rather than
 * the previous oversized bottom sheet.
 */
@media (hover: none), (pointer: coarse) {
    .epic-fans-category-key:not([hidden]) {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%);
        width: min(92vw, 460px);
        max-height: 82dvh;
        border-radius: 12px;
    }

    .epic-fans-category-key__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3px;
        overflow-y: auto;
        padding: 9px;
    }

    .epic-fans-category-key__row {
        gap: 6px;
        padding: 7px 5px;
        font-size: 11px;
        line-height: 1.3;
    }

    .epic-fans-category-key__icon {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .epic-fans-category-key__icon svg {
        width: 17px;
        height: 17px;
    }

    .epic-fans-category-key__description {
        padding: 10px 14px 12px;
    }

    [data-epic-category-key] {
        cursor: pointer;
        touch-action: manipulation;
    }
}


/* EPIC FANS FREE/PREMIUM MEMBERSHIP SELECTOR - 20261102 */

.epic-membership-selector {
    margin: 0 0 32px;
    font-family: Geist, Arial, sans-serif;
}

.epic-membership-selector > h2 {
    margin: 0 0 20px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.3;
    text-align: center;
}

.epic-membership-selector__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.epic-membership-selector__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 2px solid #e5e0dd;
    border-radius: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.epic-membership-selector__card:hover {
    border-color: var(--property-accent, #C51F2D);
}

.epic-membership-selector__card.is-selected {
    border-color: var(--property-accent, #C51F2D);
    box-shadow: 0 0 0 2px color-mix(
        in srgb,
        var(--property-accent, #C51F2D) 14%,
        transparent
    );
}

.epic-membership-selector__card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.epic-membership-selector__price {
    margin: 0 0 14px;
    color: var(--property-accent, #C51F2D);
    font-size: 23px;
    font-weight: 700;
}

.epic-membership-selector__price span {
    color: #68717b;
    font-size: 14px;
    font-weight: 500;
}

.epic-membership-selector__card > p:not(
    .epic-membership-selector__price
) {
    margin: 0 0 20px;
    color: #555f69;
    line-height: 1.6;
}

.epic-membership-selector__choose {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 13px 16px;
    border: 1px solid var(--property-accent, #C51F2D);
    border-radius: 7px;
    background: var(--property-accent, #C51F2D);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.epic-membership-selector__choose:hover {
    filter: brightness(0.92);
}

.epic-membership-selector__choose:focus-visible {
    outline: 3px solid var(--property-accent, #C51F2D);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .epic-membership-selector__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .epic-membership-selector__card {
        padding: 20px;
    }
}


/* EPIC FANS FREE MEMBERSHIP REGISTRATION FORM - 20261102 */

.epic-membership-registration [hidden] {
    display: none !important;
}

.epic-free-registration {
    max-width: 650px;
    margin: 28px auto 36px;
    padding: 30px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
    font-family: Geist, Arial, sans-serif;
}

.epic-free-registration > h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

.epic-free-registration > p {
    color: #555f69;
    line-height: 1.6;
}

.epic-free-registration__form {
    margin-top: 24px;
}

.epic-free-registration__form > p {
    margin: 0 0 20px;
}

.epic-free-registration__form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.epic-free-registration__form input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #c7cdd3;
    border-radius: 7px;
    background: #fff;
    color: #273444;
    font: inherit;
}

.epic-free-registration__form input:focus-visible {
    outline: 2px solid var(--property-accent, #C51F2D);
    outline-offset: 2px;
}

.epic-free-registration__form button[type="submit"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 7px;
    background: var(--property-accent, #C51F2D);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.epic-free-registration__form button[type="submit"]:hover {
    filter: brightness(0.92);
}

.epic-free-registration__form button[type="submit"]:focus-visible {
    outline: 3px solid var(--property-accent, #C51F2D);
    outline-offset: 3px;
}

.epic-free-registration__notice {
    margin: 20px 0;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 8px;
    line-height: 1.5;
}

.epic-free-registration__notice p {
    margin: 0;
}

.epic-free-registration__notice--success {
    background: #eef8f0;
    border-color: #8ec69b;
    color: #20582d;
}

.epic-free-registration__notice--error {
    background: #fff5f5;
    border-color: #d9a3a6;
    color: #831c24;
}

@media (max-width: 640px) {
    .epic-free-registration {
        padding: 20px;
        margin-top: 20px;
    }
}


/* EPIC FREE MEMBERSHIP CARD ALIGNMENT AND HEADING - 20261102 */

.epic-free-membership-layout
.epic-billing-checkout-preview__title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.epic-free-membership-layout__heading-icon {
    display: block;
    flex: 0 0 40px;
    color: var(--property-accent, #C51F2D);
}

.epic-free-membership-layout
.epic-billing-checkout-preview__columns {
    align-items: start;
}

.epic-free-membership-layout
.epic-billing-checkout-preview__right
.epic-free-registration {
    margin-top: 0;
    width: 100%;
    max-width: none;
}


/* EPIC FULL-CARD MEMBERSHIP SELECTION - 20261102 */

.epic-membership-selector__card {
    position: relative;
    padding-right: 55px;
}

.epic-membership-selector__card
.epic-membership-selector__card-button {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
    filter: none;
}

.epic-membership-selector__card
.epic-membership-selector__card-button:hover {
    background: transparent;
    filter: none;
}

.epic-membership-selector__card
.epic-membership-selector__card-button:focus-visible {
    outline: 3px solid var(--property-accent, #C51F2D);
    outline-offset: 3px;
}

.epic-membership-selector__card
.epic-membership-selector__card-button::after {
    content: "";
    position: absolute;
    top: 23px;
    right: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 2px solid #b9bec5;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.epic-membership-selector__card.is-selected
.epic-membership-selector__card-button::after {
    content: "✓";
    border-color: var(--property-accent, #C51F2D);
    background: var(--property-accent, #C51F2D);
}

.epic-membership-selector__card:has(
    .epic-membership-selector__card-button:focus-visible
) {
    border-color: var(--property-accent, #C51F2D);
}

/* EPIC ACCOUNT PREMIUM OFFER TIGHTENING - 3N.12F.12A */

.epic-account-premium-offer h3 {
    margin: 0 0 10px;
}

.epic-account-premium-offer > p:not(.epic-account-premium-offer__secure) {
    margin: 0 0 14px;
}

.epic-account-premium-offer form {
    margin: 0;
}

.epic-account-premium-offer form p {
    margin: 0 0 14px;
}

.epic-account-premium-offer label {
    display: inline-block;
    margin-bottom: 8px;
}

.epic-account-premium-offer__price {
    margin: 12px 0 14px;
    padding: 14px 16px;
}

.epic-account-premium-offer__price > small {
    margin-top: 6px;
}

.epic-account-premium-offer .epic-account-membership__payment-button {
    margin-top: 2px;
}

.epic-account-premium-offer__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0;
}

.epic-account-premium-offer__secure::before {
    content: "🔒";
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 520px) {
    .epic-account-premium-offer__price {
        padding: 13px 14px;
    }
}

/* EPIC ACCOUNT PREMIUM OFFER COMPACT UPGRADE - 3N.12F.12B */

/* Reduce the vertical gaps between the offer sections. */
.epic-account-premium-offer {
    gap: 9px;
}

/* Keep the country selector close to the introductory text. */
.epic-account-premium-offer .epic-membership-upgrade {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.epic-account-premium-offer
.epic-membership-upgrade__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.epic-account-premium-offer
.epic-membership-upgrade__form > p {
    margin: 0;
}

.epic-account-premium-offer
.epic-membership-upgrade__form label {
    display: block;
    margin: 0 0 4px;
}

/* Compact the country-selection field. */
.epic-account-premium-offer
.epic-membership-upgrade__form select {
    width: 100%;
    min-height: 40px;
    margin: 0;
}

/* Target the actual pricing card, not the old Premium preview. */
.epic-account-premium-offer
.epic-membership-upgrade
.epic-billing-checkout-preview__order {
    margin: 0;
    padding: 10px 14px;
}

/* Reduce whitespace inside the price breakdown. */
.epic-account-premium-offer
.epic-membership-upgrade
.epic-billing-pricing-status {
    margin: 0;
}

.epic-account-premium-offer
.epic-membership-upgrade
.epic-billing-checkout-preview__order-table {
    margin: 2px 0 0;
}

.epic-account-premium-offer
.epic-membership-upgrade
.epic-billing-checkout-preview__order-table th,
.epic-account-premium-offer
.epic-membership-upgrade
.epic-billing-checkout-preview__order-table td {
    padding: 6px 8px;
}

/* Reduce the space around the renewal note and upgrade button. */
.epic-account-premium-offer
.epic-membership-upgrade__form > p:not(
    .epic-billing-checkout-preview__field
) {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.epic-account-premium-offer
.epic-membership-upgrade__form button {
    margin: 0;
}

/* Secure checkout label with the actual SVG lock icon. */
.epic-account-premium-offer__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
}

.epic-account-premium-offer__secure svg {
    flex: 0 0 16px;
    display: block;
}

.epic-account-premium-offer__secure::before {
    content: none;
}

@media (max-width: 520px) {
    .epic-account-premium-offer
    .epic-membership-upgrade
    .epic-billing-checkout-preview__order {
        padding: 9px 11px;
    }

    .epic-account-premium-offer
    .epic-membership-upgrade
    .epic-billing-checkout-preview__order-table th,
    .epic-account-premium-offer
    .epic-membership-upgrade
    .epic-billing-checkout-preview__order-table td {
        padding: 6px 5px;
    }
}

/* EPIC ACCOUNT PREMIUM UPGRADE SPACING TWEAK - 3N.12F.12C */

.epic-account-premium-offer .epic-membership-upgrade
.epic-billing-checkout-preview__order {
    margin-top: 5px;
}

.epic-account-premium-offer
.epic-membership-upgrade__form > button {
    margin-top: 5px;
}

/* Shared Free and Premium password visibility positioning */

.epic-membership-registration__free
.epic-registration-password-wrap {
    position: relative;
    width: 100%;
}

.epic-membership-registration__free
.epic-registration-password-wrap > input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 48px !important;
}

.epic-membership-registration__free
.epic-registration-password-wrap
.epic-registration-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    text-decoration: none;
}

.epic-membership-registration__free
.epic-registration-password-wrap
.epic-registration-password-toggle:hover {
    background: #f1f3f5;
    color: #273444;
}

.epic-membership-registration__free
.epic-registration-password-wrap
.epic-registration-password-toggle:focus-visible {
    outline: 2px solid #c31e2b;
    outline-offset: 1px;
}

.epic-membership-registration__free
.epic-registration-password-toggle svg {
    display: block;
    flex: none;
}

.epic-membership-registration__free
.epic-registration-eye-slash[hidden] {
    display: none;
}

/* EPIC FREE BENEFITS SPACING - 3N.12F.12G */
.epic-free-membership-layout
.epic-billing-checkout-preview__benefits > h3 {
    margin-bottom: 18px;
}

/* EPIC MEMBERSHIP COMPARISON TABLE - 3N.12F.18 */
.epic-membership-comparison {
    width: 100%;
    margin: 28px 0 20px;
}

.epic-membership-comparison > h2 {
    margin: 0 0 20px;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.25;
    text-align: center;
}

.epic-membership-comparison__scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.epic-membership-comparison__scroll:focus-visible {
    outline: 2px solid #c40000;
    outline-offset: 3px;
}

.epic-membership-comparison__table {
    width: 100%;
    min-width: 700px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.5;
}

.epic-membership-comparison__table th,
.epic-membership-comparison__table td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: break-word;
}

.epic-membership-comparison__table th:first-child {
    width: 31%;
    text-align: left;
}

.epic-membership-comparison__table thead th {
    padding-top: 17px;
    padding-bottom: 17px;
    background: #f7f7f7;
    color: #151515;
    font-weight: 700;
}

.epic-membership-comparison__table tbody th {
    font-weight: 600;
}

.epic-membership-comparison__table th:last-child,
.epic-membership-comparison__table td:last-child {
    background: #fff4f5;
}

.epic-membership-comparison__table thead th:last-child {
    background: #fce7e9;
    color: #b70015;
}

.epic-membership-comparison__table tfoot th,
.epic-membership-comparison__table tfoot td {
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 0;
    background: #faf8f7;
}

.epic-membership-comparison__table tfoot th {
    font-weight: 700;
}

.epic-membership-comparison__table tfoot td:last-child {
    background: #fff4f5;
}

.epic-membership-comparison__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
}

.epic-membership-comparison__button:hover,
.epic-membership-comparison__button:focus-visible {
    text-decoration: none;
    filter: brightness(0.95);
}

.epic-membership-comparison__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.epic-membership-comparison__button--free {
    background: #fff;
    border: 1px solid #c40000;
    color: #c40000;
}

.epic-membership-comparison__button--premium {
    background: #c40000;
    border: 1px solid #c40000;
    color: #fff;
}

.epic-membership-comparison__table tbody tr:last-child th,
.epic-membership-comparison__table tbody tr:last-child td {
    border-bottom: 1px solid #e8e8e8;
}

@media (max-width: 767px) {
    .epic-membership-comparison {
        margin-top: 22px;
    }

    .epic-membership-comparison__table {
        font-size: 13px;
    }

    .epic-membership-comparison__table th,
    .epic-membership-comparison__table td {
        padding: 12px 11px;
    }

    .epic-membership-comparison__button {
        min-width: 112px;
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }
}

/* EPIC MEMBERSHIP COMPARISON CTA REFINEMENT - 3N.12F.20 */

.epic-membership-comparison__table tfoot th,
.epic-membership-comparison__table tfoot td {
    padding: 10px 12px;
    line-height: 1.3;
}

.epic-membership-comparison__table tfoot
.epic-membership-comparison__button,
.epic-membership-comparison__table tfoot
.epic-membership-comparison__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 36px;
    height: 36px;
    padding: 0 13px;
    margin: 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-sizing: border-box;
}

.epic-membership-comparison__table tfoot
.epic-membership-comparison__button--free,
.epic-membership-comparison__table tfoot
.epic-membership-comparison__button--free:visited {
    background: #fff;
    border: 1px solid #c40000;
    color: #c40000;
}

.epic-membership-comparison__table tfoot
.epic-membership-comparison__button--premium,
.epic-membership-comparison__table tfoot
.epic-membership-comparison__button--premium:visited {
    background: #c40000;
    border: 1px solid #c40000;
    color: #fff;
}

.epic-membership-comparison__table tfoot
.epic-membership-comparison__button:hover {
    filter: brightness(0.93);
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .epic-membership-comparison__table tfoot th,
    .epic-membership-comparison__table tfoot td {
        padding: 8px 9px;
    }
}

/* EPIC COMPARISON PREMIUM BUTTON TEXT FIX - 3N.12F.21 */

.epic-membership-comparison
.epic-membership-comparison__table tfoot td
a.epic-membership-comparison__button--premium,
.epic-membership-comparison
.epic-membership-comparison__table tfoot td
a.epic-membership-comparison__button--premium:link,
.epic-membership-comparison
.epic-membership-comparison__table tfoot td
a.epic-membership-comparison__button--premium:visited,
.epic-membership-comparison
.epic-membership-comparison__table tfoot td
a.epic-membership-comparison__button--premium:hover,
.epic-membership-comparison
.epic-membership-comparison__table tfoot td
a.epic-membership-comparison__button--premium:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* EPIC MEMBERSHIP REGISTRATION COMPARISON SPACING - 3N.12F.25 */

/* Remove the standalone checkout's large bottom spacing
   only when displayed inside the membership selector. */
.epic-membership-registration
.epic-billing-checkout-preview {
    margin-bottom: 0;
}

/* The Free registration form has its own bottom margin. */
.epic-membership-registration
.epic-free-registration {
    margin-bottom: 0;
}

/* Keep a modest, consistent gap before the comparison table. */
.epic-membership-registration
.epic-membership-comparison {
    margin-top: 42px;
}

@media (max-width: 767px) {
    .epic-membership-registration
    .epic-membership-comparison {
        margin-top: 32px;
    }
}

/* EPIC MEMBERSHIP COMPARISON STATUS ICONS - 3N.12F.27 */

.epic-membership-comparison__table
.epic-membership-comparison__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    text-align: center;
}

.epic-membership-comparison__table
.epic-membership-comparison__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.epic-membership-comparison__table
.epic-membership-comparison__status--available
.epic-membership-comparison__icon {
    color: #218346;
}

.epic-membership-comparison__table
.epic-membership-comparison__status--unavailable
.epic-membership-comparison__icon {
    color: #c52a38;
}

@media (max-width: 767px) {
    .epic-membership-comparison__table
    .epic-membership-comparison__status {
        gap: 4px;
    }
}

/* EPIC FREE REGISTRATION MATCH PREMIUM FIELDS - 3N.12F.29 */

.epic-membership-registration
.epic-free-registration__form {
    margin-top: 20px;
}

.epic-membership-registration
.epic-free-registration__form > p {
    margin: 0 0 16px;
}

.epic-membership-registration
.epic-free-registration__form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.epic-membership-registration
.epic-free-registration__form input {
    width: 100%;
    min-height: 39px;
    padding: 7px 11px;
    box-sizing: border-box;
    font-size: 14px;
}

.epic-membership-registration
.epic-free-registration__form
.epic-registration-password-wrap > input {
    padding-right: 48px !important;
}

@media (max-width: 640px) {
    .epic-membership-registration
    .epic-free-registration__form > p {
        margin-bottom: 16px;
    }
}

/* EPIC FREE REGISTRATION LOGIN LINK SPACING - 3N.12F.30 */
.epic-membership-registration
.epic-free-registration__form + p {
    margin-top: 10px;
}

/* EPIC ACCOUNT FREE MEMBER PREMIUM BENEFITS - 3N.12F.43 */

.epic-account-upgrade-benefits {
    margin: 28px 0 36px;
    padding: 26px 30px;
    border: 1px solid #e3dedb;
    border-radius: 12px;
    background: #fff;
}

.epic-account-upgrade-benefits > h2 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.3vw, 29px);
    line-height: 1.25;
}

.epic-account-upgrade-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
}

.epic-account-upgrade-benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.epic-account-upgrade-benefits__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fce8ec;
    color: var(--property-accent, #c51f2d);
}

.epic-account-upgrade-benefits__icon svg {
    width: 23px;
    height: 23px;
}

.epic-account-upgrade-benefits__item strong {
    display: block;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.4;
}

.epic-account-upgrade-benefits__item p {
    margin: 0;
    color: #627080;
    font-size: 14px;
    line-height: 1.5;
}

.epic-account-upgrade-benefits__footer {
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.epic-account-upgrade-benefits__footer a,
.epic-account-upgrade-benefits__footer a:visited {
    color: var(--property-accent, #c51f2d);
    font-weight: 700;
    text-decoration: none;
}

.epic-account-upgrade-benefits__footer a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .epic-account-upgrade-benefits {
        padding: 22px 18px;
    }

    .epic-account-upgrade-benefits__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* EPIC ACCOUNT EMBEDDED MEMBERSHIP COMPARISON - 3N.12F.46 */

.epic-account-dashboard
.epic-account-upgrade-benefits {
    margin-bottom: 0;
}

.epic-account-dashboard
.epic-membership-comparison {
    margin: 32px 0 40px;
}

.epic-account-dashboard
.epic-membership-comparison > h2 {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .epic-account-dashboard
    .epic-membership-comparison {
        margin-top: 24px;
        margin-bottom: 30px;
    }
}

/* EPIC SHARED PREMIUM PRESENTATION ALIGNMENT - 3N.12F.49 */

.epic-checkout-secure-lock {
    display: inline-block;
    vertical-align: -3px;
    margin-right: 6px;
    flex: none;
}

.epic-account-dashboard__membership-card
.epic-account-membership-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.epic-account-membership-heading__rosette {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 40px;
}

.epic-account-premium-offer
.epic-account-membership__payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.epic-account-premium-offer
.epic-account-membership__payment-button svg {
    display: block;
    flex: 0 0 20px;
}

.epic-account-dashboard
.epic-account-premium-offer
p.epic-account-upgrade-legal {
    margin: 12px 0 0;
    color: #65717b;
    font-size: 13px;
    line-height: 1.4;
}

.epic-account-dashboard
.epic-account-premium-offer
p.epic-account-upgrade-legal a {
    font-size: inherit;
    line-height: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ==========================================================
   Shared social authentication — Google sign-in
   Theme-neutral; login and Free registration forms.
   ========================================================== */

.epic-social-login {
    width: 100%;
    margin: 20px 0 18px;
}

.epic-social-login__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0 0 18px;
    color: #697386;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.epic-social-login__divider::before,
.epic-social-login__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce0e5;
}

.epic-social-login__form {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.epic-social-login__button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 11px 18px;
    border: 1px solid #dadce0;
    border-radius: 5px;
    background: #fff;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.epic-social-login__button::before {
    content: "";
    display: inline-block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M21.35 12.25c0-.82-.07-1.42-.23-2.05H12v3.66h5.35a4.56 4.56 0 0 1-1.98 3.03v2.51h3.2c1.88-1.74 2.78-4.3 2.78-7.15Z'/%3E%3Cpath fill='%2334A853' d='M12 21.75c2.68 0 4.93-.89 6.57-2.35l-3.2-2.51c-.89.59-2.03.95-3.37.95-2.59 0-4.79-1.75-5.57-4.1H3.13v2.59A9.75 9.75 0 0 0 12 21.75Z'/%3E%3Cpath fill='%23FBBC05' d='M6.43 13.74A5.9 5.9 0 0 1 6.12 12c0-.61.11-1.19.31-1.74V7.67h-3.3A9.73 9.73 0 0 0 2.1 12c0 1.57.38 3.06 1.03 4.33l3.3-2.59Z'/%3E%3Cpath fill='%23EA4335' d='M12 6.12c1.46 0 2.77.5 3.8 1.5l2.85-2.85C16.93 3.13 14.68 2.25 12 2.25a9.75 9.75 0 0 0-8.87 5.42l3.3 2.59c.78-2.35 2.98-4.14 5.57-4.14Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.epic-social-login__button:hover {
    border-color: #c6cbd1;
    background: #f8fafd;
    color: #202124;
}

.epic-social-login__button:focus-visible {
    outline: 3px solid #4285f4;
    outline-offset: 3px;
}

.epic-social-login__button:active {
    background: #eef3fd;
}

/* EPIC SOCIAL LOGIN SPACING */
.epic-social-login__form + .epic-social-login__divider {
    margin-top: 14px;
}

/* Shared social buttons: consistent space between providers. */
.epic-social-login__form + .epic-social-login__form {
    margin-top: 10px;
}

/* Apple provider logo; Google retains its original logo. */
.epic-social-login__button--apple::before {
    transform: scale(1.25);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23202124%22%20d%3D%22M17.05%2012.54c.02%202.2%201.93%202.93%201.95%202.94-.02.06-.3%201.04-1.01%202.05-.61.87-1.25%201.74-2.25%201.76-.99.02-1.31-.57-2.44-.57-1.12%200-1.48.55-2.42.59-.97.04-1.71-.96-2.33-1.83-1.27-1.78-2.24-5.04-.94-7.22.65-1.08%201.82-1.76%203.09-1.78.96-.02%201.87.65%202.45.65.58%200%201.67-.8%202.81-.68.48.02%201.82.19%202.68%201.45-.07.04-1.6.93-1.59%202.64ZM15.94%206.25c.51-.62.85-1.48.76-2.34-.73.03-1.61.49-2.14%201.11-.47.54-.88%201.41-.77%202.25.81.06%201.64-.41%202.15-1.02Z%22%2F%3E%3C%2Fsvg%3E");
}


/* EPIC PREMIUM GOOGLE INSIDE CARD - SHARED */
/* One visual card containing two independent authentication forms. */
.epic-billing-checkout-preview__right
.epic-billing-premium-registration-card {
    box-sizing: border-box;
    min-width: 0;
    margin: 16px 0 0;
    padding: 22px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.epic-billing-checkout-preview__right
.epic-billing-premium-registration-card
.epic-billing-checkout-preview__billing-heading {
    display: block;
    margin: 0 0 17px;
    padding: 0;
    border: 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.epic-billing-checkout-preview__right
.epic-billing-premium-registration-card
.epic-social-login {
    margin: 0 0 18px;
}

.epic-billing-checkout-preview__right
.epic-billing-premium-registration-card
.epic-social-login__divider {
    margin-bottom: 18px;
}

.epic-billing-checkout-preview__right
.epic-billing-premium-registration-card
.epic-billing-registration-form fieldset {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

@media (max-width: 540px) {
    .epic-billing-checkout-preview__right
    .epic-billing-premium-registration-card {
        padding: 18px;
    }
}

/* EPIC SHARED PREMIUM CHECKOUT PAGE */
/* Property-neutral standalone checkout presentation. */

.epic-premium-checkout {
    box-sizing: border-box;
    width: 100%;
    max-width: 650px;
    margin: 30px auto 45px;
    padding: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .035);
}

.epic-premium-checkout > h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.25;
    font-weight: 700;
}

.epic-premium-checkout > p {
    line-height: 1.55;
}

.epic-premium-checkout__order,
.epic-premium-checkout .epic-membership-upgrade {
    margin: 25px 0;
}

.epic-premium-checkout .epic-billing-checkout-preview__field {
    margin-bottom: 18px;
}

.epic-premium-checkout select[name="country"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
}

.epic-premium-checkout
.epic-billing-checkout-preview__order {
    margin: 15px 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.epic-premium-checkout
.epic-billing-checkout-preview__order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 20px;
}

.epic-premium-checkout
.epic-billing-checkout-preview__order-table th,
.epic-premium-checkout
.epic-billing-checkout-preview__order-table td {
    padding: 13px 8px;
    border-bottom: 1px solid #e5e5e5;
}

.epic-premium-checkout
.epic-billing-checkout-preview__order-table th {
    text-align: left;
    font-weight: 500;
}

.epic-premium-checkout
.epic-billing-checkout-preview__order-table td {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.epic-premium-checkout
.epic-billing-checkout-preview__total-row th,
.epic-premium-checkout
.epic-billing-checkout-preview__total-row td {
    border-top: 2px solid #d8d8d8;
    font-size: 18px;
    font-weight: 700;
}

.epic-premium-checkout
.epic-account-membership__payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: #b70e26;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.epic-premium-checkout
.epic-account-membership__payment-button:hover:not(:disabled) {
    background: #950b1f;
    color: #fff;
}

.epic-premium-checkout
.epic-account-membership__payment-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.epic-premium-checkout
.epic-billing-checkout-preview__legal {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 600px) {
    .epic-premium-checkout {
        margin: 18px auto 30px;
        padding: 22px 18px;
    }

    .epic-premium-checkout
    .epic-billing-checkout-preview__total-row th,
    .epic-premium-checkout
    .epic-billing-checkout-preview__total-row td {
        font-size: 16px;
    }
}

/* EPIC SHARED PREMIUM CHECKOUT REFINEMENT */
/* Matches shared registration styling without changing other pages. */

.epic-premium-checkout
.epic-account-membership__payment-button {
    gap: 10px;
}

.epic-premium-checkout
.epic-account-membership__payment-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

body .epic-page-layout__main
.epic-premium-checkout
p.epic-premium-checkout__secure {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 12px 0 14px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: #65717b;
}

.epic-premium-checkout__secure
.epic-checkout-secure-lock {
    flex: 0 0 16px;
    margin-top: 2px;
}

body .epic-page-layout__main
.epic-premium-checkout
p.epic-billing-checkout-preview__legal {
    max-width: none;
    margin: 10px 0 12px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: normal;
    color: #65717b;
}

body .epic-page-layout__main
.epic-premium-checkout
p.epic-billing-checkout-preview__legal a {
    font-size: inherit;
    line-height: inherit;
    font-weight: 500;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* EPIC MEMBERSHIP COMPARISON FEATURE TOOLTIPS */

.epic-membership-comparison__feature {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.epic-membership-comparison__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #999;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font: 700 12px/1 Arial, sans-serif;
    cursor: help;
    vertical-align: middle;
}

.epic-membership-comparison__info:hover,
.epic-membership-comparison__info:focus-visible,
.epic-membership-comparison__info[aria-expanded="true"] {
    border-color: #c40000;
    background: #c40000;
    color: #fff;
}

.epic-membership-comparison__info:focus-visible {
    outline: 2px solid #c40000;
    outline-offset: 3px;
}

.epic-membership-comparison__tooltip {
    position: fixed;
    z-index: 100000;
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 15px 17px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.17);
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    box-sizing: border-box;
    pointer-events: none;
}

.epic-membership-comparison__tooltip[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .epic-membership-comparison__tooltip {
        width: 300px;
        padding: 13px 15px;
        font-size: 13px;
    }

    .epic-membership-comparison__info {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }
}


/* EPIC HISTORY NOTIFICATION ACCOUNT LAYOUT */
.epic-account-dashboard__details {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 30px;
    align-content: start;
    height: 100%;
}

.epic-account-dashboard__details > h2,
.epic-account-dashboard__details > .epic-account-dashboard__logout {
    grid-column: 1 / -1;
}

.epic-account-dashboard__details-main {
    min-width: 0;
}

.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 24px;
}

.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions > .epic-account-email__edit {
    display: inline-block;
    flex: 0 0 auto;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #0f5e89 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
}

.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions > .epic-account-email__edit:hover,
.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions > .epic-account-email__edit:focus-visible {
    background: transparent;
    color: #0f5e89 !important;
    text-decoration: underline !important;
}

.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions > .epic-account-password__edit {
    margin-top: 0;
}

.epic-history-notifications-inline {
    min-width: 0;
    padding: 0;
    border: 0;
}

.epic-history-notifications-inline h3 {
    margin: 0 0 22px;
    font-size: 20px;
    line-height: 1.3;
}

.epic-history-notifications-inline__group {
    margin-bottom: 24px;
}

.epic-history-notifications-inline__group:last-child {
    margin-bottom: 0;
}

.epic-history-notifications-inline__label {
    margin: 0 0 7px;
    color: #68717b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.epic-history-notifications-inline__description {
    margin: 0 0 12px;
    color: #1b2630;
    font-size: 16px;
    line-height: 1.6;
}

.epic-history-notifications-inline fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.epic-history-notifications-inline fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1b2630;
    font-size: 15px;
    line-height: 1.45;
    white-space: nowrap;
}

.epic-history-notifications-inline fieldset input {
    margin: 0;
}

.epic-history-notifications-email-status,
.epic-history-notifications-browser-status {
    margin: 9px 0 0;
    color: #68717b;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .epic-account-dashboard__details {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        row-gap: 10px;
    }

    .epic-history-notifications-inline {
        margin-top: 4px;
    }
}


/* EPIC HISTORY NOTIFICATIONS — UNIFIED ACCOUNT FIELDS */
.epic-account-dashboard__details {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 26px;
}

.epic-history-notifications-inline {
    padding-top: 0;
}

.epic-history-notifications-inline__group {
    margin: 0 0 24px;
}

.epic-history-notifications-inline__group:last-child {
    margin-bottom: 0;
}

.epic-history-notifications-inline__label {
    margin: 0 0 7px;
    color: #68717b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.5;
    text-transform: uppercase;
}

.epic-history-notifications-inline__description {
    margin: 0 0 10px;
    color: #1b2630;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.epic-history-notifications-inline fieldset {
    gap: 8px 18px;
}

.epic-history-notifications-inline fieldset label {
    font-size: 14px;
    font-weight: 400;
}

.epic-history-notifications-inline fieldset:disabled {
    opacity: 0.7;
}

.epic-history-notifications-email-status,
.epic-history-notifications-browser-status {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #68717b;
}

@media (max-width: 980px) {
    .epic-account-dashboard__details {
        grid-template-columns: minmax(0, 1fr);
    }

    .epic-history-notifications-inline {
        padding-top: 4px;
    }
}


/* EPIC HISTORY NOTIFICATIONS — INNER CARDS REFINEMENT */
.epic-account-dashboard__details .epic-account-dashboard__logout {
    margin-top: 16px;
    padding-top: 0;
    border-top: 0;
}

.epic-history-notifications-inline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epic-history-notifications-inline__group {
    margin: 0;
    padding: 18px 18px 16px;
    background: #faf9f8;
    border: 1px solid #e5e0dd;
    border-radius: 10px;
    box-sizing: border-box;
}

.epic-history-notifications-inline__label {
    margin: 0 0 8px;
}

.epic-history-notifications-inline__description {
    margin: 0 0 12px;
}

.epic-history-notifications-inline fieldset {
    margin-top: 0;
}

.epic-history-notifications-email-status,
.epic-history-notifications-browser-status {
    margin: 8px 0 0;
}

@media (max-width: 980px) {
    .epic-history-notifications-inline {
        gap: 14px;
    }

    .epic-history-notifications-inline__group {
        padding: 16px 16px 14px;
    }
}


/* EPIC ACCOUNT DETAILS — MATCHING INNER CARDS */

/* Match the notification cards' neutral appearance. */
.epic-account-dashboard__details-main
.epic-account-dashboard__field,
.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions {
    background: #faf9f8;
    border: 1px solid #e5e0dd;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Individual account information cards. */
.epic-account-dashboard__details-main
.epic-account-dashboard__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 12px;
    padding: 18px;
}

/* Account settings card with vertically stacked links. */
.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 18px;
}

/* Preserve the original account value typography. */
.epic-account-dashboard__details-main
.epic-account-dashboard__value {
    font-size: 16px;
    line-height: 1.6;
}

/* Keep the two columns aligned at the top. */
.epic-account-dashboard__details-main,
.epic-history-notifications-inline {
    align-self: start;
}



/* EPIC ACCOUNT DETAILS — COMPACT BODY TYPOGRAPHY */

/* Account values. */
.epic-account-dashboard__details-main
.epic-account-dashboard__value {
    font-size: 14px;
    line-height: 1.55;
}

/* Notification descriptions. */
.epic-account-dashboard__details
.epic-history-notifications-inline__description {
    font-size: 14px;
    line-height: 1.55;
}

/* Notification radio choices. */
.epic-account-dashboard__details
.epic-history-notifications-inline fieldset label {
    font-size: 14px;
}

/* Account action links. */
.epic-account-dashboard__details-main
.epic-account-dashboard__account-actions > .epic-account-email__edit {
    font-size: 14px;
}

/* Status messages. */
.epic-account-dashboard__details
.epic-history-notifications-email-status,
.epic-account-dashboard__details
.epic-history-notifications-browser-status {
    font-size: 12px;
}

/* Headings and uppercase labels deliberately unchanged. */


/* EPIC NOTIFICATION DESCRIPTION FONT REFINEMENT */
.epic-account-dashboard__details
.epic-history-notifications-inline__group
.epic-history-notifications-inline__description {
    font-size: 13px;
    line-height: 1.5;
}


/* EPIC NOTIFICATION RADIO CONTRAST */
.epic-account-dashboard__details
.epic-history-notifications-inline fieldset:disabled {
    opacity: 1;
}

.epic-account-dashboard__details
.epic-history-notifications-inline fieldset label {
    color: #334155;
    opacity: 1;
}

.epic-account-dashboard__details
.epic-history-notifications-inline fieldset input[type="radio"] {
    accent-color: #a71930;
    opacity: 1;
    filter: contrast(1.5);
}


/* EPIC NOTIFICATION RADIO — CUSTOM VISIBLE INDICATORS */

/* Disabled controls remain non-interactive until connected. */
.epic-account-dashboard__details
.epic-history-notifications-inline fieldset input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-grid;
    place-content: center;
    width: 15px;
    height: 15px;
    min-width: 15px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #56616d;
    border-radius: 50%;
    background: #fff;
    opacity: 1 !important;
    filter: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.epic-account-dashboard__details
.epic-history-notifications-inline fieldset input[type="radio"]::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a71930;
    transform: scale(0);
}

.epic-account-dashboard__details
.epic-history-notifications-inline fieldset input[type="radio"]:checked::before {
    transform: scale(1);
}

.epic-account-dashboard__details
.epic-history-notifications-inline fieldset input[type="radio"]:focus-visible {
    outline: 2px solid #a71930;
    outline-offset: 3px;
}

.epic-account-dashboard__details
.epic-history-notifications-inline fieldset label {
    opacity: 1 !important;
    color: #334155;
}


/* EPIC ACCOUNT — EXPANDED EMAIL AND PASSWORD FORMS */

/*
 * When an account-management form is open, give the
 * account details area the available card width.
 * Do not modify normal dashboard layout or form behaviour.
 */
.epic-account-dashboard__details:has(
    .epic-account-email__form
) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
}

/* Account details and notifications stack when editing. */
.epic-account-dashboard__details:has(
    .epic-account-email__form
) .epic-account-dashboard__details-main,
.epic-account-dashboard__details:has(
    .epic-account-email__form
) .epic-history-notifications-inline {
    grid-column: 1 / -1;
}

/* Give the active account form comfortable width. */
.epic-account-dashboard__details
.epic-account-dashboard__account-actions > .epic-account-email__form {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Inputs should fill the form without overflowing. */
.epic-account-dashboard__details
.epic-account-email__form input[type="email"],
.epic-account-dashboard__details
.epic-account-email__form input[type="password"] {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Form buttons should not be squeezed into narrow columns. */
.epic-account-dashboard__details
.epic-account-email__form button[type="submit"] {
    width: auto;
    max-width: 100%;
    min-width: 190px;
    white-space: normal;
}

/* Keep the notifications section from being squeezed. */
.epic-account-dashboard__details:has(
    .epic-account-email__form
) .epic-history-notifications-inline {
    width: 100%;
}


/* History page: compact daily highlights */

@media (min-width: 961px) {
    .epic-page-layout--history {
        grid-template-columns: minmax(0, 1fr) 300px;
        column-gap: 28px;
        row-gap: 18px;
        align-items: start;
        padding-top: 48px;
    }

    .epic-page-layout--history > .epic-page-layout__main {
        display: contents;
    }

    .epic-page-layout--history > .epic-page-layout__main > h1 {
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0 0 6px;
    }

    .epic-page-layout--history .epic-fans-history-highlights {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .epic-page-layout--history .epic-fans-history-archive-heading {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .epic-page-layout--history .epic-fans-history-archive {
        grid-column: 1;
        grid-row: 4;
        min-width: 0;
    }

    /* Sidebar must start level with the archive card. */
    .epic-page-layout--history > .epic-app-promo-sidebar {
        grid-column: 2;
        grid-row: 4;
        align-self: start !important;
        margin-top: 0;
        padding-top: 0 !important;
        transform: none !important;
        min-width: 0;
    }

    .epic-page-layout--history .epic-fans-history-drawer-host {
        grid-column: 1 / -1;
        grid-row: 5;
    }
}

.epic-fans-history-highlights {
    margin: 0;
    min-width: 0;
}

.epic-fans-history-highlights__heading,
.epic-fans-history-archive-heading {
    font-family: Geist, Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.35;
    color: #101820;
    margin: 0 0 15px;
}

.epic-fans-history-archive-heading {
    margin: 33px 0 -11px;
}

.epic-fans-history-highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.epic-fans-history-highlights__link {
    display: block !important;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-decoration: none !important;
    color: inherit !important;
}

.epic-fans-history-highlights__card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 4px;
    width: 100%;
    height: auto !important;
    min-height: 120px !important;
    margin: 0 !important;
    padding: 11px 15px !important;
    border-radius: 14px;
    overflow: hidden;
}

.epic-fans-history-highlights__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
    padding-right: 28px;
    line-height: 1.2;
}

.epic-fans-history-highlights__year {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: var(--event-accent, #c51f2d);
}

.epic-fans-history-highlights__date {
    font-size: 11px;
    font-weight: 600;
    color: var(--event-accent, #c51f2d);
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.epic-fans-history-highlights__card
.epic-fans-timeline__event-icon {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 20px;
    height: 20px;
}

.epic-fans-history-highlights__card
.epic-fans-history-highlights__title {
    font-family: Geist, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    color: #37322f !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epic-fans-history-highlights__card
.epic-fans-history-highlights__subtitle {
    font-family: Geist, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    color: #514b48 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epic-fans-history-highlights__link:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .epic-fans-history-highlights {
        margin-bottom: 26px;
    }

    .epic-fans-history-archive-heading {
        margin: 22px 0 16px;
    }

    .epic-fans-history-highlights__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .epic-fans-history-highlights__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .epic-fans-history-highlights__card {
        height: auto !important;
        min-height: 120px !important;
    }

    .epic-fans-history-highlights__card
    .epic-fans-history-highlights__title {
        -webkit-line-clamp: 2;
    }
}

/* EPIC ACCOUNT — EDIT MODAL */

/* Preserve the normal account layout behind an open modal. */
.epic-account-dashboard__details:has(.epic-account-email__form) {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr auto;
}

.epic-account-edit-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100090;
    background: rgba(15, 23, 42, 0.65);
}

body.epic-account-modal-open {
    overflow: hidden;
}

/* Existing email and password forms become centred dialogs. */
.epic-account-dashboard__details
.epic-account-dashboard__account-actions
> form.epic-account-email__form {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100091;
    display: block;
    width: min(460px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: min(88vh, 760px);
    margin: 0;
    padding: 28px;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
}

/* Dialog heading and close control. */
.epic-account-dashboard__details
.epic-account-email__form h3 {
    margin: 0 40px 22px 0;
    font-size: 23px;
    line-height: 1.3;
}

.epic-account-edit-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.epic-account-edit-modal-close:hover,
.epic-account-edit-modal-close:focus-visible {
    background: #f1f2f4;
}

.epic-account-edit-modal-close:focus-visible {
    outline: 2px solid #a71930;
    outline-offset: 2px;
}

/* Comfortable form fields and consistent spacing. */
.epic-account-dashboard__details
.epic-account-email__form p {
    margin: 0 0 18px;
}

.epic-account-dashboard__details
.epic-account-email__form input[type="email"],
.epic-account-dashboard__details
.epic-account-email__form input[type="password"] {
    width: 100%;
    max-width: 100%;
    min-height: 43px;
    box-sizing: border-box;
}

.epic-account-dashboard__details
.epic-account-email__form button[type="submit"] {
    min-width: 0;
    width: auto;
    max-width: 100%;
    padding: 11px 18px;
    white-space: normal;
}

.epic-account-dashboard__details
.epic-account-email__form .epic-account-email__cancel {
    display: inline-block;
    margin-left: 14px;
}

@media (max-width: 980px) {
    .epic-account-dashboard__details:has(.epic-account-email__form) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 520px) {
    .epic-account-dashboard__details
    .epic-account-dashboard__account-actions
    > form.epic-account-email__form {
        padding: 22px 18px;
        max-height: 90vh;
    }
}


/* EPIC NOTIFICATION STATUS TEXT SIZE */
.epic-account-dashboard__details
.epic-history-notifications-inline
.epic-history-notifications-email-status,
.epic-account-dashboard__details
.epic-history-notifications-inline
.epic-history-notifications-browser-status {
    font-size: 12px;
    line-height: 1.45;
    color: #68717b;
}

/* History email confirmation page styles */
.epic-history-email-confirmation {
    width: calc(100% - 32px);
    max-width: 640px;
    margin: 56px auto;
    padding: 36px;
    background: #fff;
    border: 1px solid #e5e0dd;
    border-radius: 12px;
    box-sizing: border-box;
}

.epic-history-email-confirmation h1 {
    margin: 0 0 20px;
    font-family: Georgia, serif;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
    color: #101820;
}

.epic-history-email-confirmation p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
}

.epic-history-email-confirmation button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    background: var(--epic-primary-color, #a71930);
    color: #fff;
    border: 1px solid var(--epic-primary-color, #a71930);
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.epic-history-email-confirmation button[type="submit"]:hover {
    background: var(--epic-primary-hover, #861225);
    border-color: var(--epic-primary-hover, #861225);
    color: #fff;
}

.epic-history-email-confirmation button[type="submit"]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.epic-history-email-confirmation form {
    margin: 26px 0 18px;
}

.epic-history-email-confirmation a {
    font-weight: 600;
}

@media (max-width: 600px) {
    .epic-history-email-confirmation {
        margin: 28px auto;
        padding: 24px;
    }
}

/* Rankings: restore spacing above full-width page heading */
body:not(.home) .epic-rankings-page-heading {
    padding-top: 47px;
    margin-top: 0;
}

@media (max-width: 800px) {
    body:not(.home) .epic-rankings-page-heading {
        padding-top: 24px;
    }
}


/* Rankings: tighten spacing between H1 and category selector */
body:not(.home) .epic-page-layout:has(.epic-fans-rankings)
.epic-page-layout__main {
    padding-top: 20px;
}


/* Rankings: match the shared condensed Georgia H1 typography */
body:not(.home) h1.epic-rankings-page-heading {
    transform: scaleX(var(--epic-condensed-serif-scale, 0.90));
    transform-origin: left center;
    letter-spacing: -0.035em;
}


/* Rankings: match standard page H1 font size */
body:not(.home) h1.epic-rankings-page-heading {
    font-size: 82px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.035em;
    transform: scaleX(var(--epic-condensed-serif-scale, 0.90));
    transform-origin: left center;
}


/* Rankings H1 — match Profile page typography */
body:not(.home) h1.epic-rankings-page-heading {
    font-size: 58px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.035em;
    transform: scaleX(var(--epic-condensed-serif-scale, 0.90));
    transform-origin: left center;
}

@media (max-width: 700px) {
    body:not(.home) h1.epic-rankings-page-heading {
        font-size: clamp(36px, 8vw, 58px);
    }
}



/* EPIC ACCOUNT NOTIFICATION RADIO CURSORS */
.epic-history-notifications-inline fieldset:not(:disabled) label,
.epic-history-notifications-inline fieldset:not(:disabled) input[type="radio"] {
    cursor: pointer;
}

.epic-history-notifications-inline fieldset:disabled label,
.epic-history-notifications-inline fieldset:disabled input[type="radio"] {
    cursor: not-allowed;
}


/* Epic Fans shared notification segmented buttons v1 */

/* Account and drawer only: exclude the onboarding popup. */
:is(#history-updates, #history-updates-drawer)
.epic-history-notifications-inline__label {
    display: flex;
    align-items: center;
    gap: 7px;
}

:is(#history-updates, #history-updates-drawer)
.epic-notification-setting-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: var(--property-accent, #c00);
}

:is(#history-updates, #history-updates-drawer)
.epic-notification-setting-icon svg {
    display: block;
    width: 19px;
    height: 19px;
}

/* Retain real radio inputs for existing JS and accessibility. */
:is(#history-updates, #history-updates-drawer)
fieldset.epic-history-notifications-email,
:is(#history-updates, #history-updates-drawer)
fieldset.epic-history-notifications-browser {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    border: 0;
}

:is(#history-updates, #history-updates-drawer)
fieldset.epic-history-notifications-email label,
:is(#history-updates, #history-updates-drawer)
fieldset.epic-history-notifications-browser label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 8px 14px;
    margin: 0;
    border: 1px solid #d8dee5;
    border-radius: 7px;
    background: #fff;
    color: #101820;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

:is(#history-updates, #history-updates-drawer)
fieldset.epic-history-notifications-email label:has(input:checked),
:is(#history-updates, #history-updates-drawer)
fieldset.epic-history-notifications-browser label:has(input:checked) {
    background: var(--property-accent, #c00);
    border-color: var(--property-accent, #c00);
    color: #fff;
}

/* Visually hide, but do not remove, the accessible input. */
:is(#history-updates, #history-updates-drawer)
fieldset input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: hidden !important;
}

:is(#history-updates, #history-updates-drawer)
fieldset input[type="radio"]::before {
    content: none !important;
}

:is(#history-updates, #history-updates-drawer)
fieldset label:focus-within {
    outline: 2px solid var(--property-accent, #c00);
    outline-offset: 2px;
}

:is(#history-updates, #history-updates-drawer)
fieldset:disabled label {
    cursor: wait;
    opacity: .65;
}

/* Shared drawer heading for guests and authenticated members. */
.epic-history-notification-drawer__header
.epic-notification-drawer-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.epic-notification-drawer-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    color: var(--property-accent, #c00);
}

.epic-notification-drawer-heading__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}


/* Notification drawer heading matches onboarding popup */
.epic-history-notification-drawer__header
.epic-notification-drawer-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.25;
    color: #101820;
}

/* ==========================================================
   EPIC FANS: COMPACT DRAWER ENGAGEMENT V1
   Compact polls and quizzes inside event drawers only.
   Standalone event pages remain unchanged.
   ========================================================== */

.epic-fans-event-drawer .epic-fans-event-poll,
.epic-fans-event-drawer .epic-fans-event-quiz {
    margin: 16px 0;
    padding: 16px;
    border-radius: 16px;
}

.epic-fans-event-drawer .epic-fans-event-poll__header,
.epic-fans-event-drawer .epic-fans-event-quiz__header {
    gap: 8px;
    margin-bottom: 10px;
}

.epic-fans-event-drawer .epic-fans-event-poll__header-icon,
.epic-fans-event-drawer .epic-fans-event-quiz__header-icon {
    width: 24px;
    height: 24px;
}

.epic-fans-event-drawer .epic-fans-event-poll__header-icon svg,
.epic-fans-event-drawer .epic-fans-event-quiz__header-icon svg {
    width: 21px;
    height: 21px;
}

.epic-fans-event-drawer .epic-fans-event-poll__header-text,
.epic-fans-event-drawer .epic-fans-event-quiz__header-text {
    font-size: 15px;
    letter-spacing: 0.05em;
}

.epic-fans-event-drawer .epic-fans-event-poll__question,
.epic-fans-event-drawer .epic-fans-event-quiz__question {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.epic-fans-event-drawer .epic-fans-event-poll__options,
.epic-fans-event-drawer .epic-fans-event-quiz__options {
    gap: 7px;
}

.epic-fans-event-drawer .epic-fans-event-poll__option,
.epic-fans-event-drawer .epic-fans-event-quiz__option {
    min-height: 44px;
    padding: 7px 10px;
    gap: 10px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.35;
}

.epic-fans-event-drawer .epic-fans-event-poll__option-index,
.epic-fans-event-drawer .epic-fans-event-quiz__option-index {
    width: 26px;
    height: 26px;
    font-size: 13px;
}

.epic-fans-event-drawer .epic-fans-event-poll__option-index {
    font-size: 0;
}

.epic-fans-event-drawer
.epic-fans-event-poll__option.is-selected
.epic-fans-event-poll__option-index {
    font-size: 16px;
}

.epic-fans-event-drawer .epic-fans-event-quiz__result-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
}

.epic-fans-event-drawer .epic-fans-event-poll__option-content {
    gap: 4px;
}

.epic-fans-event-drawer .epic-fans-event-poll__result-track {
    height: 5px;
}

.epic-fans-event-drawer .epic-fans-event-poll__percentage {
    min-width: 34px;
    font-size: 12px;
}

.epic-fans-event-drawer .epic-fans-event-poll__status {
    margin-top: 8px;
    font-size: 12px;
}

.epic-fans-event-drawer .epic-fans-event-poll__footer {
    margin-top: 10px;
    gap: 6px 10px;
    font-size: 12px;
}

.epic-fans-event-drawer .epic-fans-event-quiz__answer-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
}

.epic-fans-event-drawer .epic-fans-event-quiz__answer-title {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
}

.epic-fans-event-drawer .epic-fans-event-quiz__answer-body {
    font-size: 13px;
    line-height: 1.5;
}


/* Compact drawer quiz: slightly larger answer text */
.epic-fans-event-drawer .epic-fans-event-quiz__option {
    font-size: 15px;
}

/* Compact drawer quiz: larger answer explanation text */
.epic-fans-event-drawer .epic-fans-event-quiz__answer-body {
    font-size: 15px;
}


/* Epic Fans property-local account contributor achievements. */
.epic-account-achievements {
    margin: -12px 0 36px;
}

.epic-account-achievements__status {
    color: #687782;
    font-size: 14px;
}

.epic-account-achievements__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-bottom: 22px;
}

.epic-account-achievements__summary p {
    margin: 0;
    font-size: 14px;
    color: #344256;
}

.epic-account-achievements__collection {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.epic-account-achievements__badge {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 17px 6px;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    background: #fafbfc;
    text-align: center;
}

.epic-account-achievements__symbol {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0f3;
    color: #89929d;
}

.epic-account-achievements__name {
    font-size: 13px;
    line-height: 1.3;
    color: #344256;
}

.epic-account-achievements__threshold,
.epic-account-achievements__state {
    font-size: 11px;
    color: #7a8490;
}

.epic-account-achievements__badge.is-earned.is-newbie {
    color: #667587;
    background: #f1f3f6;
}

.epic-account-achievements__badge.is-earned.is-rising_fan {
    color: #98612b;
    background: #fff5e8;
}

.epic-account-achievements__badge.is-earned.is-epic_fan {
    color: #1766b4;
    background: #e8f3ff;
}

.epic-account-achievements__badge.is-earned.is-superhero {
    color: #bd454f;
    background: #fff0f0;
}

.epic-account-achievements__badge.is-earned.is-legend {
    color: #7543a1;
    background: #f6edff;
}

.epic-account-achievements__badge.is-earned .epic-account-achievements__symbol {
    background: rgba(255,255,255,.75);
    color: inherit;
}

.epic-account-achievements__badge.is-earned .epic-account-achievements__name,
.epic-account-achievements__badge.is-earned .epic-account-achievements__state {
    color: inherit;
}

.epic-account-achievements__progress {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.epic-account-achievements__progress-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

.epic-account-achievements__track {
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #edf0f3;
}

.epic-account-achievements__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #98612b;
}

.epic-account-achievements__progress > p {
    margin: 10px 0 0;
    font-size: 13px;
    color: #687782;
}

@media (max-width: 760px) {
    .epic-account-achievements {
        margin-top: -8px;
    }

    .epic-account-achievements__collection {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 440px) {
    .epic-account-achievements__collection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Epic Fans contributor achievement card colours v2. */

/* Follow the five property-neutral badge catalogue milestones. */
.epic-account-achievements__badge:nth-child(1) {
    --achievement-color: #667587;
    --achievement-bg: #f1f3f6;
}

.epic-account-achievements__badge:nth-child(2) {
    --achievement-color: #98612b;
    --achievement-bg: #fff5e8;
}

.epic-account-achievements__badge:nth-child(3) {
    --achievement-color: #1766b4;
    --achievement-bg: #e8f3ff;
}

.epic-account-achievements__badge:nth-child(4) {
    --achievement-color: #bd454f;
    --achievement-bg: #fff0f0;
}

.epic-account-achievements__badge:nth-child(5) {
    --achievement-color: #7543a1;
    --achievement-bg: #f6edff;
}

/* Apply colours to both earned and locked achievements. */
.epic-account-achievements__collection
.epic-account-achievements__badge {
    background: var(--achievement-bg);
    border-color: var(--achievement-color);
}

.epic-account-achievements__collection
.epic-account-achievements__badge
.epic-account-achievements__symbol {
    color: var(--achievement-color);
    background: rgba(255, 255, 255, .75);
}

.epic-account-achievements__collection
.epic-account-achievements__badge
.epic-account-achievements__name {
    color: var(--achievement-color);
}

.epic-account-achievements__collection
.epic-account-achievements__badge
.epic-account-achievements__state {
    color: var(--achievement-color);
}

/* Contributor Achievements — align highest badge to the right. */
.epic-account-achievements__summary {
    justify-content: space-between;
}

/* EVENT COMMENT JUMP — STEP 230 */
.epic-fans-event-comment-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 58px;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid #ded8d2;
    border-radius: 999px;
    background: #fff;
    color: #665951;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s ease,
                border-color .18s ease,
                background-color .18s ease;
}

.epic-fans-event-comment-jump:hover,
.epic-fans-event-comment-jump:focus-visible {
    color: var(--event-accent, #b91c1c);
    border-color: #c7c1bc;
    background: #fff8f8;
}

.epic-fans-event-comment-jump__icon {
    display: flex;
    width: 20px;
    height: 20px;
}

.epic-fans-event-comment-jump__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-event-drawer__actions
.epic-fans-event-comment-jump {
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 16px;
    gap: 6px;
}

.epic-fans-event-drawer__actions
.epic-fans-event-comment-jump__icon {
    width: 15px;
    height: 15px;
}

.epic-fans-event-comment-jump[hidden] {
    display: none !important;
}

/* MATCH COMMENT JUMP — STEP 231 */
.epic-football-match-comment-jump {
    position: absolute;
    top: 18px;
    right: 66px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    min-width: 52px;
    padding: 4px 10px;
    border: 1px solid #ded8d2;
    border-radius: 16px;
    background: #fff;
    color: #665951;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s ease,
                border-color .18s ease,
                background-color .18s ease;
}

.epic-football-match-comment-jump__icon {
    display: flex;
    width: 15px;
    height: 15px;
}

.epic-football-match-comment-jump__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-football-match-comment-jump:hover,
.epic-football-match-comment-jump:focus-visible {
    color: var(--property-accent, #b91c1c);
    border-color: #c7c1bc;
    background: #fff8f8;
}

.epic-football-match-comment-jump:focus-visible {
    outline: 2px solid var(--property-accent, #b91c1c);
    outline-offset: 2px;
}

.epic-football-match-comment-jump[hidden] {
    display: none !important;
}


/* MATCH COMMENT BUTTON IN TAB ROW — STEP 231D */
.epic-football-match-drawer__tabs
.epic-football-match-comment-jump {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 46px;
    min-height: 30px;
    padding: 5px 9px;
    margin: 0 0 0 3px;
    border: 1px solid #ded8d2;
    border-radius: 16px;
    background: #fff;
    color: #665951;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.epic-football-match-drawer__tabs
.epic-football-match-comment-jump:hover,
.epic-football-match-drawer__tabs
.epic-football-match-comment-jump:focus-visible {
    color: var(--property-accent, #b91c1c);
    background: #fff8f8;
    border-color: #c7c1bc;
}

/* STATISTICS COMMENT SHORTCUT — STEP 232 */
.epic-football-standings__nav
.epic-football-statistics-comment-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 32px;
    padding: 5px 10px;
    margin-left: auto;
    border: 1px solid #ded8d2;
    border-radius: 16px;
    background: #fff;
    color: #665951;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease,
                border-color .18s ease,
                background-color .18s ease;
}

.epic-football-standings__nav
.epic-football-statistics-comment-jump:hover,
.epic-football-standings__nav
.epic-football-statistics-comment-jump:focus-visible {
    color: var(--property-accent, #b91c1c);
    background: #fff8f8;
    border-color: #c7c1bc;
}

.epic-football-standings__nav
.epic-football-statistics-comment-jump:focus-visible {
    outline: 2px solid var(--property-accent, #b91c1c);
    outline-offset: 2px;
}

.epic-football-statistics-comment-jump__icon {
    display: flex;
    width: 15px;
    height: 15px;
}

.epic-football-statistics-comment-jump__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-football-standings__nav
.epic-football-statistics-comment-jump[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .epic-football-standings__nav
    .epic-football-statistics-comment-jump {
        min-width: 44px;
        padding: 5px 8px;
    }
}

/* RANKINGS COMMENT SHORTCUT — STEP 233 */

/* Keep category dropdown and discussion shortcut together. */
.epic-fans-rankings__category-form {
    max-width: none;
}

.epic-fans-rankings__category-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: auto;
}

.epic-fans-rankings__category-controls
.epic-fans-rankings__category-select {
    flex: 0 1 370px;
    min-width: 0;
    max-width: 100%;
}

.epic-fans-rankings__comment-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #ded8d2;
    border-radius: 18px;
    background: #fff;
    color: #665951;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease,
                border-color .18s ease,
                background-color .18s ease;
}

.epic-fans-rankings__comment-jump:hover,
.epic-fans-rankings__comment-jump:focus-visible {
    color: var(--property-accent, #b91c1c);
    border-color: #c7c1bc;
    background: #fff8f8;
}

.epic-fans-rankings__comment-jump:focus-visible {
    outline: 2px solid var(--property-accent, #b91c1c);
    outline-offset: 2px;
}

.epic-fans-rankings__comment-jump-icon {
    display: flex;
    width: 16px;
    height: 16px;
}

.epic-fans-rankings__comment-jump-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 520px) {
    .epic-fans-rankings__category-controls
    .epic-fans-rankings__category-select {
        flex: 1 1 220px;
    }
}


/* RANKINGS COMMENT ROW ALIGNMENT — STEP 233C */

/* Override the original selector's column layout. */
.epic-fans-rankings .epic-fans-rankings__category-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}

.epic-fans-rankings .epic-fans-rankings__category-controls
.epic-fans-rankings__category-select {
    flex: 0 1 370px;
    width: 370px;
    min-width: 0;
    max-width: calc(100% - 65px);
}

.epic-fans-rankings .epic-fans-rankings__category-controls
.epic-fans-rankings__comment-jump {
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
}

@media (max-width: 520px) {
    .epic-fans-rankings .epic-fans-rankings__category-controls {
        gap: 8px;
    }

    .epic-fans-rankings .epic-fans-rankings__category-controls
    .epic-fans-rankings__category-select {
        flex: 1 1 auto;
        width: auto;
        max-width: calc(100% - 60px);
    }
}

/* PROFILE COMMENT SHORTCUT — STEP 234 */

.epic-fans-profile__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.epic-fans-profile__nav .epic-fans-profile__comment-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 48px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #ded8d2;
    border-radius: 16px;
    background: #fff;
    color: #665951;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease,
                border-color .18s ease,
                background-color .18s ease;
}

.epic-fans-profile__comment-jump:hover,
.epic-fans-profile__comment-jump:focus-visible {
    color: var(--property-accent, #b91c1c);
    background: #fff8f8;
    border-color: #c7c1bc;
}

.epic-fans-profile__comment-jump:focus-visible {
    outline: 2px solid var(--property-accent, #b91c1c);
    outline-offset: 2px;
}

.epic-fans-profile__comment-jump-icon {
    display: flex;
    width: 15px;
    height: 15px;
}

.epic-fans-profile__comment-jump-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    .epic-fans-profile__nav .epic-fans-profile__comment-jump {
        min-width: 44px;
        padding: 5px 8px;
    }
}

/* NEWS COMMENT SHORTCUT — STEP 235 */

.epic-fans-news-comment-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    min-width: 48px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #ded8d2;
    border-radius: 18px;
    background: #fff;
    color: #665951;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease,
                border-color .18s ease,
                background-color .18s ease;
}

.epic-fans-news-comment-jump:hover,
.epic-fans-news-comment-jump:focus-visible {
    color: var(--property-accent, #b91c1c);
    border-color: #c7c1bc;
    background: #fff8f8;
}

.epic-fans-news-comment-jump:focus-visible {
    outline: 2px solid var(--property-accent, #b91c1c);
    outline-offset: 2px;
}

.epic-fans-news-comment-jump__icon {
    display: flex;
    width: 16px;
    height: 16px;
}

.epic-fans-news-comment-jump__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epic-fans-news-comment-jump[hidden] {
    display: none !important;
}

/* Drawer: between headline and full-article link. */
.epic-fans-news-drawer__scroll
.epic-fans-news-comment-jump {
    margin: 14px 0 15px;
}

/* Standalone article: between headline and article body. */
.epic-fans-news-article__card
.epic-fans-news-comment-jump {
    margin: 0 0 24px;
}


/* NEWS DRAWER COMMENT BUTTON LINE FIX — STEP 235C */

/* Keep the comments shortcut on its own line, with
   the full-article link immediately underneath. */
.epic-fans-news-drawer__scroll .epic-fans-news-comment-jump {
    display: flex;
    width: fit-content;
    margin: 14px 0 12px;
}

.epic-fans-news-drawer__scroll
.epic-fans-news-comment-jump[hidden] {
    display: none !important;
}

/* PUBLIC COMMENT DISCUSSION ANCHORS */
#fan-discussion {
    scroll-margin-top: 110px;
}


/* EPIC ACCOUNT NOTIFICATION TABS V1 */
.epic-account-dashboard__details
.epic-account-notification-tabs {
    grid-column: 2;
    align-self: start;
    min-width: 0;
    width: 100%;
}

.epic-account-notification-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.epic-account-notification-tabs__nav button {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dce0e5;
    border-radius: 6px;
    background: #fff;
    color: #34465a;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.epic-account-notification-tabs__nav
button[aria-selected="true"] {
    background: #c90000;
    border-color: #c90000;
    color: #fff;
}

.epic-account-notification-tabs__nav
button:focus-visible {
    outline: 2px solid #1672d3;
    outline-offset: 2px;
}

.epic-account-notification-tabs
[role="tabpanel"][hidden] {
    display: none !important;
}

.epic-account-notification-tabs__placeholder {
    padding: 18px;
    border: 1px solid #e3e0dd;
    border-radius: 10px;
    background: #faf9f7;
    font-size: 14px;
    line-height: 1.55;
}

.epic-account-notification-tabs__placeholder p {
    margin: 9px 0 0;
}

@media (max-width: 960px) {
    .epic-account-dashboard__details
    .epic-account-notification-tabs {
        grid-column: 1 / -1;
    }
}

.epic-account-dashboard__details:has(
    .epic-account-email__form
) .epic-account-notification-tabs {
    grid-column: 1 / -1;
}


/* ACCOUNT COMMENT REPLY EMAIL SETTINGS V1 */
.epic-account-comment-notifications {
    border: 1px solid #e3e0dd;
    border-radius: 10px;
    background: #faf9f7;
    padding: 18px;
    font-size: 14px;
    line-height: 1.55;
}

.epic-account-comment-notifications__heading {
    color: #65748a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 9px;
}

.epic-account-comment-notifications__heading span {
    color: #c90000;
    font-size: 19px;
}

.epic-account-comment-notifications__description {
    margin: 9px 0;
    font-size: 14px;
}

.epic-account-comment-notifications__choices {
    display: flex;
    gap: 7px;
    margin: 12px 0;
    padding: 0;
    border: 0;
}

.epic-account-comment-notifications__choices label {
    cursor: pointer;
    font-size: 14px;
}

.epic-account-comment-notifications__choices input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.epic-account-comment-notifications__choices span {
    display: block;
    padding: 9px 14px;
    border: 1px solid #d7dfe8;
    border-radius: 6px;
    background: #fff;
    color: #14263d;
    font-weight: 600;
}

.epic-account-comment-notifications__choices input:checked + span {
    background: #c90000;
    border-color: #c90000;
    color: #fff;
}

.epic-account-comment-notifications__choices
input:focus-visible + span {
    outline: 2px solid #1672d3;
    outline-offset: 2px;
}

.epic-account-comment-notifications__choices:disabled label {
    cursor: wait;
    opacity: 0.6;
}

.epic-account-comment-notifications__status {
    font-size: 12px;
    color: #687585;
    margin: 9px 0 0;
}

.epic-account-comment-notifications__status[data-error="true"] {
    color: #ad2929;
}


/* COMMENT REPLY SETTINGS TYPOGRAPHY V2 */
.epic-account-dashboard__details
.epic-account-comment-notifications
.epic-account-comment-notifications__description {
    font-size: 14px;
    line-height: 1.55;
}

.epic-account-dashboard__details
.epic-account-comment-notifications
.epic-account-comment-notifications__status {
    font-size: 12px;
    line-height: 1.5;
    margin: 9px 0 0;
}

.epic-account-dashboard__details
.epic-account-comment-notifications
.epic-account-comment-notifications__explanation {
    font-size: 12px;
    line-height: 1.5;
    color: #687585;
    margin: 12px 0 0;
}

/* =========================================================
   History archive — anniversary calendar view
   Shared across all Epic Fans properties.
   ========================================================= */

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-archive__content {
    padding: 24px 22px;
}

.epic-fans-history-calendar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
    width: 100%;
}

.epic-fans-history-calendar__month {
    min-width: 0;
}

.epic-fans-history-calendar__heading {
    margin: 0 0 12px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.epic-fans-history-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.epic-fans-history-calendar__weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #777;
}

.epic-fans-history-calendar__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 3px 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    font-size: 12px;
    color: #333;
}

button.epic-fans-history-calendar__day {
    cursor: pointer;
}

button.epic-fans-history-calendar__day:hover,
button.epic-fans-history-calendar__day:focus-visible {
    background: rgba(197, 31, 45, 0.09);
}

.epic-fans-history-calendar__day.is-today {
    background: rgba(197, 31, 45, 0.12);
    font-weight: 800;
}

.epic-fans-history-calendar__dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    min-height: 5px;
    margin-top: 3px;
}

.epic-fans-history-calendar__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .epic-fans-history-archive.is-calendar-view
    .epic-fans-history-archive__content {
        padding: 16px 12px;
    }

    .epic-fans-history-calendar {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .epic-fans-history-calendar__day {
        min-height: 42px;
        font-size: 14px;
    }

    .epic-fans-history-calendar__dot {
        width: 6px;
        height: 6px;
    }
}

/* History Calendar — date and dot refinements */

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__grid {
    row-gap: 9px;
}

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__day {
    min-height: 44px;
    gap: 5px;
}

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 9px;
    margin-top: 0;
}

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__dot {
    display: block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    flex: 0 0 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}


/* History Calendar — final dot size and spacing */

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__dots {
    gap: 2px;
    min-height: 8px;
}

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    flex: 0 0 8px;
}



/* History Calendar — softer month and date typography */

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__heading {
    color: #45413e;
}

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__day {
    color: #514c48;
}

.epic-fans-history-archive.is-calendar-view
.epic-fans-history-calendar__weekday {
    color: #77716b;
}

/* =========================================================
   History Calendar — date-events panel
   ========================================================= */

.epic-fans-history-calendar__overlay[hidden] {
    display: none !important;
}

.epic-fans-history-calendar__overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(20, 24, 28, 0.55);
}

.epic-fans-history-calendar__panel {
    width: 100%;
    max-width: 520px;
    max-height: min(75vh, 650px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.epic-fans-history-calendar__panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e4ddd6;
}

body:not(.home) main.site-shell
.epic-fans-history-calendar__panel-title,
.epic-fans-history-calendar__panel-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #45413e;
}

.epic-fans-history-calendar__panel-close {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f1ee;
    color: #514c48;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.epic-fans-history-calendar__panel-close:hover {
    background: #e9e3df;
}

.epic-fans-history-calendar__event-list {
    margin: 0;
    padding: 10px 14px;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.epic-fans-history-calendar__event-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee9e4;
}

.epic-fans-history-calendar__event-item:last-child {
    border-bottom: 0;
}

.epic-fans-history-calendar__event-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 10px;
    text-decoration: none;
    border-radius: 8px;
}

.epic-fans-history-calendar__event-link:hover,
.epic-fans-history-calendar__event-link:focus-visible {
    background: #f8f5f2;
}

.epic-fans-history-calendar__event-dot {
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.epic-fans-history-calendar__event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.epic-fans-history-calendar__event-title {
    color: #05647c;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.epic-fans-history-calendar__event-meta {
    color: #77716b;
    font-size: 12px;
    line-height: 1.4;
}

.epic-fans-history-calendar__event-arrow {
    margin-left: auto;
    color: #8a817a;
    font-size: 26px;
    line-height: 1;
}

@media (max-width: 700px) {
    .epic-fans-history-calendar__overlay {
        padding: 12px;
    }

    .epic-fans-history-calendar__panel {
        max-height: 85vh;
    }

    .epic-fans-history-calendar__panel-header {
        padding: 16px;
    }

    .epic-fans-history-calendar__event-list {
        padding: 8px;
    }

    .epic-fans-history-calendar__event-link {
        padding: 13px 8px;
        gap: 11px;
    }
}


/* =========================================================
   History Calendar — date panel visual refinements
   ========================================================= */

/* Fast, subtle entrance animation. */
@keyframes epic-fans-calendar-overlay-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes epic-fans-calendar-panel-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.epic-fans-history-calendar__overlay:not([hidden]) {
    animation: epic-fans-calendar-overlay-enter
        180ms ease-out both;
}

.epic-fans-history-calendar__overlay:not([hidden])
.epic-fans-history-calendar__panel {
    animation: epic-fans-calendar-panel-enter
        180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Slightly larger, softer dark-grey event titles. */
.epic-fans-history-calendar__event-link
.epic-fans-history-calendar__event-title {
    color: #45413e;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

/* Category text inherits the colour supplied by the event data. */
.epic-fans-history-calendar__event-category {
    font-weight: 600;
}

/* Respect reduced-motion accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
    .epic-fans-history-calendar__overlay:not([hidden]),
    .epic-fans-history-calendar__overlay:not([hidden])
    .epic-fans-history-calendar__panel {
        animation: none;
    }
}


/* =========================================================
   History Calendar — branded date panel refinements
   ========================================================= */

/* Compact header using the current property's theme colour. */
.epic-fans-history-calendar__panel-header {
    padding: 12px 20px;
    background: var(--property-accent);
    border-bottom: 0;
}

/* White date heading on the branded header. */
.epic-fans-history-calendar__panel-header
.epic-fans-history-calendar__panel-title {
    color: #ffffff !important;
    font-size: 21px;
    line-height: 1.25;
}

/* Close button styled for the coloured background. */
.epic-fans-history-calendar__panel-header
.epic-fans-history-calendar__panel-close {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 25px;
}

.epic-fans-history-calendar__panel-header
.epic-fans-history-calendar__panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Align the category dot with the event title's first line. */
.epic-fans-history-calendar__event-link
.epic-fans-history-calendar__event-dot {
    align-self: flex-start;
    margin-top: 7px;
}

/* Make the historical year and category easier to read. */
.epic-fans-history-calendar__event-link
.epic-fans-history-calendar__event-meta {
    font-size: 14px;
    line-height: 1.4;
}

/* Slightly tighter header on mobile. */
@media (max-width: 700px) {
    .epic-fans-history-calendar__panel-header {
        padding: 11px 16px;
    }
}



/* History Calendar — slightly softer popup event titles */
.epic-fans-history-calendar__event-link
.epic-fans-history-calendar__event-title {
    color: #5b5754;
}

/* =========================================================
   History archive — swipeable mobile view navigation
   ========================================================= */

@media (max-width: 700px) {

    .epic-fans-history-archive__views {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
        padding: 4px;

        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .epic-fans-history-archive__views::-webkit-scrollbar {
        display: none;
    }

    .epic-fans-history-archive__view {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 9px 15px;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }

}


/* =========================================================
   History archive — mobile view dropdown
   ========================================================= */

.epic-fans-history-archive__mobile-selector {
    display: none;
}

@media (max-width: 700px) {

    .epic-fans-history-archive__views {
        display: none;
    }

    .epic-fans-history-archive__mobile-selector {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }

    .epic-fans-history-archive__mobile-selector label {
        font-size: 13px;
        font-weight: 700;
        color: #6d6660;
    }

    .epic-fans-history-archive__mobile-selector select {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 10px 42px 10px 16px;
        border: 1px solid #d9d3cb;
        border-radius: 12px;
        background-color: #ffffff;
        color: #45413e;
        font: inherit;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }

    .epic-fans-history-archive__mobile-selector select:focus-visible {
        outline: 2px solid var(--property-accent, #c51f2d);
        outline-offset: 2px;
    }
}



/* History Calendar popup category icons */
.epic-fans-history-calendar__event-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.epic-fans-history-calendar__category-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
}

.epic-fans-history-archive__item
[data-history-category-icon][hidden] {
    display: none !important;
}


/* History archive — redesigned chronological timeline */

/* Metadata is hidden in other History views. */
.epic-fans-history-archive__event-meta {
    display: none;
}

/* Year headings */
body:not(.home) main.site-shell
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__year-heading {
    margin-bottom: 15px;
    padding-bottom: 12px;
    font-size: 27px !important;
    line-height: 1.2 !important;
    color: #292d33;
    border-bottom: 1px solid #ded8d2;
}

.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__year {
    margin-bottom: 32px;
}

/* Timeline rows and connecting line */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__item {
    position: relative;
}

.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__item::before {
    content: "";
    position: absolute;
    left: 95px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e3de;
}

.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link {
    position: relative;
    display: grid;
    grid-template-columns: 76px 14px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: start;

    padding: 12px 28px 12px 0;
    border-radius: 9px;
    text-decoration: none;
    transition: background-color .16s ease;
}

.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link:hover,
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link:focus-visible {
    background: #f8f5f2;
    transform: none;
}

/* Event date */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__date {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 2px;

    color: #79716b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* Coloured marker on timeline */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link::before {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: center;
    align-self: start;

    width: 10px;
    height: 10px;
    margin-top: 5px;
    border: 2px solid #fff;
    border-radius: 50%;

    background: var(--history-category-color, #777777);
    box-sizing: content-box;
    z-index: 1;
}

/* Event title */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__title {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;

    color: #514d4a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link:hover
.epic-fans-history-archive__title,
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link:focus-visible
.epic-fans-history-archive__title {
    color: var(--property-accent, #c51f2d);
    text-decoration: none !important;
}

/* Category icon and label */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__event-meta {
    grid-column: 3;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;

    color: var(--history-category-color, #777777);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__category-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
}

/* Subtle drawer arrow */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #99918a;
    font-size: 24px;
    line-height: 1;
}

/* Responsive year timeline */
@media (max-width: 700px) {
    body:not(.home) main.site-shell
    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__year-heading {
        font-size: 25px !important;
    }

    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__item::before {
        left: 76px;
    }

    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__link {
        grid-template-columns: 56px 12px minmax(0, 1fr);
        gap: 4px 8px;
        padding: 12px 24px 12px 0;
    }

    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__date {
        font-size: 12px;
    }

    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__title {
        font-size: 15px;
    }

    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__event-meta {
        font-size: 11px;
    }
}

/* =========================================================
   History archive — year timeline refinements
   ========================================================= */

/* Remove date underline in Oldest / Newest timeline view */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__date {
    text-decoration: none !important;
}

/* Tiny visual alignment correction for timeline dots */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link::before {
    transform: translateX(-1px);
}

@media (max-width: 700px) {
    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__link::before {
        transform: translateX(-1px);
    }
}



/* History year timeline — corrected link and marker alignment */

/* Remove link-level underline so it cannot propagate to child text. */
.epic-fans-history-archive.is-year-view
a.epic-fans-history-archive__link,
.epic-fans-history-archive.is-year-view
a.epic-fans-history-archive__link:hover,
.epic-fans-history-archive.is-year-view
a.epic-fans-history-archive__link:focus-visible {
    text-decoration: none !important;
}

/* Dates and categories should never be underlined. */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__date,
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__event-meta,
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__event-meta span {
    text-decoration: none !important;
}

/* Preserve underlined event titles. */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__title,
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link:hover
.epic-fans-history-archive__title,
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link:focus-visible
.epic-fans-history-archive__title {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/*
 * Desktop grid:
 * 76px date + 12px gap + 7px marker half-width = 95px.
 * The line is 2px wide, so its left edge must be 94px.
 */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__item::before {
    left: 94px;
}

/* Keep the marker centred in its grid column. */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link::before {
    transform: none !important;
}

/*
 * Mobile grid:
 * 56px date + 8px gap + 6px marker half-width = 70px.
 * The 2px line starts at 69px.
 */
@media (max-width: 700px) {
    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__item::before {
        left: 69px;
    }
}

/* =========================================================
   History archive — year timeline spacing refinements
   ========================================================= */

/* Replace the existing year underline with one that stretches further right */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__year-heading {
    position: relative;
    border-bottom: 0;
}

.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__year-heading::after {
    content: "";
    position: absolute;
    left: 0;
    right: -36px;
    bottom: 0;
    height: 1px;
    background: #ded8d2;
}

/*
 * Extend the hover background a bit further left without moving
 * the text content itself.
 */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__link {
    margin-left: -10px;
    padding-left: 10px;
}

/* Mobile: keep the same feel, but slightly smaller extension */
@media (max-width: 700px) {
    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__year-heading::after {
        right: -20px;
    }

    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__link {
        margin-left: -8px;
        padding-left: 8px;
    }
}



/* History year divider — single clean line */

/* Remove the additional pseudo-element line. */
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__year-heading::after {
    content: none !important;
}

/*
 * Extend the heading's original border by extending
 * the heading itself, rather than drawing another line.
 */
body:not(.home) main.site-shell
.epic-fans-history-archive.is-year-view
.epic-fans-history-archive__year-heading {
    border-bottom: 1px solid #ded8d2 !important;
    margin-right: -36px;
}

/* Smaller extension on mobile. */
@media (max-width: 700px) {
    body:not(.home) main.site-shell
    .epic-fans-history-archive.is-year-view
    .epic-fans-history-archive__year-heading {
        margin-right: -20px;
    }
}


/* History By Date — redesigned anniversary timeline */

/* Keep anniversary headings visually distinct. */
body:not(.home) main.site-shell
.epic-fans-history-archive.is-date-view
.epic-fans-history-archive__year-heading {
    color: #292d33;
}

/* The left-hand column now contains the historical year. */
.epic-fans-history-archive.is-date-view
.epic-fans-history-archive__date {
    font-variant-numeric: tabular-nums;
}

/* Reuse the same comfortable spacing as Oldest/Newest. */
.epic-fans-history-archive.is-date-view
.epic-fans-history-archive__date-group {
    margin-bottom: 32px;
}


/* History Category — redesigned themed timeline */

/* Category name and existing configured SVG icon. */
body:not(.home) main.site-shell
.epic-fans-history-archive.is-category-view.is-year-view
.epic-fans-history-archive__year-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #292d33;
}

.epic-fans-history-archive.is-category-view
.epic-fans-history-archive__heading-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: var(--history-category-color, #777777);
}

/*
 * Allow enough room for full dates in Category view.
 * Keep the timeline line centred behind its markers.
 */
.epic-fans-history-archive.is-category-view.is-year-view
.epic-fans-history-archive__link {
    grid-template-columns: 122px 14px minmax(0, 1fr);
}

.epic-fans-history-archive.is-category-view.is-year-view
.epic-fans-history-archive__item::before {
    left: 140px;
}

.epic-fans-history-archive.is-category-view.is-year-view
.epic-fans-history-archive__date {
    font-size: 12px;
}

/* Category is already displayed in its section heading. */
.epic-fans-history-archive.is-category-view.is-year-view
.epic-fans-history-archive__event-meta {
    display: none;
}

@media (max-width: 700px) {
    .epic-fans-history-archive.is-category-view.is-year-view
    .epic-fans-history-archive__link {
        grid-template-columns: 104px 12px minmax(0, 1fr);
        gap: 4px 8px;
    }

    .epic-fans-history-archive.is-category-view.is-year-view
    .epic-fans-history-archive__item::before {
        left: 117px;
    }

    .epic-fans-history-archive.is-category-view.is-year-view
    .epic-fans-history-archive__heading-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}


/* History archive — combined year and date sorting */

.epic-fans-history-archive__sort[hidden] {
    display: none !important;
}

.epic-fans-history-archive__sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 27px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e3de;
}

.epic-fans-history-archive__sort-label {
    font-size: 13px;
    font-weight: 700;
    color: #736b65;
}

.epic-fans-history-archive__sort-options {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    background: #f3efeb;
    border-radius: 999px;
}

.epic-fans-history-archive__sort-options button {
    border: 0;
    border-radius: 999px;
    padding: 7px 13px;
    color: #615b55;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.epic-fans-history-archive__sort-options button.is-active {
    background: var(--property-accent, #c51f2d);
    color: #fff;
}

.epic-fans-history-archive__sort-options button:focus-visible {
    outline: 2px solid var(--property-accent, #c51f2d);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .epic-fans-history-archive__sort {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .epic-fans-history-archive__sort-options button {
        padding: 8px 12px;
    }
}


/* History archive — shared view and sort toolbar */

.epic-fans-history-archive__toolbar {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    min-width: 0;
    margin-bottom: 28px;
}

.epic-fans-history-archive__toolbar
.epic-fans-history-archive__views {
    margin: 0;
}

.epic-fans-history-archive__toolbar
.epic-fans-history-archive__sort {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.epic-fans-history-archive__toolbar
.epic-fans-history-archive__sort[hidden] {
    display: none !important;
}

@media (max-width: 700px) {

    .epic-fans-history-archive__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 22px;
    }

    .epic-fans-history-archive__toolbar
    .epic-fans-history-archive__views {
        display: none;
    }

    .epic-fans-history-archive__toolbar
    .epic-fans-history-archive__mobile-selector {
        width: 100%;
        margin-bottom: 0;
    }

    .epic-fans-history-archive__toolbar
    .epic-fans-history-archive__sort {
        justify-content: space-between;
        width: 100%;
    }
}

/* =========================================================
   History archive — sort toggle visual refinement
   ========================================================= */

.epic-fans-history-archive__toolbar
.epic-fans-history-archive__sort {
    gap: 12px;
}

.epic-fans-history-archive__sort-label {
    color: #6f6761;
    font-weight: 700;
    line-height: 1;
}

.epic-fans-history-archive__sort-options {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    background: #ebe5df;
    border: 1px solid #e0d8d1;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.epic-fans-history-archive__sort-options button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: transparent;
    color: #5f5852;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.epic-fans-history-archive__sort-options button:hover {
    color: #3f3a36;
}

.epic-fans-history-archive__sort-options button.is-active {
    background: var(--property-accent, #c51f2d);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
    .epic-fans-history-archive__toolbar
    .epic-fans-history-archive__sort {
        gap: 10px;
    }

    .epic-fans-history-archive__sort-options {
        padding: 3px;
    }

    .epic-fans-history-archive__sort-options button {
        min-height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }
}

