/* =========================================================
   ANY EVENT ARCHIVE — isolated v4
   Legacy ./style.css is intentionally not loaded on this page.
   ========================================================= */

:root {
    --tp-blue: #005bac;
    --tp-blue-bright: #0877d1;
    --tp-black: #080a0d;
    --tp-ink: #11151a;
    --tp-muted: #66717c;
    --tp-line: #dde3e9;
    --tp-white: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: var(--tp-ink);
    background: #fff;
}

body > article > header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

body > article > header nav a {
    transition: color .2s ease, opacity .2s ease;
}

body > article > header nav a:hover,
body > article > header nav a:focus-visible {
    color: var(--tp-blue);
}

.page_head.event-archive-hero {
    position: relative;
    min-height: 360px;
    box-sizing: border-box;
    padding: clamp(80px, 10vw, 132px) 0 clamp(70px, 8vw, 110px);
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(0, 91, 172, .20), transparent 46%),
        var(--tp-black);
    color: #fff;
}

.page_head.event-archive-hero::before {
    content: "EVENTS";
    position: absolute;
    right: -1vw;
    bottom: -3.5vw;
    color: rgba(255, 255, 255, .038);
    font-size: clamp(130px, 20vw, 310px);
    line-height: .8;
    font-weight: 700;
    letter-spacing: -.06em;
    pointer-events: none;
}

.event-archive-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.event-archive-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 24px;
    color: #57adf2;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .26em;
}

.event-archive-hero__eyebrow::before {
    content: "";
    width: 48px;
    height: 2px;
    background: var(--tp-blue-bright);
}

.page_head.event-archive-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 6vw, 84px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: .035em;
}

.event-archive-hero__sub {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 500;
    letter-spacing: .08em;
}

.page_content.page_event.event-archive-page {
    margin: 0;
    padding: clamp(66px, 7vw, 104px) 0 clamp(86px, 8vw, 126px);
    background: #fff;
}

.event-archive-page__inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.event-archive-page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 42px;
    margin-bottom: 38px;
}

.event-archive-page__eyebrow {
    margin: 0 0 14px;
    color: var(--tp-blue);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .24em;
}

.event-archive-page__head h2 {
    margin: 0;
    color: var(--tp-ink);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: .035em;
}

.event-archive-page__index {
    margin: 0 0 5px;
    color: #96a0aa;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .18em;
}

/* Everything below is isolated with one unique root ID. */
#tp-event-archive,
#tp-event-archive *,
#tp-event-archive *::before,
#tp-event-archive *::after {
    box-sizing: border-box;
}

#tp-event-archive {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#tp-event-archive [hidden] {
    display: none !important;
}

#tp-event-archive .tp-event-toolbar {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 48px !important;
    padding: 0 !important;
    border: 1px solid var(--tp-line);
    background: #fff;
    float: none !important;
}

#tp-event-archive .tp-event-toolbar__row {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 126px minmax(0, 1fr) !important;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
}

#tp-event-archive .tp-event-toolbar__row + .tp-event-toolbar__row {
    border-top: 1px solid var(--tp-line);
}

#tp-event-archive .tp-event-toolbar__label {
    display: flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 22px;
    border-right: 1px solid var(--tp-line);
    color: var(--tp-blue);
    background: #f7f9fb;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .20em;
}

#tp-event-archive .tp-event-year-nav {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

#tp-event-archive .tp-event-year-button {
    appearance: none;
    position: relative;
    display: grid !important;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 112px !important;
    min-height: 62px;
    margin: 0 !important;
    padding: 0 22px;
    border: 0;
    border-right: 1px solid #e3e7eb;
    background: #fff;
    color: #20252b;
    cursor: pointer;
}

#tp-event-archive .tp-event-year-button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--tp-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

#tp-event-archive .tp-event-year-button strong {
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .03em;
}

#tp-event-archive .tp-event-year-button small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf1f4;
    color: #66717c;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

#tp-event-archive .tp-event-year-button:hover,
#tp-event-archive .tp-event-year-button.is-active {
    color: var(--tp-blue);
    background: #f8fbff;
}

#tp-event-archive .tp-event-year-button.is-active::after {
    transform: scaleX(1);
}

#tp-event-archive .tp-event-year-button.is-active small {
    color: #fff;
    background: var(--tp-blue);
}

#tp-event-archive .tp-event-category-nav {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tp-event-archive .tp-event-category-nav button {
    appearance: none;
    width: auto !important;
    min-width: 0 !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 12px 16px;
    border: 0;
    border-right: 1px solid #e3e7eb;
    background: #fff;
    color: #222;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
}

#tp-event-archive .tp-event-category-nav button:last-child {
    border-right: 0;
}

#tp-event-archive .tp-event-category-nav button:hover,
#tp-event-archive .tp-event-category-nav button.is-active {
    color: #fff;
    background: var(--tp-blue);
}

#tp-event-archive section.tp-event-year-panel {
    display: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    clear: both !important;
}

#tp-event-archive section.tp-event-year-panel.is-active {
    display: block !important;
}

#tp-event-archive .tp-event-year-head {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #dfe4e9;
    float: none !important;
}

#tp-event-archive .tp-event-year-head h2 {
    display: flex !important;
    align-items: baseline;
    gap: 7px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--tp-ink);
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: .025em;
}

#tp-event-archive .tp-event-year-head h2 small {
    color: #737d86;
    font-size: 14px;
    font-weight: 600;
}

#tp-event-archive .tp-event-year-head p {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #8a949d;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .16em;
}

#tp-event-archive .tp-event-year-head p strong {
    color: var(--tp-blue);
    font-size: 16px;
}

#tp-event-archive .tp-event-grid {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#tp-event-archive article.tp-event-card {
    position: relative;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    flex-direction: column !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    overflow: hidden;
    border: 1px solid #dfe5eb;
    background: #fff;
    float: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

#tp-event-archive .tp-event-card__thumb {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #f1f3f5;
}

#tp-event-archive .tp-event-card__thumb img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
}

#tp-event-archive .tp-event-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(0, 91, 172, .23);
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .16em;
}

#tp-event-archive .tp-event-card__body {
    position: relative;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 17px 17px 20px !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

#tp-event-archive .tp-event-card__type {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    padding: 6px 10px !important;
    border: 1px solid #d8e1eb;
    background: #f8fbff;
    line-height: 1;
    white-space: nowrap;
}

#tp-event-archive .tp-event-card__type i {
    display: block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
}

#tp-event-archive .tp-event-card__type em {
    display: block;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .06em;
}

#tp-event-archive .tp-event-card__type--live {
    border-color: #c7d7ea;
    background: #f5f9ff;
    color: #004f9f;
}

#tp-event-archive .tp-event-card__type--live i {
    background: var(--tp-blue);
}

#tp-event-archive .tp-event-card__type--event {
    border-color: #d8d2c8;
    background: #faf8f4;
    color: #4a4035;
}

#tp-event-archive .tp-event-card__type--event i {
    background: #b3832b;
}

#tp-event-archive .tp-event-card h3 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 3em;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #111;
    font-size: 17px;
    line-height: 1.48;
    font-weight: 700;
    word-break: normal !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

#tp-event-archive .tp-event-card__info {
    display: block !important;
    width: 100% !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    color: #59636d;
    font-size: 12.5px;
    line-height: 1.65;
    writing-mode: horizontal-tb !important;
}

#tp-event-archive .tp-event-card__date,
#tp-event-archive .tp-event-card__place,
#tp-event-archive .tp-event-card__memo {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
}

#tp-event-archive .tp-event-card__date {
    color: #333a42;
    font-weight: 600;
}

#tp-event-archive .tp-event-card__place {
    margin-top: 2px !important;
}

#tp-event-archive .tp-event-card__memo {
    display: -webkit-box !important;
    margin-top: 7px !important;
    overflow: hidden;
    color: #78818a;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#tp-event-archive .tp-event-no-result,
#tp-event-archive .tp-event-empty {
    width: 100% !important;
    margin: 0 !important;
    padding: 52px 24px !important;
    border: 1px solid #e0e5ea;
    background: #f8fafb;
    text-align: center;
    color: #69737d;
    font-size: 14px;
    line-height: 1.8;
}

body > article > footer {
    margin-top: 0;
}

@media screen and (min-width: 768px) {
    body > article > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 70px;
        min-height: 70px;
        box-sizing: border-box;
        padding: 0 !important;
    }

    body > article > header .header_logo {
        position: static !important;
        display: flex;
        align-items: center;
        height: 70px;
        margin: 0 0 0 30px !important;
        padding: 0 !important;
        transform: none !important;
    }

    body > article > header .header_logo a {
        display: flex;
        align-items: center;
    }

    body > article > header nav {
        position: static !important;
        height: 70px;
        margin: 0 28px 0 auto !important;
        padding: 0 !important;
        transform: none !important;
    }

    body > article > header nav > ul {
        display: flex;
        align-items: center;
        height: 70px;
        margin: 0 !important;
        padding: 0 !important;
    }

    body > article > header nav > ul > li {
        display: flex;
        align-items: center;
        height: 70px;
    }
}

@media screen and (max-width: 1120px) {
    #tp-event-archive .tp-event-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 900px) {
    .event-archive-page__head {
        display: block;
    }

    .event-archive-page__index {
        margin-top: 18px;
    }

    #tp-event-archive .tp-event-toolbar__row {
        grid-template-columns: 108px minmax(0, 1fr) !important;
    }

    #tp-event-archive .tp-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 767px) {
    .page_head.event-archive-hero {
        min-height: 280px;
        padding: 74px 0 68px;
    }

    .event-archive-hero__inner,
    .event-archive-page__inner {
        width: calc(100% - 30px);
    }

    .event-archive-hero__eyebrow {
        margin-bottom: 20px;
        font-size: 10px;
    }

    .event-archive-hero__eyebrow::before {
        width: 34px;
    }

    .page_head.event-archive-hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .event-archive-hero__sub {
        margin-top: 14px;
        font-size: 12px;
    }

    .page_content.page_event.event-archive-page {
        padding-top: 58px;
        padding-bottom: 76px;
    }

    .event-archive-page__head {
        margin-bottom: 28px;
    }

    .event-archive-page__head h2 {
        font-size: 31px;
    }

    #tp-event-archive .tp-event-toolbar {
        margin-bottom: 36px !important;
    }

    #tp-event-archive .tp-event-toolbar__row {
        display: block !important;
    }

    #tp-event-archive .tp-event-toolbar__label {
        min-height: 34px;
        padding: 0 14px;
        border-right: 0;
        border-bottom: 1px solid var(--tp-line);
    }

    #tp-event-archive .tp-event-year-button {
        min-width: 102px !important;
        min-height: 56px;
        padding: 0 17px;
    }

    #tp-event-archive .tp-event-category-nav {
        grid-template-columns: 1fr !important;
    }

    #tp-event-archive .tp-event-category-nav button {
        min-height: 48px;
        border-right: 0;
        border-bottom: 1px solid #e3e7eb;
    }

    #tp-event-archive .tp-event-category-nav button:last-child {
        border-bottom: 0;
    }

    #tp-event-archive .tp-event-year-head {
        margin-bottom: 18px !important;
    }

    #tp-event-archive .tp-event-year-head h2 {
        font-size: 30px;
    }

    #tp-event-archive .tp-event-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    #tp-event-archive .tp-event-card__thumb {
        aspect-ratio: 16 / 11;
    }

    #tp-event-archive .tp-event-card h3 {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* v6: JS state is controlled only inside the unique archive root. */
#tp-event-archive .tp-event-card.is-filtered-out {
    display: none !important;
}

#tp-event-archive[data-js-ready="true"] .tp-event-year-button,
#tp-event-archive[data-js-ready="true"] .tp-event-category-nav button {
    touch-action: manipulation;
}
