:root {
    --p1-blue: #0b4ea2;
    --p1-blue-dark: #082b5f;
    --p1-navy: #07111f;
    --p1-navy-2: #0d203b;
    --p1-gold: #c99a2e;
    --p1-gold-light: #f0cf78;
    --p1-silver: #f3f5f8;
    --p1-border: #cfd6df;
    --p1-text: #101722;
    --p1-muted: #5e6978;
    --p1-font-body: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
    --p1-font-display: "Barlow Condensed", "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
}

.page-hero.page-hero--guide {
    padding: clamp(26px, 4vw, 48px) clamp(20px, 5vw, 72px);
}

.page-hero.page-hero--guide h1 {
    font-size: clamp(30px, 4vw, 50px);
    margin: 6px 0;
}

.players-guide-test .section {
    max-width: 1080px;
    padding-bottom: 18px;
    padding-top: 18px;
}

.guide-toolbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--p1-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 78px;
    z-index: 12;
}

.guide-toolbar > a:not(.button) {
    color: var(--p1-blue-dark);
    font-size: 13px;
    font-weight: 800;
}

.guide-toolbar label {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.guide-toolbar label span {
    color: var(--p1-muted);
    font-size: 12px;
    font-weight: 800;
}

.guide-toolbar select {
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    font: inherit;
    max-width: 350px;
    min-height: 40px;
    padding: 7px 10px;
}

.guide-toolbar .button {
    min-width: 110px;
    padding: 9px 14px;
}

.guide-section,
.guide-page,
.guide-document {
    scroll-margin-top: 150px;
}

.guide-section .section__header > span {
    color: var(--p1-muted);
    font-family: var(--p1-font-display);
    font-size: 13px;
    font-weight: 900;
}

.guide-overview-pages,
.guide-document-list {
    display: grid;
    gap: 10px;
}

.guide-page,
.guide-document {
    background: #fff;
    border: 1px solid var(--p1-border);
    margin: 0;
}

.guide-page figcaption {
    align-items: center;
    border-bottom: 1px solid var(--p1-border);
    display: flex;
    font-weight: 800;
    gap: 10px;
    padding: 10px 12px;
}

.guide-page figcaption span,
.guide-document summary > span {
    color: var(--p1-blue);
    font-family: var(--p1-font-display);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.guide-page img,
.guide-document img {
    display: block;
    height: auto;
    width: 100%;
}

.guide-document {
    border-radius: 3px;
}

.guide-document summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 66px minmax(0, 1fr);
    list-style-position: inside;
    padding: 11px 12px;
}

.guide-document[open] summary {
    border-bottom: 1px solid var(--p1-border);
}

.guide-document summary strong {
    font-size: 14px;
    line-height: 1.3;
}

@media (max-width: 760px) {
    .guide-toolbar {
        align-items: stretch;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        top: 64px;
    }

    .guide-toolbar label {
        align-items: stretch;
        display: grid;
        grid-column: 1 / -1;
        margin-left: 0;
    }

    .guide-toolbar select,
    .guide-toolbar .button {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
    }

    .guide-document summary {
        grid-template-columns: 58px minmax(0, 1fr);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #e9edf2;
    color: var(--p1-text);
    font-family: var(--p1-font-body);
    font-feature-settings: "palt";
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    background: linear-gradient(180deg, #0b182b 0%, #06101f 100%);
    border-bottom: 4px solid var(--p1-gold);
    color: #fff;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    min-height: 78px;
    padding: 14px clamp(20px, 4vw, 64px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-logo {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-weight: 800;
}

.site-logo__mark,
.site-footer__logo {
    font-family: var(--p1-font-display);
    color: #fff;
    font-size: 42px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.site-logo__text {
    color: var(--p1-gold-light);
    font-family: var(--p1-font-display);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-nav__list,
.site-footer__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    color: #e8edf5;
    display: inline-flex;
    font-family: var(--p1-font-display);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    padding: 10px 0;
    white-space: nowrap;
}

.site-nav__list a:hover {
    color: var(--p1-gold-light);
}

.menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 3px;
    cursor: pointer;
    display: none;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 42px;
}

.menu-toggle__line {
    background: #fff;
    height: 2px;
    left: 10px;
    position: absolute;
    transition: opacity 160ms ease, transform 160ms ease;
    width: 20px;
}

.menu-toggle__line:nth-child(1) {
    transform: translateY(-6px);
}

.menu-toggle__line:nth-child(3) {
    transform: translateY(6px);
}

.menu-toggle.is-open .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg);
}

.site-main {
    min-height: 70vh;
}

.hero {
    background-color: var(--p1-navy);
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid #c9d0da;
    color: #fff;
    min-height: 510px;
    overflow: hidden;
    padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
    position: relative;
}

/* 動画あり時は背景画像を敷かない（動画読込前に参考画像が一瞬見えるのを防ぐ） */
.hero--video {
    background-image: none;
}

.hero__video {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.hero__mask {
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.32) 0,
            rgba(0, 0, 0, 0.32) 1px,
            transparent 1px,
            transparent 4px
        ),
        rgba(0, 0, 0, 0.46);
    inset: 0;
    position: absolute;
    z-index: 1;
}

.hero__content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
}

.hero h1 {
    font-family: var(--p1-font-body);
    font-size: clamp(38px, 5vw, 70px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 12px 0 16px;
}

.hero p {
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 800;
    margin: 0;
}

.hero__event {
    background: rgba(4, 11, 21, 0.84);
    border: 1px solid rgba(240, 207, 120, 0.5);
    border-left: 6px solid var(--p1-gold);
    border-radius: 3px;
    display: grid;
    gap: 6px;
    margin-top: 28px;
    max-width: 420px;
    padding: 18px;
}

.hero__event span {
    font-family: var(--p1-font-display);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.hero__event strong {
    color: var(--p1-gold);
    font-family: var(--p1-font-display);
    font-size: 22px;
}

.eyebrow {
    color: var(--p1-gold);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    border: 1px solid transparent;
    border-radius: 3px;
    display: inline-flex;
    font-family: var(--p1-font-body);
    font-weight: 700;
    justify-content: center;
    min-width: 180px;
    padding: 13px 20px;
}

.button--gold {
    background: linear-gradient(180deg, var(--p1-gold-light), var(--p1-gold));
    color: #111827;
}

.button--outline {
    background: rgba(4, 11, 21, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.button--blue {
    background: linear-gradient(180deg, #155db8, var(--p1-blue-dark));
    color: #fff;
}

.section {
    margin: 0 auto;
    max-width: 1220px;
    padding: 28px 20px;
}

.section__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.section h2 {
    border-left: 6px solid var(--p1-gold);
    color: var(--p1-navy);
    font-family: var(--p1-font-display);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 18px;
    padding-left: 12px;
    text-transform: uppercase;
}

.section__placeholder,
.section--grid > div {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    padding: 24px;
}

.card-grid,
.satellite-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.satellite-list {
    grid-template-columns: 1fr;
}

.event-card,
.satellite-card,
.winner-card,
.sponsor-card,
.info-panel {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    overflow: hidden;
}

.event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.event-card:hover {
    box-shadow: 0 12px 24px rgba(10, 24, 42, 0.14);
    transform: translateY(-2px);
}

.event-card__visual {
    display: block;
    position: relative;
}

.event-card__visual .status-badge {
    left: 12px;
    position: absolute;
    top: 12px;
    z-index: 1;
}

.event-card__image {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.event-card__image--placeholder,
.satellite-card__image--placeholder,
.winner-card__image--placeholder {
    background-color: var(--p1-silver);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(207, 214, 223, 0.45)),
        url("../images/logo/p1-logo-horizontal.png");
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 62% auto;
}

.event-card__body,
.satellite-card__body,
.winner-card__body,
.info-panel {
    padding: 20px;
}

.event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.event-card__body > .text-link {
    margin-top: auto;
    padding-top: 8px;
}

.event-card__series {
    color: var(--p1-blue);
    font-family: var(--p1-font-display);
    font-size: 12px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.event-card--completed {
    background: #e3e5e8;
    border-color: #c5c9ce;
}

.event-card--completed .event-card__image {
    filter: grayscale(1);
    opacity: 0.62;
}

.event-card--completed .event-card__body {
    opacity: 0.7;
}

.event-card--completed:hover {
    transform: none;
}

/* Tentative (仮開催): same muted treatment as completed, but the status
   badge keeps its normal state label (開催予定/開催中/終了). */
.event-card--tentative {
    background: #e3e5e8;
    border-color: #c5c9ce;
}

.event-card--tentative .event-card__image {
    filter: grayscale(1);
    opacity: 0.62;
}

.event-card--tentative .event-card__body {
    opacity: 0.7;
}

.event-card h3,
.satellite-card h3,
.winner-card h3,
.sponsor-card h3,
.schedule-row h3 {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    margin: 8px 0;
}

.winner-card__image {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.sponsor-tier + .sponsor-tier {
    margin-top: 32px;
}

.sponsor-tier__title {
    color: var(--p1-navy);
    font-family: var(--p1-font-display);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.sponsor-tier--top .sponsor-tier__title {
    color: var(--p1-gold);
}

.sponsor-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Visual hierarchy: fewer, larger cards per row for the higher tiers. */
.sponsor-grid--top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sponsor-grid--top .sponsor-card {
    border-color: var(--p1-gold);
    min-height: 220px;
}

.sponsor-grid--top .sponsor-card__logo {
    max-height: 96px;
    max-width: 260px;
}

.sponsor-grid--platinum {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 170px;
    padding: 22px;
    text-align: center;
}

.sponsor-card__logo {
    display: block;
    height: auto;
    max-height: 72px;
    max-width: 180px;
    object-fit: contain;
    width: 100%;
}

.sponsor-card--link {
    color: inherit;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.sponsor-card--link:hover {
    box-shadow: 0 12px 24px rgba(10, 24, 42, 0.14);
    transform: translateY(-2px);
}

.sponsors-home {
    border-top: 1px solid var(--p1-line, #e2e6ec);
}

.sponsors-home__lead {
    color: var(--p1-muted);
    margin: -8px 0 22px;
}

.event-card__meta,
.meta-list {
    color: var(--p1-muted);
    font-size: 14px;
    margin: 0 0 6px;
}

.event-card__prize,
.event-detail__prize {
    color: var(--p1-gold);
    font-family: var(--p1-font-display);
    font-size: 18px;
    font-weight: 800;
    margin: 12px 0;
}

.status-badge {
    background: #111c2c;
    border-radius: 2px;
    color: var(--p1-gold-light);
    display: inline-flex;
    font-family: var(--p1-font-display);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    text-transform: uppercase;
}

.status-badge--ongoing {
    background: #087443;
    color: #fff;
}

.status-badge--scheduled {
    background: var(--p1-gold);
    color: #111722;
}

.status-badge--completed {
    background: #606873;
    color: #fff;
}

.text-link {
    color: var(--p1-blue);
    font-family: var(--p1-font-body);
    font-weight: 800;
}

.page-hero,
.event-detail__hero {
    /* Plain navy when no photo is configured (event main_visual / a
       .page-hero--xxx modifier below); those add their own background-image
       with a real photo layered under the same gradient. */
    background-color: var(--p1-navy);
    /* Anchor toward the top of the photo so people aren't cropped at the head. */
    background-position: center 25%;
    background-size: cover;
    color: #fff;
    border-bottom: 4px solid var(--p1-gold);
    /* All sub-page heroes share the compact events-hero height. The top page
       uses its own .hero (video) and is unaffected. */
    padding: clamp(24px, 3vw, 38px) clamp(20px, 5vw, 72px);
}

.page-hero h1,
.event-detail__hero h1 {
    font-family: var(--p1-font-body);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 4px 0 6px;
}

.page-hero > p:last-child {
    margin: 0;
}

/* Per-page hero photos (poker visuals) layered under the legibility gradient.
   The top page uses its own .hero (video) and is unaffected. */
.page-hero--events { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-02.jpg"); }
.page-hero--about { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-01.jpg"); }
.page-hero--column { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-05.jpg"); }
.page-hero--news { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-04.jpg"); }
.page-hero--media { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-07.jpg"); }
.page-hero--satellites { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-09.jpg"); }
.page-hero--sponsors { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-03.jpg"); }
.page-hero--contact { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-11.jpg"); }
.page-hero--legal { background-image: linear-gradient(90deg, rgba(5, 13, 25, 0.92), rgba(8, 43, 95, 0.68)), url("../images/events/event-12.jpg"); }

.event-detail__hero {
    align-items: center;
    display: flex;
    min-height: 290px;
    padding-bottom: clamp(30px, 4vw, 48px);
    padding-top: clamp(30px, 4vw, 48px);
}

.event-detail__hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 6px 0;
}

.event-detail__hero p {
    margin-bottom: 4px;
    margin-top: 4px;
}

.event-detail > .section {
    padding-bottom: 14px;
    padding-top: 14px;
}

.event-detail .section h2 {
    font-size: 23px;
    margin-bottom: 10px;
}

.event-detail .quick-links {
    gap: 8px;
}

.event-detail .quick-link {
    padding: 10px 12px;
}

.archive-toolbar,
.quick-link {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    color: var(--p1-muted);
    margin-bottom: 18px;
    padding: 14px 16px;
}

.filter-form {
    align-items: end;
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    margin-bottom: 18px;
    padding: 16px;
}

.filter-form--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
}

.events-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
}

.events-archive {
    padding-top: 16px;
}

.events-archive .events-filter {
    margin-bottom: 12px;
    padding: 12px;
}

.event-series-grid {
    align-items: stretch;
}

@media (max-width: 1080px) and (min-width: 761px) {
    .events-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .events-filter .button,
    .events-filter .text-link {
        align-self: center;
    }
}

.filter-form label {
    display: grid;
    gap: 6px;
}

.filter-form span {
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.filter-form input,
.filter-form select {
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    color: var(--p1-text);
    font: inherit;
    min-height: 47px;
    padding: 10px 12px;
    width: 100%;
}

.home-dashboard {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-panel {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    min-width: 0;
    padding: 22px;
}

.home-panel--wide {
    grid-column: span 2;
}

.media-preview {
    background: linear-gradient(160deg, var(--p1-navy), #08172c);
    background-position: center;
    background-size: cover;
    border-radius: 3px;
    color: #fff;
    display: block;
    min-height: 260px;
    padding: 22px;
}

a.media-preview--link {
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

a.media-preview--link:hover {
    box-shadow: 0 12px 24px rgba(10, 24, 42, 0.2);
    transform: translateY(-2px);
}

.media-preview__play {
    align-items: center;
    background: var(--p1-gold);
    border-radius: 2px;
    color: #0b182b;
    display: inline-flex;
    font-family: var(--p1-font-display);
    font-size: 13px;
    font-weight: 800;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 14px;
}

/* Home photo album panel (Flickr link-out) */
.home-album__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 4px;
    border-radius: 3px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    text-decoration: none;
}

.home-album__cell {
    overflow: hidden;
    background: var(--p1-silver);
}

.home-album__cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-album__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(4, 11, 21, 0.1), rgba(4, 11, 21, 0.55));
    transition: background 0.3s ease;
}

.home-album__play {
    align-items: center;
    background: var(--p1-gold);
    border-radius: 2px;
    color: #0b182b;
    display: inline-flex;
    font-family: var(--p1-font-display);
    font-size: 13px;
    font-weight: 800;
    gap: 6px;
    padding: 9px 16px;
}

.home-album__grid:hover .home-album__cell img {
    transform: scale(1.05);
}

.home-album__grid:hover .home-album__overlay {
    background: linear-gradient(180deg, rgba(4, 11, 21, 0.05), rgba(4, 11, 21, 0.4));
}

.home-album__text {
    color: var(--p1-muted);
    font-size: 14px;
    margin: 14px 0 0;
}

.media-embed__frame {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.media-embed__frame iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.media-embed__meta {
    margin-top: 14px;
}

.media-embed__meta h3 {
    margin: 8px 0 4px;
}

.media-embed__meta p {
    color: var(--p1-muted);
    margin: 0;
}

.media-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.media-embed__frame--empty {
    align-items: center;
    background-color: var(--p1-silver);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(207, 214, 223, 0.45)),
        url("../images/logo/p1-logo-horizontal.png");
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 62% auto;
    display: flex;
    justify-content: center;
}

.media-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 20px;
}

.media-card__body h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 4px 0 0;
}

/* Fetch-swap sections (JS): dim the content briefly while loading. Used by
   the media archive filter, the terms page's regional tabs, the events and
   satellites archive filters/pagination, and the event detail schedule
   tabs/filters. */
#media-archive.is-loading,
#legal-regions.is-loading,
#events-archive.is-loading,
#satellites-archive.is-loading,
#event-schedule.is-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 120ms ease;
}

/* Media tag filter bar + per-card tags */
.media-tagbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.media-tagbar__chip {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 999px;
    color: var(--p1-navy);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.media-tagbar__chip:hover {
    border-color: var(--p1-blue);
}

.media-tagbar__chip.is-active {
    background: var(--p1-blue);
    border-color: var(--p1-blue);
    color: #fff;
}

.media-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.media-card__tag {
    background: var(--p1-silver);
    border-radius: 999px;
    color: var(--p1-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.media-card__tag:hover {
    background: var(--p1-blue);
    color: #fff;
}

@media (max-width: 1080px) and (min-width: 761px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.news-list {
    display: grid;
    gap: 12px;
}

.news-list article {
    border-bottom: 1px solid var(--p1-border);
    display: grid;
    gap: 2px;
    padding-bottom: 12px;
}

.news-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.news-grid__item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--p1-border);
    border-left: 3px solid var(--p1-gold);
    border-radius: 3px;
    color: inherit;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.news-grid__item:hover {
    box-shadow: 0 12px 24px rgba(10, 24, 42, 0.12);
    transform: translateY(-2px);
}

.news-grid__thumb {
    align-self: stretch;
    display: block;
    overflow: hidden;
    background: var(--p1-silver);
    min-height: 88px;
}

.news-grid__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-grid__item:hover .news-grid__thumb img {
    transform: scale(1.05);
}

.news-grid__thumb--placeholder {
    background-color: var(--p1-silver);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(207, 214, 223, 0.45)),
        url("../images/logo/p1-logo-horizontal.png");
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 78% auto;
}

.news-grid__body {
    padding: 16px 18px 16px 0;
}

.news-grid__item time {
    color: var(--p1-muted);
    font-family: var(--p1-font-display);
    font-size: 13px;
    font-weight: 700;
}

.news-grid__item h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    margin: 6px 0 0;
}

.news-grid__item p {
    color: var(--p1-muted);
    font-size: 14px;
    margin: 8px 0 0;
}

.news-archive-list {
    display: grid;
    gap: 14px;
}

.news-archive-item {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    padding: 20px;
}

.news-archive-item--has-image {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: 220px 1fr;
    padding: 0;
    overflow: hidden;
}

.news-archive-item__thumb {
    display: block;
    overflow: hidden;
    background: var(--p1-silver);
}

.news-archive-item__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-archive-item__thumb--placeholder {
    background-color: var(--p1-silver);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(207, 214, 223, 0.45)),
        url("../images/logo/p1-logo-horizontal.png");
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, 70% auto;
}

.news-archive-item--has-image:hover .news-archive-item__thumb img {
    transform: scale(1.04);
}

.news-archive-item--has-image .news-archive-item__body {
    padding: 20px 20px 20px 0;
}

.news-archive-item time {
    color: var(--p1-muted);
    font-size: 13px;
    font-weight: 800;
}

.news-archive-item h2 {
    margin: 6px 0 8px;
    text-transform: none;
}

.article-hero {
    margin: 0 0 22px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
}

.article-hero img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .news-archive-item--has-image {
        grid-template-columns: 1fr;
    }

    .news-archive-item__thumb {
        aspect-ratio: 16 / 9;
    }

    .news-archive-item--has-image .news-archive-item__body {
        padding: 0 18px 18px;
    }
}

.news-list time {
    color: var(--p1-muted);
    font-size: 12px;
    font-weight: 700;
}

.ranking-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-list li {
    align-items: center;
    background: var(--p1-silver);
    border-left: 4px solid var(--p1-gold);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}

.ranking-list span {
    font-family: var(--p1-font-display);
    font-size: 18px;
    font-weight: 900;
}

.ranking-list strong {
    color: var(--p1-blue-dark);
    font-size: 14px;
}

.quick-links {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-link {
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-weight: 800;
    margin: 0;
    text-align: center;
}

/* Event overview strip: PV video + venue/period/Flickr, shown once at the
   top of the TOURNAMENT SCHEDULE section. */
.event-overview {
    margin-bottom: 18px;
}

.event-overview__video {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.event-overview__video iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.event-overview__fact {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    color: inherit;
    display: block;
    margin-bottom: 10px;
    padding: 10px 14px;
    text-decoration: none;
}

.event-overview__venue {
    margin-bottom: 10px;
}

.event-overview__venue .event-overview__fact {
    margin-bottom: 0;
}

.event-overview__label {
    color: var(--p1-blue);
    display: block;
    font-family: var(--p1-font-display);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-overview__value {
    color: var(--p1-navy);
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.event-overview__fact--link:hover .event-overview__value {
    text-decoration: underline;
}


.schedule-table {
    display: grid;
    gap: 10px;
}

.schedule-guide {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    scroll-margin-top: 96px;
}

.event-detail .schedule-guide {
    gap: 7px;
    margin-bottom: 8px;
    padding: 10px 12px;
}

.schedule-guide__group,
.schedule-date-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-guide__group > span {
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 13px;
    font-weight: 900;
    min-width: 58px;
    text-transform: uppercase;
}

.schedule-guide a,
.schedule-date-tabs a {
    background: var(--p1-silver);
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    padding: 10px 13px;
}

.event-detail .schedule-guide a,
.event-detail .schedule-date-tabs a {
    font-size: 12px;
    padding: 7px 10px;
}

.schedule-guide a.is-active,
.schedule-date-tabs a.is-active {
    background: var(--p1-blue-dark);
    border-color: var(--p1-blue-dark);
    color: #fff;
}

.schedule-date-tabs {
    margin: 0 0 18px;
}

.event-detail .schedule-date-tabs {
    gap: 6px;
    margin-bottom: 10px;
}

.schedule-card-list {
    display: grid;
    gap: 8px;
}

.schedule-date-band {
    background: linear-gradient(90deg, var(--p1-navy), var(--p1-blue));
    border-radius: 3px;
    color: #fff;
    font-family: var(--p1-font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 14px;
    padding: 8px 14px;
}

.schedule-date-band:first-child {
    margin-top: 0;
}

.legal-regions__intro {
    color: var(--p1-muted);
    margin: 0 0 16px;
}

.legal-region-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.legal-region-tabs a {
    background: var(--p1-silver);
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    padding: 10px 13px;
}

.legal-region-tabs a.is-active {
    background: var(--p1-blue-dark);
    border-color: var(--p1-blue-dark);
    color: #fff;
}

.legal-region-content {
    border-top: 1px solid var(--p1-border);
    padding-top: 18px;
}

.schedule-card {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-left: 4px solid var(--p1-gold);
    border-radius: 3px;
    box-shadow: 0 5px 12px rgba(10, 24, 42, 0.07);
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    overflow: visible;
    position: relative;
}

.schedule-card:has(.schedule-card__detail[open]) {
    z-index: 10;
}

.schedule-card__time {
    background: linear-gradient(180deg, #102746, #07111f);
    color: #fff;
    display: grid;
    gap: 3px;
    justify-items: center;
    padding: 9px 7px;
    text-align: center;
    border-radius: 2px 0 0 2px;
}

.schedule-card__time strong {
    color: var(--p1-gold-light);
    font-family: var(--p1-font-display);
    font-size: 24px;
    line-height: 1;
}

.schedule-card__body {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 9px 10px;
}

.schedule-card__title-row {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.schedule-card__head {
    align-items: center;
    display: flex;
    gap: 8px;
}

.schedule-card__head .status-badge {
    font-size: 10px;
    padding: 3px 8px;
}

.schedule-card__head > strong {
    color: var(--p1-blue);
    font-family: var(--p1-font-display);
    font-size: 14px;
}

.schedule-card h3 {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.18;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-card h3 a:hover {
    text-decoration: underline;
}

.schedule-card__info-row {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}

.schedule-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

.schedule-card__meta div {
    background: var(--p1-silver);
    border-radius: 3px;
    min-width: 0;
    padding: 5px 6px;
}

.schedule-card__meta dt {
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.schedule-card__meta dd {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
}

.schedule-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.schedule-card__detail {
    position: relative;
}

.schedule-card__detail summary {
    align-items: center;
    background: linear-gradient(180deg, var(--p1-gold-light), var(--p1-gold));
    border: 0;
    border-radius: 3px;
    color: #101722;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--p1-font-display);
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    justify-content: space-between;
    line-height: 1;
    min-height: 43px;
    min-width: 88px;
    padding: 7px 9px;
    user-select: none;
}

.schedule-card__detail summary::-webkit-details-marker {
    display: none;
}

.schedule-card__detail summary::after {
    content: "\25BE";
    display: inline-block;
}

.schedule-card__detail[open] summary::after {
    transform: rotate(180deg);
}

.schedule-card__detail-body {
    background: #fff;
    border: 1px solid var(--p1-border);
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.12);
    display: grid;
    gap: 12px;
    left: auto;
    margin-top: 6px;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 100%;
    width: min(720px, calc(100vw - 48px));
    z-index: 8;
}

.schedule-card__detail-section {
    display: grid;
    gap: 6px;
}

.schedule-card__detail-section + .schedule-card__detail-section {
    border-top: 1px solid var(--p1-border);
    padding-top: 10px;
}

.schedule-card__detail-section h4 {
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.schedule-card__detail p {
    margin: 0;
}

.structure-table-wrap {
    overflow-x: auto;
}

.structure-table {
    border-collapse: collapse;
    min-width: 480px;
    width: 100%;
}

.structure-table th,
.structure-table td {
    border-bottom: 1px solid var(--p1-border);
    padding: 7px 10px;
    text-align: left;
    white-space: nowrap;
}

.structure-table th {
    background: var(--p1-blue-dark);
    color: #fff;
    font-family: var(--p1-font-display);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.structure-table td {
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.structure-table td:first-child {
    color: var(--p1-blue);
    font-weight: 800;
}

.structure-table__divider td {
    background: var(--p1-gold-tint, #fbf3e1);
    border-bottom-color: var(--p1-gold);
    border-top: 1px solid var(--p1-gold);
    padding: 4px 10px;
}

.structure-table__divider td span {
    color: var(--p1-navy);
    display: block;
    font-family: var(--p1-font-display);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
}


.schedule-row {
    align-items: center;
    background: #fff;
    border: 1px solid var(--p1-border);
    border-left: 5px solid var(--p1-blue);
    border-radius: 3px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 1.2fr) repeat(6, minmax(110px, auto));
    padding: 16px;
}

.schedule-row strong {
    color: var(--p1-blue);
    display: block;
    font-family: var(--p1-font-display);
    font-size: 13px;
}

.schedule-row span {
    min-width: 0;
}

.schedule-row small {
    color: var(--p1-muted);
    display: block;
    font-family: var(--p1-font-display);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.schedule-row h3 {
    margin-bottom: 0;
}

.detail-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-detail .detail-grid {
    gap: 10px;
}

.event-detail .info-panel {
    padding: 14px;
}

.floor-map {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    display: block;
    height: auto;
    max-width: 100%;
    padding: 10px;
}

.venue-map {
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    height: 280px;
    margin-top: 12px;
    overflow: hidden;
}

.venue-map iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.article-content {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    padding: clamp(22px, 4vw, 42px);
}

.article-content > *:first-child,
.info-panel > *:first-child {
    margin-top: 0;
}

.article-content > *:last-child,
.info-panel > *:last-child {
    margin-bottom: 0;
}

.contact-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: 0.85fr 1.15fr;
}

.plain-list {
    margin: 0;
    padding-left: 20px;
}

.satellite-card {
    align-items: stretch;
    display: grid;
    grid-template-columns: 220px 1fr;
}

.satellite-card__image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.meta-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.meta-list div {
    background: var(--p1-silver);
    border-radius: 3px;
    padding: 8px;
}

.meta-list dt {
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.meta-list dd {
    margin: 0;
}

.section--grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
    background: linear-gradient(180deg, #0b182b, #050b14);
    border-top: 4px solid var(--p1-gold);
    color: #fff;
    padding: 34px clamp(20px, 4vw, 56px);
}

.site-footer__brand {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.site-footer__copy {
    color: #b9c5d6;
    margin: 22px 0 0;
}

/* Back-to-top button: all screen sizes, appears after scrolling (toggled by JS). */
.back-to-top {
    align-items: center;
    background: var(--p1-navy);
    border: 2px solid var(--p1-gold);
    border-radius: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 8px 20px rgba(4, 11, 21, 0.32);
    color: #fff;
    cursor: pointer;
    display: none;
    height: 48px;
    justify-content: center;
    opacity: 0;
    padding: 0;
    position: fixed;
    right: 16px;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
    width: 48px;
    z-index: 120;
}

.back-to-top.is-visible {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 761px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 760px) {
    .section__header {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .section__header > h2 {
        font-size: 21px;
        min-width: 0;
    }

    .section__header > a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .site-header {
        align-items: center;
        flex-direction: row;
        min-height: 64px;
        padding: 9px 16px;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 42px;
    }

    .site-nav {
        background: #07111f;
        border-bottom: 3px solid var(--p1-gold);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
        left: 0;
        padding: 8px 16px 14px;
        position: absolute;
        right: 0;
        top: 100%;
    }

    .js-ready .site-nav {
        display: none;
    }

    .js-ready .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .site-nav__list a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        display: flex;
        font-size: 16px;
        padding: 14px 4px;
        width: 100%;
    }

    .section--grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .filter-form,
    .filter-form--wide,
    .quick-links,
    .detail-grid,
    .sponsor-grid,
    .contact-layout,
    .home-dashboard,
    .meta-list {
        grid-template-columns: 1fr;
    }

    .home-panel--wide {
        grid-column: span 1;
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .satellite-card,
    .schedule-row {
        grid-template-columns: 1fr;
    }

    /* Schedule cards used to fully stack (time row, badge/number row, title
       row, one row per meta item, one row per PRIZE/STRUCTURE button) which
       ran to 10+ lines per card on a phone. Keep the same two-column
       time+body layout as desktop instead, and fold badge/number/title onto
       one line and all meta facts + detail buttons onto a second wrapped
       line, so each card reads as ~2 lines. */
    .schedule-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .schedule-card__time {
        gap: 1px;
        padding: 6px 4px;
    }

    .schedule-card__time strong {
        font-size: 17px;
    }

    .schedule-card__body {
        gap: 4px;
        padding: 7px 8px;
    }

    .schedule-card__title-row {
        gap: 6px;
    }

    .schedule-card__head {
        gap: 5px;
    }

    .schedule-card h3 {
        font-size: 14px;
        white-space: nowrap;
    }

    /* Meta chips and the PRIZE/STRUCTURE buttons wrap together as one flow
       (not split into a fixed meta-column + button-column) so they pack the
       full card width instead of squeezing meta into whatever's left over
       after the buttons. */
    .schedule-card__info-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .schedule-card__meta,
    .schedule-card__details {
        display: contents;
    }

    .schedule-card__meta div {
        align-items: baseline;
        display: flex;
        flex-shrink: 0;
        gap: 3px;
        padding: 3px 6px;
        white-space: nowrap;
    }

    .schedule-card__detail {
        flex-shrink: 0;
    }

    .schedule-card__meta dt {
        font-size: 9px;
    }

    .schedule-card__meta dd {
        font-size: 11px;
    }

    .schedule-card__detail summary {
        font-size: 11px;
        min-height: 30px;
        min-width: 0;
        padding: 5px 8px;
    }

    /* An open PRIZE/STRUCTURE panel claims the rest of its flex line (wrapping
       onto a new one if needed) so the dropdown below it resolves its
       width:100% against the full card width instead of the small chip. */
    .schedule-card__detail[open] {
        flex-basis: 100%;
    }

    .schedule-card__detail[open] summary {
        width: 100%;
    }

    .schedule-card__detail-body {
        position: static;
        width: 100%;
    }

    .hero {
        min-height: 480px;
    }
}

/* Legal pages (Privacy Policy / Terms) */
.legal {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    color: var(--p1-text);
    line-height: 1.85;
    margin: 0 auto;
    max-width: 860px;
    padding: clamp(24px, 4vw, 48px);
}

.legal h2 {
    border-left: 6px solid var(--p1-gold);
    color: var(--p1-navy);
    font-family: var(--p1-font-display);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.35;
    margin: 34px 0 14px;
    padding-left: 12px;
}

.legal h2:first-child {
    margin-top: 0;
}

.legal h3 {
    color: var(--p1-blue-dark);
    font-size: 17px;
    font-weight: 800;
    margin: 22px 0 10px;
}

.legal p {
    margin: 0 0 14px;
}

.legal ul,
.legal ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: var(--p1-blue);
    text-decoration: underline;
}

.legal__meta {
    border-top: 1px solid var(--p1-border);
    color: var(--p1-muted);
    font-size: 14px;
    margin-top: 32px;
    padding-top: 16px;
}

.legal table {
    border-collapse: collapse;
    margin: 0 0 20px;
    width: 100%;
}

.legal table th,
.legal table td {
    border-bottom: 1px solid var(--p1-border);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.legal table th {
    color: var(--p1-blue-dark);
    font-family: var(--p1-font-display);
    font-size: 14px;
    font-weight: 800;
    width: 34%;
}

@media (max-width: 560px) {
    .legal table,
    .legal table tbody,
    .legal table tr,
    .legal table th,
    .legal table td {
        display: block;
        width: auto;
    }

    .legal table tr {
        border-bottom: 1px solid var(--p1-border);
        padding-bottom: 10px;
    }

    .legal table th,
    .legal table td {
        border-bottom: 0;
        padding: 4px 0;
    }
}

/* Footer legal links */
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.site-footer__legal a {
    color: #b9c5d6;
    font-size: 14px;
}

.site-footer__legal a:hover {
    color: var(--p1-gold-light);
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0 0;
}

.social-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
    width: 40px;
}

.social-icon svg {
    height: 20px;
    width: 20px;
    fill: currentColor;
}

.social-icon:hover {
    background: var(--p1-gold);
    color: #0b182b;
    transform: translateY(-2px);
}

/* Header language switcher (TranslatePress dropdown) */
.site-nav {
    margin-left: auto; /* keep nav + language switcher grouped to the right */
}

.site-lang {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.lang-dd {
    position: relative;
}

.lang-dd__btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--p1-font-display);
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
    letter-spacing: 0.04em;
    line-height: 1;
    list-style: none;
    padding: 8px 10px;
    user-select: none;
}

.lang-dd__btn::-webkit-details-marker {
    display: none;
}

.lang-dd__btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.lang-dd[open] .lang-dd__arrow {
    transform: rotate(180deg);
}

.lang-dd__arrow {
    transition: transform 150ms ease;
}

.lang-dd__flag {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    display: block;
    height: 14px;
    object-fit: cover;
    width: 20px;
}

.lang-dd__menu {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(10, 24, 42, 0.18);
    list-style: none;
    margin: 6px 0 0;
    min-width: 104px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
}

.lang-dd__item {
    align-items: center;
    border-radius: 4px;
    color: var(--p1-navy);
    display: flex;
    font-family: var(--p1-font-display);
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.04em;
    padding: 8px 10px;
}

.lang-dd__item:hover {
    background: rgba(11, 78, 162, 0.08);
}

.lang-dd__item.is-active {
    color: var(--p1-blue);
}

@media (max-width: 760px) {
    .site-lang {
        margin-left: auto;
        margin-right: 10px;
        order: 2;
    }

    .menu-toggle {
        order: 3;
    }
}

/* Homepage UPCOMING EVENTS: compact 4-up grid */
.card-grid--quad {
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* shorter, wider visual to reduce card height */
.card-grid--quad .event-card__image,
.card-grid--quad .event-card__image--placeholder {
    aspect-ratio: 16 / 8;
}

.card-grid--quad .event-card__body {
    gap: 2px;
    padding: 12px 14px;
}

.card-grid--quad .event-card h3 {
    font-size: 16px;
    margin: 2px 0 4px;
}

.card-grid--quad .event-card__series {
    font-size: 11px;
}

.card-grid--quad .event-card__meta {
    font-size: 12.5px;
    margin: 0 0 2px;
}

.card-grid--quad .event-card__prize {
    font-size: 15px;
    margin: 4px 0 0;
}

.card-grid--quad .text-link {
    font-size: 13px;
    padding-top: 6px;
}

@media (max-width: 1024px) {
    .card-grid--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .card-grid--quad {
        grid-template-columns: 1fr;
    }
}

/* Pagination (events / winners archives) */
.pagination {
    margin: 30px 0 8px;
}

.pagination ul.page-numbers {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
    align-items: center;
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 4px;
    color: var(--p1-navy);
    display: inline-flex;
    font-family: var(--p1-font-display);
    font-size: 15px;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    padding: 0 14px;
    text-decoration: none;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.pagination a.page-numbers:hover {
    border-color: var(--p1-blue);
    color: var(--p1-blue);
}

.pagination .page-numbers.current {
    background: var(--p1-blue);
    border-color: var(--p1-blue);
    color: #fff;
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    min-width: 24px;
    padding: 0 4px;
}

/* Ticket purchase quick link (event detail) — the primary CTA, so it gets
   the same gold treatment as .button--gold instead of the neutral card. */
.quick-link--ticket {
    background: linear-gradient(180deg, var(--p1-gold-light), var(--p1-gold));
    border-color: var(--p1-gold);
    color: #101722;
}

.quick-link--ticket:hover {
    filter: brightness(1.04);
}

/* Live stream quick link (event detail) */
.quick-link--live {
    background: linear-gradient(180deg, #d6403a, #b32b26);
    border-color: #b32b26;
    color: #fff;
}

.quick-link--live::before {
    content: "● ";
    color: #ffd0cd;
}

.quick-link--live:hover {
    filter: brightness(1.06);
}

/* Brand logo images (header / footer) */
.site-logo__img {
    display: block;
    height: clamp(30px, 3.4vw, 42px);
    width: auto;
}

.site-footer__logo-img {
    display: block;
    height: 38px;
    width: auto;
}

/* Satellite month calendar */
.sat-cal {
    background: #fff;
    border: 1px solid var(--p1-border);
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(10, 24, 42, 0.08);
    overflow: hidden;
}

.sat-cal__head {
    align-items: center;
    background: linear-gradient(180deg, var(--p1-blue), var(--p1-blue-dark));
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
}

.sat-cal__title {
    font-family: var(--p1-font-display);
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.sat-cal__nav {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 20px;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    transition: background 160ms ease;
    width: 40px;
}

.sat-cal__nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sat-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.sat-cal__dow {
    background: var(--p1-silver);
    border-bottom: 1px solid var(--p1-border);
    color: var(--p1-muted);
    font-weight: 700;
    padding: 8px 0;
    text-align: center;
}

.sat-cal__dow--0 { color: #c0392b; } /* Sun */
.sat-cal__dow--6 { color: var(--p1-blue); } /* Sat */

.sat-cal__cell {
    border-bottom: 1px solid var(--p1-border);
    border-right: 1px solid var(--p1-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 92px;
    padding: 6px;
}

.sat-cal__cell:nth-child(7n) {
    border-right: 0;
}

a.sat-cal__cell {
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease;
}

.sat-cal__cell--has {
    background: #fbfcfe;
    cursor: pointer;
}

a.sat-cal__cell--has:hover {
    background: #eef4fc;
}

.sat-cal__cell--empty {
    background: #fafbfc;
}

.sat-cal__cell--today .sat-cal__date {
    background: var(--p1-gold);
    border-radius: 50%;
    color: #fff;
}

.sat-cal__date {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    min-width: 24px;
}

.sat-cal__events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sat-cal__chip {
    background: var(--p1-blue);
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    padding: 2px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sat-cal__more {
    color: var(--p1-muted);
    font-size: 11px;
    font-weight: 700;
}

/* Compact variant (home page): count badge instead of store-name chips */
.sat-cal--compact .sat-cal__cell {
    align-items: center;
    gap: 6px;
    min-height: 70px;
}

.sat-cal__count {
    background: var(--p1-blue);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 9px;
}

.sat-cal--compact .sat-cal__cell--today .sat-cal__count {
    background: var(--p1-gold);
}

@media (max-width: 760px) {
    .sat-cal__cell {
        min-height: 64px;
        padding: 4px 3px;
    }

    .sat-cal__chip {
        font-size: 0;
        padding: 3px;
    }

    .sat-cal__chip::before {
        content: "●";
        font-size: 9px;
    }

    .sat-cal__more {
        font-size: 10px;
    }
}
