:root {
    --site-bg: #070707;
    --site-panel: #151515;
    --site-panel-2: #242424;
    --site-text: #f7f7f7;
    --site-muted: #b3b3b3;
    --site-accent: #DFA12E;
    --site-accent-hover: #E7B451;
    --site-accent-text: #F0C76D;
    --site-border: rgba(255, 255, 255, 0.12);
    --site-shell: 1180px;
    --site-gutter: clamp(16px, 3vw, 32px);
    --site-header-height: 78px;
}

/* Resilient layout foundation */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: var(--site-accent-text);
}

img,
svg,
video,
canvas,
iframe {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

iframe {
    width: 100%;
    border: 0;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

input,
select,
textarea {
    min-width: 0;
}

pre,
code {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.site-content,
.site-content > *,
main,
section,
article,
header,
footer,
nav,
aside,
.site-shell,
.elementor,
.elementor-element,
.elementor-widget,
.elementor-widget-container,
.e-con,
.e-con-inner {
    min-width: 0;
}

.site-shell {
    width: 100%;
    max-width: var(--site-shell);
    margin-inline: auto;
    padding-inline: var(--site-gutter);
}

.site-content {
    width: 100%;
    min-height: 70vh;
    overflow: visible;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(7, 7, 7, 0.96);
    border-bottom: 1px solid var(--site-border);
    backdrop-filter: blur(16px);
}

.header-inner {
    position: relative;
    display: flex;
    min-height: var(--site-header-height);
    align-items: center;
    gap: clamp(16px, 2.2vw, 30px);
}

.site-brand {
    display: flex;
    min-width: 0;
    max-width: min(320px, 42vw);
    flex: 0 1 auto;
    align-items: center;
}

.site-brand-link,
.site-brand .custom-logo-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.site-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand .custom-logo {
    width: auto;
    max-width: min(240px, 34vw);
    max-height: 50px;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: var(--site-accent);
    color: #fff;
    font-size: 18px;
}

.primary-nav {
    min-width: 0;
    margin-left: auto;
}

.hkpt-menu,
.footer-menu {
    display: flex;
    gap: clamp(13px, 1.8vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hkpt-menu li,
.footer-menu li {
    min-width: 0;
}

.hkpt-menu a,
.footer-menu a {
    color: #fff;
    text-decoration: none;
}

.hkpt-menu a {
    white-space: nowrap;
}

.hkpt-menu a:hover,
.hkpt-menu a:focus-visible {
    color: var(--site-accent-text);
}

.header-login,
.theme-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 9px;
    background: var(--site-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-login {
    flex: 0 0 auto;
    white-space: nowrap;
}

.header-login:hover,
.theme-button:hover {
    background: var(--site-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 9px 12px;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.mobile-account-link {
    display: none;
}

/* Generic public layout */
.home-hero {
    display: grid;
    min-height: 640px;
    align-items: center;
    border-bottom: 1px solid var(--site-border);
    background: radial-gradient(circle at 75% 30%, rgba(223, 161, 46, 0.25), transparent 30%), linear-gradient(135deg, #171717 0%, #070707 62%);
}

.home-hero-inner {
    padding-block: 80px;
}

.kicker {
    display: block;
    color: var(--site-accent-text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 850px;
    margin: 14px 0 20px;
    font-size: clamp(3.2rem, 9vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    overflow-wrap: anywhere;
}

.home-hero p {
    max-width: 650px;
    color: var(--site-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.theme-button-secondary {
    background: var(--site-panel-2);
    color: #fff;
}

.home-sections {
    display: grid;
    gap: 90px;
    padding-block: 80px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading > * {
    min-width: 0;
}

.section-heading h2,
.archive-header h1 {
    margin: 4px 0;
    font-size: clamp(2.25rem, 5vw, 3.625rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.section-heading > a {
    flex: 0 0 auto;
    font-weight: 800;
    text-decoration: none;
}

.page-shell {
    padding-block: 52px 90px;
}

.archive-header {
    max-width: 720px;
    margin-bottom: 36px;
}

.archive-header p {
    color: var(--site-muted);
    font-size: 18px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 22px;
}

.article-grid > *,
.hkpt-card-grid > *,
.hkpt-event-grid > *,
.hkpt-home-event-grid > *,
.hkpt-sponsor-grid > *,
.hkpt-stat-grid > *,
.hkpt-gallery-grid > * {
    min-width: 0;
    max-width: 100%;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: var(--site-panel);
}

.article-card a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card div {
    min-width: 0;
    padding: 20px;
}

.article-card h2 {
    margin: 6px 0;
    overflow-wrap: anywhere;
}

.article-card p,
.article-card small,
.article-meta {
    color: var(--site-muted);
}

.article-shell {
    max-width: 900px;
    padding-block: 70px 100px;
}

.article-shell h1,
.standard-page h1 {
    max-width: 100%;
    font-size: clamp(2.625rem, 7vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.article-hero {
    width: 100%;
    margin-block: 30px;
    border-radius: 16px;
}

.article-content,
.page-content {
    max-width: 100%;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.article-content p,
.page-content p {
    color: #d1d3d8;
}

.article-content table,
.page-content table {
    max-width: 100%;
}

.article-content .wp-block-table,
.page-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standard-page > header {
    max-width: 850px;
    margin-bottom: 30px;
}

.video-embed {
    position: relative;
    width: 100%;
    margin-block: 30px;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    width: 100%;
    padding-block: 62px;
    border-top: 1px solid var(--site-border);
    background: #0d0d0d;
}

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

.footer-grid > * {
    min-width: 0;
}

.footer-brand {
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -0.05em;
}

.site-footer p,
.site-footer small {
    color: var(--site-muted);
    overflow-wrap: anywhere;
}

.footer-menu {
    display: grid;
    gap: 8px;
}

.footer-menu a {
    overflow-wrap: anywhere;
}

.site-footer h3 {
    margin-top: 0;
}

/* Footer navigation must always remain a vertical, readable list. The second
   selector also protects older installs where the fallback menu was rendered
   with the primary-navigation class. */
.site-footer .footer-menu,
.site-footer .hkpt-menu {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-menu li,
.site-footer .hkpt-menu li {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.site-footer .footer-menu a,
.site-footer .hkpt-menu a {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    color: #fff;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Homepage order: Slider → Series → Events → Sponsors → Partners */
.hkpt-homepage {
    width: 100%;
    max-width: 100%;
}

.hkpt-homepage .home-slider-section {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid var(--site-border);
}

.hkpt-homepage .home-sections {
    gap: 96px;
    padding-block: 84px 110px;
}

.home-content-section {
    min-width: 0;
    max-width: 100%;
    scroll-margin-top: calc(var(--site-header-height) + 24px);
}

.sponsor-section-heading {
    max-width: 100%;
    margin: 0 auto 30px;
    text-align: center;
}

.sponsor-section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(2.125rem, 5vw, 3.5rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.home-title-sponsor-section,
.home-supporting-sponsors-section,
.home-valued-partners-section {
    padding-top: 72px;
    border-top: 1px solid var(--site-border);
}

/* Responsive overrides for HKPT Core plugin components. These intentionally live in the theme. */
.hkpt-card-grid,
.hkpt-series-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.hkpt-series-card,
.hkpt-content-card,
.hkpt-event-card,
.hkpt-home-event-card,
.hkpt-panel,
.hkpt-auth-card,
.hkpt-stat,
.hkpt-alert,
.hkpt-sponsor-logo {
    max-width: 100%;
}

.hkpt-card-overlay,
.hkpt-content-body,
.hkpt-home-event-body,
.hkpt-series-hero-overlay,
.hkpt-event-hero-content {
    min-width: 0;
}

.hkpt-card-overlay h3,
.hkpt-content-body h3,
.hkpt-home-event-body h3,
.hkpt-event-card h3,
.hkpt-series-hero-overlay h1,
.hkpt-event-hero-content h1,
.hkpt-dashboard-header h1 {
    overflow-wrap: anywhere;
}

.hkpt-home-slider,
.hkpt-home-slider-track,
.hkpt-home-slide,
.hkpt-home-slide-media {
    width: 100%;
    max-width: 100%;
}

.hkpt-home-slider {
    min-height: clamp(460px, 68svh, 760px);
    overflow: hidden;
}

.hkpt-home-slide-content {
    width: 100%;
    min-height: clamp(460px, 68svh, 760px);
    padding-block: clamp(64px, 9vw, 100px);
}

.hkpt-home-slide-content h1 {
    max-width: min(900px, 100%);
    margin: 10px 0 18px;
    font-size: clamp(2.75rem, 8vw, 6.5rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.hkpt-home-slide-content p {
    max-width: min(660px, 100%);
    font-size: clamp(1rem, 2vw, 1.375rem);
    overflow-wrap: anywhere;
}

.hkpt-slider-arrow {
    touch-action: manipulation;
}

.hkpt-slider-prev {
    left: max(12px, calc((100vw - var(--site-shell)) / 2 + 12px));
}

.hkpt-slider-next {
    right: max(12px, calc((100vw - var(--site-shell)) / 2 + 12px));
}

.hkpt-home-event-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.hkpt-home-event-media,
.hkpt-card-media,
.hkpt-content-media {
    width: 100%;
}

.hkpt-home-event-meta {
    grid-template-columns: minmax(0, 1fr) auto;
}

.hkpt-home-event-meta > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hkpt-sponsor-list,
.hkpt-logo-carousel,
.hkpt-sponsor-carousel {
    max-width: 100%;
}

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

.hkpt-sponsor-logo img {
    max-width: 100%;
}

.hkpt-logo-carousel {
    padding-inline: 54px;
    overflow: hidden;
}

.hkpt-sponsor-carousel {
    width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.hkpt-sponsor-carousel .hkpt-sponsor-logo {
    flex: 0 0 clamp(210px, 24vw, 285px);
    min-width: 0;
}

.hkpt-ranking-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.hkpt-ranking-filters > *,
.hkpt-dashboard-grid > *,
.hkpt-event-layout > *,
.hkpt-member-summary > *,
.hkpt-alert > *,
.hkpt-event-facts > *,
.hkpt-event-card-facts > * {
    min-width: 0;
}

.hkpt-ranking-filters input,
.hkpt-ranking-filters select,
.hkpt-ranking-filters button,
.hkpt-auth-card input,
.hkpt-scanner input {
    min-width: 0;
    max-width: 100%;
}

.hkpt-table-wrap,
.wp-block-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.hkpt-table {
    width: 100%;
    min-width: 620px;
}

.hkpt-table th,
.hkpt-table td {
    white-space: nowrap;
}

.hkpt-dashboard-grid {
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr);
}

.hkpt-event-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.hkpt-event-layout aside,
.hkpt-event-layout section {
    min-width: 0;
}

.hkpt-event-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

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

.hkpt-event-facts strong,
.hkpt-breakdown strong,
.hkpt-member-summary h2,
.hkpt-token-fallback {
    overflow-wrap: anywhere;
}

.hkpt-breakdown > * {
    min-width: 0;
}

.hkpt-breakdown strong {
    text-align: right;
}

.hkpt-section-tabs {
    top: var(--site-header-height);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.hkpt-section-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.hkpt-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.hkpt-scanner,
#hkpt-qr-reader,
#hkpt-scanner-result {
    width: 100%;
    max-width: 100%;
}

#hkpt-qr-reader video,
#hkpt-qr-reader canvas,
#hkpt-qr-reader img {
    max-width: 100% !important;
}

#hkpt-member-qr,
#hkpt-member-qr canvas,
#hkpt-member-qr img {
    max-width: 100%;
}

/* WordPress and Elementor containment */
.alignwide,
.alignfull,
.wp-block-cover,
.wp-block-group,
.wp-block-columns,
.wp-block-media-text,
.wp-block-embed,
.elementor-section,
.elementor-container,
.elementor-column,
.e-con,
.e-con-inner {
    max-width: 100%;
}

.wp-block-columns,
.elementor-container,
.e-con,
.e-con-inner {
    min-width: 0;
}

.wp-block-column,
.elementor-column,
.elementor-widget-wrap,
.elementor-widget-container {
    min-width: 0;
}

.elementor-widget-image img,
.elementor-widget-video iframe,
.elementor-widget-google_maps iframe,
.elementor-swiper,
.swiper,
.swiper-container {
    max-width: 100%;
}

.elementor-swiper,
.swiper,
.swiper-container {
    overflow: hidden;
}

body.elementor-page .site-content,
body.elementor-template-full-width .site-content {
    width: 100%;
    max-width: 100%;
}

/* Desktop navigation switches before it can overflow. */
@media (max-width: 1120px) {
    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: var(--site-gutter);
        left: var(--site-gutter);
        display: none;
        width: auto;
        max-height: calc(100svh - var(--site-header-height) - 16px);
        margin: 0;
        overflow-y: auto;
        padding: 16px;
        border: 1px solid var(--site-border);
        border-top: 0;
        border-radius: 0 0 12px 12px;
        background: #0d0d0d;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .primary-nav.is-open {
        display: block;
    }

    .hkpt-menu {
        flex-direction: column;
        gap: 0;
    }

    .hkpt-menu a {
        display: block;
        padding: 11px 8px;
        white-space: normal;
    }

    .header-login {
        display: none;
    }

    .mobile-account-link {
        display: flex;
        width: 100%;
        margin-top: 12px;
    }

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

    .hkpt-dashboard-grid,
    .hkpt-event-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 800px) {
    :root {
        --site-header-height: 70px;
    }

    .header-inner {
        min-height: var(--site-header-height);
    }

    .site-brand {
        max-width: min(280px, 64vw);
    }

    .site-brand .custom-logo {
        max-width: min(210px, 52vw);
        max-height: 44px;
    }

    .home-hero {
        min-height: 540px;
    }

    .home-sections,
    .hkpt-homepage .home-sections {
        gap: 70px;
        padding-block: 60px 84px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading > a {
        flex: 0 1 auto;
    }

    .home-title-sponsor-section,
    .home-supporting-sponsors-section,
    .home-valued-partners-section {
        padding-top: 50px;
    }

    .sponsor-section-heading {
        margin-bottom: 22px;
    }

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

    .hkpt-series-hero-overlay,
    .hkpt-event-hero-content {
        padding: 42px 24px;
    }

    .hkpt-alert {
        grid-template-columns: 1fr;
    }

    .hkpt-member-summary {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .hkpt-member-summary > strong {
        grid-column: 1 / -1;
    }

    .hkpt-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hkpt-logo-carousel {
        padding-inline: 46px;
    }

    .hkpt-home-slide-content {
        padding-bottom: 88px;
    }

    .hkpt-slider-arrow {
        top: auto;
        bottom: 20px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .hkpt-slider-prev {
        left: var(--site-gutter);
    }

    .hkpt-slider-next {
        right: var(--site-gutter);
    }

    .hkpt-slider-dots {
        bottom: 34px;
        padding-inline: 66px;
    }
}

@media (max-width: 620px) {
    :root {
        --site-gutter: 16px;
    }

    .site-brand {
        max-width: calc(100vw - 106px);
    }

    .site-brand-name {
        font-size: 14px;
    }

    .brand-mark {
        width: 48px;
        height: 38px;
        font-size: 16px;
    }

    .menu-toggle {
        padding: 8px 10px;
    }

    .primary-nav {
        right: 0;
        left: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .home-hero h1 {
        font-size: clamp(2.75rem, 15vw, 3.5rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .theme-button,
    .hkpt-home-slide-content .hkpt-button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-shell {
        padding-block: 38px 68px;
    }

    .article-shell {
        padding-block: 48px 72px;
    }

    .article-content,
    .page-content {
        font-size: 16px;
    }

    .hkpt-home-slider,
    .hkpt-home-slide-content {
        min-height: clamp(520px, 82svh, 660px);
    }

    .hkpt-home-slide-shade {
        background: linear-gradient(0deg, rgba(2, 3, 5, 0.96) 0%, rgba(2, 3, 5, 0.62) 65%, rgba(2, 3, 5, 0.25) 100%);
    }

    .hkpt-home-slide-content {
        justify-content: flex-end;
        padding-top: 100px;
        padding-bottom: 86px;
    }

    .hkpt-home-slide-content h1 {
        font-size: clamp(2.45rem, 13vw, 3.4rem);
        line-height: 0.98;
        letter-spacing: -0.04em;
    }

    .hkpt-home-slide-content p {
        font-size: 1rem;
    }

    .hkpt-slider-arrow {
        top: auto;
        bottom: 20px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .hkpt-slider-prev {
        left: 16px;
    }

    .hkpt-slider-next {
        right: 16px;
    }

    .hkpt-slider-dots {
        bottom: 34px;
        padding-inline: 66px;
    }

    .hkpt-slider-dots button {
        flex: 0 0 auto;
    }

    .hkpt-home-event-grid,
    .hkpt-card-grid,
    .hkpt-event-grid,
    .hkpt-gallery-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

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

    .hkpt-sponsor-logo {
        min-height: 112px;
        padding: 15px;
    }

    .hkpt-sponsor-feature .hkpt-sponsor-logo {
        min-height: 150px;
    }

    .hkpt-logo-carousel {
        padding-inline: 0;
        overflow: visible;
    }

    .hkpt-logo-carousel-arrow {
        display: none;
    }

    .hkpt-sponsor-carousel {
        max-width: 100%;
        padding-bottom: 8px;
        overflow-x: auto;
    }

    .hkpt-sponsor-carousel .hkpt-sponsor-logo {
        flex-basis: min(82vw, 310px);
    }

    .hkpt-ranking-filters {
        grid-template-columns: 1fr;
    }

    .hkpt-event-facts,
    .hkpt-event-card-facts {
        grid-template-columns: 1fr;
    }

    .hkpt-series-hero,
    .hkpt-event-hero {
        min-height: 500px;
    }

    .hkpt-series-hero-overlay,
    .hkpt-event-hero-content {
        padding: 34px 18px;
    }

    .hkpt-event-layout {
        gap: 20px;
    }

    .hkpt-breakdown {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .hkpt-breakdown strong {
        text-align: left;
    }

    .hkpt-table {
        min-width: 560px;
    }

    .hkpt-auth-card,
    .hkpt-panel {
        padding: 18px;
    }

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

@media (max-width: 400px) {
    .site-brand-name {
        display: none;
    }

    .site-brand {
        max-width: 180px;
    }

    .site-brand .custom-logo {
        max-width: 170px;
    }

    .hkpt-sponsor-grid,
    .hkpt-stat-grid {
        grid-template-columns: 1fr;
    }

    .hkpt-home-slide-content h1 {
        font-size: clamp(2.2rem, 12.5vw, 3rem);
    }

    .hkpt-slider-dots {
        gap: 6px;
    }

    .hkpt-slider-dots button.is-active {
        width: 24px;
    }
}

@supports not (overflow: clip) {
    html {
        overflow-x: hidden;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

body :focus-visible {
    outline: 3px solid var(--site-accent-text);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Version 1.0.3 responsive hardening
   -------------------------------------------------------------------------- */

:root {
    --hkpt-slider-base-height: clamp(520px, 66vw, 760px);
}

/* Prevent editable content, embeds, blocks, and third-party widgets from
   widening the viewport. */
body,
.site-content,
.hkpt-homepage,
.hkpt-series-detail,
.hkpt-event-detail,
.standard-page,
.article-shell,
.page-shell {
    max-inline-size: 100%;
}

.site-content,
.hkpt-homepage,
.home-slider-section,
.home-content-section,
.hkpt-series-detail,
.hkpt-event-detail {
    overflow-wrap: anywhere;
}

figure,
blockquote,
form,
fieldset,
table,
.wp-block-image,
.wp-block-gallery,
.wp-block-table,
.wp-block-embed,
.wp-block-video,
.wp-block-audio,
.wp-block-file,
.elementor-widget,
.elementor-widget-container {
    max-inline-size: 100%;
}

figure,
blockquote {
    margin-inline: 0;
}

.wp-block-image img,
.wp-block-gallery img,
.elementor img {
    max-inline-size: 100%;
    block-size: auto;
}

.alignfull,
body .elementor-section.elementor-section-stretched {
    max-width: 100%;
    margin-inline: 0;
}

.hkpt-responsive-table,
.article-content .wp-block-table,
.page-content .wp-block-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

/* Keep button circles exact and replace font glyphs with geometrically centered
   CSS chevrons. This avoids platform/font baseline differences. */
.hkpt-slider-arrow,
.hkpt-logo-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    aspect-ratio: 1;
    appearance: none;
    -webkit-appearance: none;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
}

.hkpt-slider-arrow::before,
.hkpt-logo-carousel-arrow::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
    transform-origin: center;
}

.hkpt-slider-prev::before,
.hkpt-logo-carousel-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.hkpt-slider-next::before,
.hkpt-logo-carousel-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.hkpt-slider-arrow {
    width: 48px;
    height: 48px;
}

.hkpt-logo-carousel-arrow {
    width: 42px;
    height: 42px;
}

/* Slider content is user-editable. Its container now grows to the measured
   active-slide height instead of clipping long headings or descriptions. */
.hkpt-home-slider {
    min-height: max(var(--hkpt-slider-base-height), var(--hkpt-slider-fit-height, 0px));
    isolation: isolate;
}

.hkpt-home-slider-track,
.hkpt-home-slide,
.hkpt-home-slide-media,
.hkpt-home-slide-shade {
    min-width: 0;
    max-width: 100%;
}

.hkpt-home-slide-content {
    width: 100%;
    min-height: max(var(--hkpt-slider-base-height), var(--hkpt-slider-fit-height, 0px));
    max-width: var(--site-shell);
    padding-top: clamp(64px, 8vw, 100px);
    padding-bottom: clamp(84px, 9vw, 118px);
}

.hkpt-home-slide-content > * {
    max-width: 100%;
}

.hkpt-home-slide-content h1,
.hkpt-home-slide-content p,
.hkpt-home-slide-content .hkpt-eyebrow {
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.hkpt-home-slide-content .hkpt-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.hkpt-slider-dots {
    min-width: 0;
    max-width: calc(100% - 132px);
    margin-inline: auto;
    padding-inline: 8px;
    overflow: hidden;
}

/* Component containment and resilient wrapping. */
.hkpt-card-grid,
.hkpt-series-grid,
.hkpt-home-event-grid,
.hkpt-event-grid,
.hkpt-sponsor-grid,
.hkpt-stat-grid,
.hkpt-gallery-grid,
.hkpt-dashboard-grid,
.hkpt-event-layout,
.hkpt-ranking-filters,
.hkpt-event-facts,
.hkpt-event-card-facts,
.hkpt-member-summary {
    width: 100%;
    max-width: 100%;
}

.hkpt-event-card-top,
.hkpt-dashboard-header,
.hkpt-home-event-meta,
.hkpt-breakdown {
    min-width: 0;
}

.hkpt-event-card-top {
    align-items: flex-start;
    gap: 12px;
}

.hkpt-event-card-top > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hkpt-home-event-card,
.hkpt-series-card,
.hkpt-content-card,
.hkpt-event-card,
.hkpt-panel,
.hkpt-stat,
.hkpt-alert,
.hkpt-auth-card,
.hkpt-sponsor-logo {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hkpt-series-hero-overlay,
.hkpt-event-hero-content {
    width: min(100%, 720px);
    max-width: 100%;
}

.hkpt-series-hero-overlay h1,
.hkpt-event-hero-content h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.hkpt-series-copy,
.hkpt-series-copy > *,
.hkpt-panel > *,
.hkpt-disclaimer > * {
    max-width: 100%;
}

.hkpt-section-tabs {
    scrollbar-gutter: stable;
}

.hkpt-section-tabs::after {
    content: "";
    flex: 0 0 2px;
}

.hkpt-table-wrap,
.hkpt-responsive-table {
    border-radius: var(--hkpt-radius, 14px);
}

.hkpt-table {
    max-width: none;
}

.hkpt-ranking-filters button,
.hkpt-auth-card .hkpt-button,
.hkpt-scanner .hkpt-button {
    min-height: 46px;
}

.hkpt-auth-card,
.hkpt-scanner,
.hkpt-panel {
    width: 100%;
}

.hkpt-logo-placeholder span,
.hkpt-logo-placeholder small {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Tablet and compact desktop */
@media (max-width: 1024px) {
    .hkpt-home-slide-content h1 {
        font-size: clamp(2.9rem, 8.4vw, 5.6rem);
    }

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

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

    .hkpt-ranking-filters button {
        width: 100%;
    }
}

/* Phones and portrait tablets */
@media (max-width: 800px) {
    :root {
        --hkpt-slider-base-height: clamp(640px, calc(100svh - var(--site-header-height)), 820px);
    }

    .hkpt-home-slider,
    .hkpt-home-slide-content {
        min-height: max(var(--hkpt-slider-base-height), var(--hkpt-slider-fit-height, 0px));
    }

    .hkpt-home-slide-content {
        justify-content: flex-end;
        padding-top: clamp(72px, 12vh, 110px);
        padding-bottom: 112px;
    }

    .hkpt-home-slide-content h1 {
        margin-block: 8px 14px;
        font-size: clamp(2.35rem, 10.5vw, 4.25rem);
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .hkpt-home-slide-content p {
        margin-bottom: 20px;
        font-size: clamp(1rem, 3.5vw, 1.15rem);
        line-height: 1.45;
    }

    .hkpt-slider-arrow {
        bottom: max(18px, env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
    }

    .hkpt-slider-dots {
        bottom: calc(max(18px, env(safe-area-inset-bottom)) + 15px);
        max-width: calc(100% - 132px);
    }

    .hkpt-logo-carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .hkpt-series-hero-overlay,
    .hkpt-event-hero-content {
        padding: 38px 22px;
    }

    .hkpt-series-hero-overlay h1,
    .hkpt-event-hero-content h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hkpt-event-layout,
    .hkpt-dashboard-grid {
        gap: 18px;
    }

    .hkpt-table th,
    .hkpt-table td {
        padding: 12px 13px;
    }
}

@media (max-width: 620px) {
    :root {
        --hkpt-slider-base-height: clamp(660px, calc(100svh - var(--site-header-height)), 790px);
    }

    .hkpt-home-slide-content {
        padding-top: 72px;
        padding-bottom: 116px;
    }

    .hkpt-home-slide-content h1 {
        font-size: clamp(2.2rem, 11.5vw, 3.35rem);
        line-height: 1.02;
    }

    .hkpt-home-slide-content p {
        font-size: 1rem;
    }

    .hkpt-home-event-grid,
    .hkpt-ranking-filters {
        grid-template-columns: 1fr;
    }

    .hkpt-home-event-meta {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .hkpt-logo-carousel-arrow {
        display: none;
    }

    .hkpt-event-card-top {
        flex-wrap: wrap;
    }

    .hkpt-series-hero,
    .hkpt-event-hero {
        min-height: 420px;
    }

    .hkpt-series-hero:not(:has(> img)),
    .hkpt-event-hero:not(:has(> img)) {
        min-height: 0;
    }

    .hkpt-series-hero-overlay,
    .hkpt-event-hero-content {
        padding: 30px 18px;
    }

    .hkpt-event-facts {
        gap: 12px;
    }

    .hkpt-section-tabs {
        margin-inline: calc(var(--site-gutter) * -1);
        padding-inline: var(--site-gutter);
    }

    .hkpt-auth-card,
    .hkpt-panel {
        padding: 18px;
    }

    .hkpt-member-summary {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .hkpt-member-summary img {
        width: 56px;
        height: 56px;
    }
}

/* Very small phones */
@media (max-width: 420px) {
    :root {
        --site-gutter: 14px;
        --hkpt-slider-base-height: clamp(690px, calc(100svh - var(--site-header-height)), 790px);
    }

    .header-inner {
        gap: 10px;
    }

    .site-brand {
        max-width: calc(100vw - 94px);
    }

    .site-brand .custom-logo {
        max-width: min(164px, calc(100vw - 104px));
    }

    .menu-toggle {
        min-width: 48px;
        min-height: 42px;
        padding-inline: 9px;
    }

    .hkpt-home-slide-content {
        padding-top: 64px;
        padding-bottom: 118px;
    }

    .hkpt-home-slide-content h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
        line-height: 1.04;
    }

    .hkpt-home-slide-content .hkpt-button {
        width: 100%;
        min-height: 46px;
    }

    .hkpt-slider-arrow {
        width: 42px;
        height: 42px;
    }

    .hkpt-slider-prev {
        left: 14px;
    }

    .hkpt-slider-next {
        right: 14px;
    }

    .hkpt-slider-dots {
        max-width: calc(100% - 120px);
    }

    .hkpt-home-event-meta {
        grid-template-columns: 1fr;
    }

    .hkpt-home-event-meta strong {
        grid-column: auto;
    }

    .hkpt-event-facts,
    .hkpt-event-card-facts,
    .hkpt-stat-grid,
    .hkpt-sponsor-grid {
        grid-template-columns: 1fr;
    }

    .hkpt-event-card,
    .hkpt-home-event-body,
    .hkpt-content-body {
        padding: 17px;
    }

    .hkpt-table {
        min-width: 520px;
    }

    .hkpt-member-summary {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hkpt-member-summary img {
        width: 64px;
        height: 64px;
    }

    .section-heading h2,
    .sponsor-section-heading h2,
    .archive-header h1 {
        font-size: clamp(2rem, 11vw, 2.75rem);
    }
}

/* Short landscape screens: retain readable content and allow the page itself to
   scroll instead of clipping the slider. */
@media (max-height: 620px) and (orientation: landscape) {
    :root {
        --hkpt-slider-base-height: 600px;
    }

    .hkpt-home-slide-content {
        justify-content: center;
        padding-top: 58px;
        padding-bottom: 96px;
    }

    .hkpt-home-slide-content h1 {
        font-size: clamp(2.2rem, 7vw, 4rem);
    }
}

/* Fallback for browsers without :has(). No-image heroes remain fully readable;
   browsers with :has() receive the more compact treatment above. */
@supports not selector(:has(*)) {
    @media (max-width: 620px) {
        .hkpt-series-hero,
        .hkpt-event-hero {
            min-height: 420px;
        }
    }
}

/* ========================================================================== 
   HKPT 1.1.0 — reference-aligned homepage, header, footer and mobile menus
   ========================================================================== */
:root {
    --site-bg: #0b0b0e;
    --site-panel: #19191d;
    --site-panel-2: #222228;
    --site-text: #f5f5f7;
    --site-muted: #8f9098;
    --site-accent: #DFA12E;
    --site-accent-hover: #E7B451;
    --site-accent-text: #DFA12E;
    --site-gold: #DFA12E;
    --site-border: rgba(255, 255, 255, 0.085);
    --site-shell: 1180px;
    --site-header-height: 66px;
    --mobile-nav-height: 62px;
}

body {
    background: var(--site-bg);
    font-size: 15px;
}

body.hkpt-drawer-open {
    overflow: hidden;
    touch-action: none;
}

.site-shell {
    max-width: var(--site-shell);
}

/* Header */
.site-header {
    position: relative;
    z-index: 1200;
    border: 0;
    background: var(--site-bg);
    backdrop-filter: none;
}

.header-inner {
    min-height: var(--site-header-height);
    padding-top: 8px;
    padding-bottom: 8px;
    gap: clamp(20px, 3vw, 44px);
}

.header-brand-cluster,
.footer-brand-cluster,
.drawer-brand-cluster {
    display: flex;
    min-width: 0;
    align-items: center;
}

.header-brand-cluster {
    flex: 0 1 auto;
    gap: 15px;
}

.site-brand {
    max-width: 174px;
    flex: 0 1 auto;
}

.site-brand .custom-logo-link,
.drawer-site-brand .custom-logo-link,
.footer-site-logo .custom-logo-link {
    display: block;
}

.site-brand .custom-logo {
    width: auto;
    max-width: 142px;
    max-height: 44px;
}

.header-sponsor,
.footer-sponsor-logo,
.drawer-sponsor {
    display: flex;
    min-width: 0;
    align-items: center;
}

.header-sponsor {
    gap: 8px;
}

.header-sponsor-label,
.footer-sponsor-logo > span,
.drawer-sponsor > span {
    color: #777982;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.hkpt-sponsor-brand-link {
    display: grid;
    min-width: 0;
    place-items: center;
}

.header-sponsor .hkpt-sponsor-brand-image {
    width: auto;
    max-width: 96px;
    max-height: 35px;
    object-fit: contain;
}

.desktop-primary-nav {
    min-width: 0;
    flex: 1 1 auto;
}

.desktop-primary-nav .hkpt-menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 39px);
}

.desktop-primary-nav .hkpt-menu a {
    color: #e5e5e8;
    font-size: 13px;
    font-weight: 450;
    line-height: 1;
    white-space: nowrap;
}

.desktop-primary-nav .current-menu-item > a,
.desktop-primary-nav .current_page_item > a,
.desktop-primary-nav a:hover,
.desktop-primary-nav a:focus-visible {
    color: var(--site-gold);
}

.header-utility-button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #17171b;
    color: #8d8e95;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-utility-button:hover,
.header-utility-button:focus-visible,
.header-utility-button[aria-expanded="true"] {
    background: #232329;
    color: #fff;
}

.header-utility-button svg {
    width: 20px;
    height: 20px;
}

/* Slide-out drawer */
.hkpt-drawer {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(86vw, 390px);
    visibility: hidden;
    pointer-events: none;
}

.hkpt-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.hkpt-drawer-backdrop {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.66);
    opacity: 0;
    cursor: pointer;
    backdrop-filter: blur(7px);
    transition: opacity 0.28s ease;
}

.hkpt-drawer.is-open .hkpt-drawer-backdrop {
    opacity: 1;
}

.hkpt-drawer-panel {
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(22px, env(safe-area-inset-top)) 30px calc(44px + env(safe-area-inset-bottom));
    background: #18181c;
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    scrollbar-width: thin;
}

.hkpt-drawer.is-open .hkpt-drawer-panel {
    transform: translateX(0);
}

.hkpt-drawer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.drawer-brand-cluster {
    gap: 14px;
}

.drawer-site-brand .custom-logo {
    width: auto;
    max-width: 114px;
    max-height: 43px;
}

.drawer-sponsor {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.drawer-sponsor .hkpt-sponsor-brand-image {
    width: auto;
    max-width: 88px;
    max-height: 31px;
    object-fit: contain;
}

.hkpt-drawer-close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #25252b;
    color: #d6d6da;
    cursor: pointer;
}

.hkpt-drawer-close svg {
    width: 18px;
    height: 18px;
}

.drawer-primary {
    margin-top: 45px;
}

.drawer-menu,
.drawer-secondary-menu {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.drawer-menu a,
.drawer-secondary-menu a {
    display: block;
    color: #eeeef1;
    text-decoration: none;
}

.drawer-menu a {
    padding: 7px 0;
    font-size: 16px;
}

.drawer-secondary-menu a {
    padding: 6px 0;
    color: #a6a7ad;
    font-size: 13px;
}

.drawer-menu a:hover,
.drawer-menu a:focus-visible,
.drawer-secondary-menu a:hover,
.drawer-secondary-menu a:focus-visible {
    color: var(--site-gold);
}

.drawer-section {
    margin-top: 38px;
    text-align: right;
}

.drawer-section h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.drawer-language-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 18px;
}

.drawer-language-grid a {
    color: #8f9097;
    font-size: 12px;
    text-decoration: none;
}

.drawer-language-grid a:hover,
.drawer-language-grid a:focus-visible {
    color: #fff;
}

/* Homepage */
.hkpt-homepage {
    padding-top: 6px;
}

.home-slider-section {
    padding-top: 8px;
}

.home-slider-frame {
    width: min(100%, 870px);
    margin-inline: auto;
}

.home-slider-frame .hkpt-home-slider {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 3.55 / 1;
    overflow: visible;
    background: transparent;
}

.home-slider-frame .hkpt-home-slider-track {
    overflow: hidden;
    border-radius: 6px;
    background: #111114;
}

.home-slider-frame .hkpt-home-slide,
.home-slider-frame .hkpt-home-slide-media,
.home-slider-frame .hkpt-home-slide-media img,
.home-slider-frame .hkpt-home-slide-placeholder {
    min-height: 0 !important;
}

.home-slider-frame .hkpt-home-slide-media img {
    object-fit: cover;
}

.home-slider-frame .hkpt-home-slide-shade,
.home-slider-frame .hkpt-home-slide-content,
.home-slider-frame .hkpt-slider-arrow {
    display: none !important;
}

.home-slider-frame .hkpt-slider-dots {
    bottom: -22px !important;
    gap: 7px;
}

.home-slider-frame .hkpt-slider-dots button {
    width: 7px;
    height: 7px;
    min-width: 7px;
    padding: 0;
    background: #4b4b50;
}

.home-slider-frame .hkpt-slider-dots button.is-active {
    width: 7px;
    background: #f6f6f8;
}

.home-sections {
    display: block;
    padding-top: 76px;
    padding-bottom: 96px;
}

.home-content-section {
    margin-top: 0;
}

.home-content-section + .home-content-section {
    margin-top: 84px;
}

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.home-section-heading h2,
.sponsor-section-title {
    margin: 0;
    color: #f4f4f6;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.home-section-heading a {
    color: var(--site-gold);
    font-size: 13px;
    font-weight: 450;
    text-decoration: none;
}

.home-section-heading a:hover,
.home-section-heading a:focus-visible {
    color: #ffe18a;
}

.home-series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.home-series-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 1.74 / 1;
    overflow: hidden;
    border-radius: 5px;
    background: #151518;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}

.home-series-media,
.home-series-media img,
.home-media-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-series-media img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-series-card:hover .home-series-media img {
    transform: scale(1.025);
}

.home-media-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2B2314, #111114);
    color: #fff;
    font-size: clamp(28px, 7vw, 56px);
    font-weight: 900;
}

.home-series-overlay {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    display: grid;
    gap: 4px;
    padding: 80px 13px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.74) 45%, rgba(0, 0, 0, 0.98) 100%);
}

.home-series-overlay strong {
    overflow-wrap: anywhere;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.02;
}

.home-series-overlay small {
    color: var(--site-gold);
    font-size: 12px;
    line-height: 1.2;
}

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

.home-news-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #1b1b1f;
}

.home-news-card > a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.home-news-media {
    position: relative;
    display: block;
    aspect-ratio: 1.72 / 1;
    overflow: hidden;
    background: #151518;
}

.home-news-media img,
.home-news-media .home-media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-news-card:hover .home-news-media img {
    transform: scale(1.025);
}

.home-news-body {
    display: grid;
    gap: 6px;
    padding: 11px 12px 13px;
}

.home-news-body strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.home-news-body small {
    color: #9b9ca3;
    font-size: 10px;
    font-style: italic;
    line-height: 1.3;
}

.sponsor-section-title {
    margin-bottom: 54px;
    text-align: center;
}

.home-title-sponsor-section,
.home-supporting-sponsors-section,
.home-valued-partners-section {
    text-align: center;
}

.home-title-sponsor-section {
    padding-top: 12px;
}

.home-title-sponsor-section .hkpt-sponsor-feature,
.home-title-sponsor-section .hkpt-sponsor-list {
    display: flex;
    justify-content: center;
}

.home-title-sponsor-section .hkpt-sponsor-logo,
.home-supporting-sponsors-section .hkpt-sponsor-logo,
.home-valued-partners-section .hkpt-sponsor-logo {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.home-title-sponsor-section .hkpt-sponsor-logo:hover,
.home-supporting-sponsors-section .hkpt-sponsor-logo:hover,
.home-valued-partners-section .hkpt-sponsor-logo:hover {
    border: 0;
    background: transparent;
    transform: none;
}

.home-title-sponsor-section .hkpt-sponsor-logo {
    width: min(100%, 470px);
}

.home-title-sponsor-section .hkpt-sponsor-logo img {
    width: auto;
    max-width: min(100%, 470px);
    max-height: 128px;
}

.home-supporting-sponsors-section .hkpt-sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 34px 48px;
}

.home-supporting-sponsors-section .hkpt-sponsor-logo {
    width: clamp(150px, 18vw, 220px);
}

.home-supporting-sponsors-section .hkpt-sponsor-logo img {
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.home-valued-partners-section .hkpt-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 52px 42px;
}

.home-valued-partners-section .hkpt-sponsor-logo {
    width: 100%;
}

.home-valued-partners-section .hkpt-sponsor-logo img {
    width: auto;
    max-width: 100%;
    max-height: 82px;
    object-fit: contain;
}

.home-title-sponsor-section .hkpt-logo-placeholder,
.home-supporting-sponsors-section .hkpt-logo-placeholder,
.home-valued-partners-section .hkpt-logo-placeholder {
    min-height: 84px;
    border-color: rgba(255, 255, 255, 0.16);
    background: transparent;
}

/* Desktop footer */
.site-footer {
    border: 0;
    background: #19191d;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(130px, 0.6fr));
    gap: 48px;
    padding-top: 58px;
    padding-bottom: 64px;
}

.footer-brand-cluster {
    gap: 18px;
}

.footer-site-logo .custom-logo {
    width: auto;
    max-width: 150px;
    max-height: 50px;
}

.footer-sponsor-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.footer-sponsor-logo .hkpt-sponsor-brand-image {
    width: auto;
    max-width: 112px;
    max-height: 38px;
    object-fit: contain;
}

.footer-copyright {
    margin: 24px 0 0;
    color: #8e8f96;
    font-size: 11px;
}

.footer-column h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.footer-menu,
.footer-social-menu {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu a,
.footer-social-menu a {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    color: #8e8f96;
    font-size: 11px;
    line-height: 1.25;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.footer-menu a:hover,
.footer-menu a:focus-visible,
.footer-social-menu a:hover,
.footer-social-menu a:focus-visible {
    color: #fff;
}

.footer-social-menu a::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 8px;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.9;
}

.footer-social-menu a[href*="instagram"]::before {
    border-radius: 4px;
}

.footer-social-menu a[href*="youtube"]::before {
    border-radius: 4px;
}

/* Fixed mobile navigation */
.mobile-bottom-nav {
    display: none;
}

/* Internal page containment retained across all breakpoints. */
.site-content,
.page-shell,
.article-shell,
.standard-page,
.hkpt-panel,
.hkpt-auth-card,
.hkpt-series-hero,
.hkpt-event-hero,
.hkpt-table-wrap,
.hkpt-responsive-table {
    max-width: 100%;
}

@media (max-width: 980px) {
    .header-inner {
        gap: 18px;
    }

    .header-brand-cluster {
        gap: 10px;
    }

    .site-brand .custom-logo {
        max-width: 126px;
    }

    .header-sponsor .hkpt-sponsor-brand-image {
        max-width: 82px;
    }

    .desktop-primary-nav .hkpt-menu {
        gap: 19px;
    }

    .desktop-primary-nav .hkpt-menu a {
        font-size: 12px;
    }

    .home-valued-partners-section .hkpt-sponsor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    :root {
        --site-gutter: 10px;
        --site-header-height: 70px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: var(--site-header-height);
        justify-content: flex-start;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .header-brand-cluster {
        width: 100%;
        justify-content: flex-start;
        gap: 11px;
    }

    .site-brand {
        max-width: 112px;
    }

    .site-brand .custom-logo {
        max-width: 105px;
        max-height: 39px;
    }

    .header-sponsor {
        gap: 5px;
    }

    .header-sponsor-label {
        font-size: 5.5px;
    }

    .header-sponsor .hkpt-sponsor-brand-image {
        max-width: 78px;
        max-height: 28px;
    }

    .desktop-primary-nav,
    .header-utility-button {
        display: none;
    }

    .hkpt-homepage {
        padding-top: 0;
    }

    .home-slider-section {
        padding-top: 0;
    }

    .home-slider-frame {
        width: min(100%, 420px);
    }

    .home-slider-frame .hkpt-home-slider {
        aspect-ratio: 1.7 / 1;
    }

    .home-slider-frame .hkpt-slider-dots {
        bottom: -18px !important;
    }

    .home-sections {
        padding-top: 64px;
        padding-bottom: 70px;
    }

    .home-content-section + .home-content-section {
        margin-top: 70px;
    }

    .home-section-heading {
        margin-bottom: 14px;
    }

    .home-section-heading h2,
    .sponsor-section-title {
        font-size: 15px;
    }

    .home-section-heading a {
        font-size: 12px;
    }

    .home-series-grid,
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-series-card {
        aspect-ratio: 1.72 / 1;
    }

    .home-series-overlay {
        padding: 58px 8px 8px;
    }

    .home-series-overlay strong {
        font-size: clamp(18px, 6vw, 23px);
    }

    .home-series-overlay small {
        font-size: 10px;
    }

    .home-news-media {
        aspect-ratio: 1.75 / 1;
    }

    .home-news-body {
        padding: 7px 7px 10px;
    }

    .home-news-body strong {
        font-size: 13px;
    }

    .home-news-body small {
        font-size: 9px;
    }

    .sponsor-section-title {
        margin-bottom: 42px;
    }

    .home-title-sponsor-section .hkpt-sponsor-logo {
        width: min(100%, 360px);
    }

    .home-title-sponsor-section .hkpt-sponsor-logo img {
        max-width: min(100%, 360px);
        max-height: 104px;
    }

    .home-supporting-sponsors-section .hkpt-sponsor-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .home-supporting-sponsors-section .hkpt-sponsor-logo {
        width: 100%;
    }

    .home-supporting-sponsors-section .hkpt-sponsor-logo img {
        max-height: 52px;
    }

    .home-valued-partners-section .hkpt-sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 22px;
    }

    .home-valued-partners-section .hkpt-sponsor-logo img {
        max-height: 62px;
    }

    .site-footer {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 2400;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(23, 23, 27, 0.97);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-link {
        display: flex;
        min-width: 0;
        min-height: var(--mobile-nav-height);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 3px;
        border: 0;
        background: transparent;
        color: #888990;
        font-size: 9px;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-bottom-link svg {
        width: 19px;
        height: 19px;
    }

    .mobile-bottom-link:hover,
    .mobile-bottom-link:focus-visible,
    .mobile-bottom-link.is-active,
    .mobile-bottom-link[aria-expanded="true"] {
        color: #f4f4f6;
    }

    .mobile-bottom-link.is-active {
        color: var(--site-accent);
    }

    .mobile-home-logo {
        display: grid;
        width: 26px;
        height: 25px;
        place-items: center;
        overflow: hidden;
    }

    .mobile-home-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mobile-home-logo > span {
        display: grid;
        width: 25px;
        height: 25px;
        place-items: center;
        border-radius: 50%;
        background: var(--site-accent);
        color: #fff;
        font-size: 6px;
        font-weight: 800;
    }

    .hkpt-drawer {
        grid-template-columns: minmax(0, 1fr) min(82vw, 350px);
    }

    .hkpt-drawer-panel {
        padding-right: 18px;
        padding-left: 24px;
        padding-bottom: calc(var(--mobile-nav-height) + 34px + env(safe-area-inset-bottom));
    }

    .hkpt-drawer-top {
        padding-top: 4px;
    }

    .drawer-primary {
        margin-top: 42px;
    }

    .drawer-menu a {
        font-size: 14px;
    }

    .drawer-section {
        margin-top: 34px;
    }

    .drawer-section h2 {
        font-size: 14px;
    }

    .drawer-secondary-menu a,
    .drawer-language-grid a {
        font-size: 11px;
    }

    .hkpt-table-wrap,
    .hkpt-responsive-table,
    .wp-block-table {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 420px) {
    :root {
        --site-gutter: 8px;
    }

    .header-inner {
        gap: 8px;
    }

    .site-brand {
        max-width: 100px;
    }

    .site-brand .custom-logo {
        max-width: 96px;
    }

    .header-sponsor .hkpt-sponsor-brand-image {
        max-width: 70px;
    }

    .home-slider-frame .hkpt-home-slider {
        aspect-ratio: 1.62 / 1;
    }

    .home-sections {
        padding-top: 60px;
    }

    .home-content-section + .home-content-section {
        margin-top: 64px;
    }

    .home-series-overlay strong {
        font-size: 18px;
    }

    .home-supporting-sponsors-section .hkpt-sponsor-grid {
        gap: 24px 12px;
    }

    .home-valued-partners-section .hkpt-sponsor-grid {
        gap: 34px 16px;
    }

    .hkpt-drawer {
        grid-template-columns: 18vw 82vw;
    }

    .hkpt-drawer-panel {
        padding-right: 14px;
        padding-left: 18px;
    }

    .drawer-site-brand .custom-logo {
        max-width: 94px;
    }

    .drawer-sponsor .hkpt-sponsor-brand-image {
        max-width: 72px;
    }
}

@media (max-width: 340px) {
    .header-sponsor-label {
        display: none;
    }

    .home-section-heading h2,
    .sponsor-section-title {
        font-size: 14px;
    }

    .mobile-bottom-link {
        font-size: 8px;
    }

    .mobile-bottom-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkpt-drawer-backdrop,
    .hkpt-drawer-panel,
    .home-series-media img,
    .home-news-media img {
        transition: none;
    }
}

/* Specificity corrections for legacy footer rules retained for internal pages. */
.site-footer {
    padding: 0;
}

.site-footer .footer-menu,
.site-footer .footer-social-menu {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 11px;
    margin: 0;
    padding: 0;
}

.site-footer .footer-menu a,
.site-footer .footer-social-menu a {
    display: inline-flex;
    max-width: 100%;
    padding: 0;
    color: #8e8f96;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus-visible,
.site-footer .footer-social-menu a:hover,
.site-footer .footer-social-menu a:focus-visible {
    color: #fff;
}

/* v1.1.1 — exact homepage typography, 10px card radii and separated logins */
.hkpt-homepage .home-slider-section,
.hkpt-homepage .home-content-section,
.hkpt-homepage .home-title-sponsor-section,
.hkpt-homepage .home-supporting-sponsors-section,
.hkpt-homepage .home-valued-partners-section {
    border: 0 !important;
}

.hkpt-homepage hr,
.hkpt-homepage .wp-block-separator,
.hkpt-homepage .elementor-divider,
.hkpt-homepage .elementor-divider-separator {
    display: none !important;
}

.home-slider-frame .hkpt-home-slider-track,
.home-series-card,
.home-news-card,
.home-news-media,
.hkpt-homepage .hkpt-home-event-card,
.hkpt-homepage .hkpt-card,
.hkpt-homepage .hkpt-content-card {
    border-radius: 10px !important;
}

.home-slider-frame .hkpt-home-slider-track,
.home-series-card,
.home-news-card,
.hkpt-homepage .hkpt-home-event-card,
.hkpt-homepage .hkpt-card,
.hkpt-homepage .hkpt-content-card {
    overflow: hidden;
}

/* Main headings for Series and Latest News blocks. */
.home-section-heading h2 {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 20px !important;
    font-style: normal;
    font-weight: 600 !important;
    line-height: 28px !important;
    color: oklch(0.985 0 0);
}

.home-section-heading a {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 24px !important;
    color: oklch(0.879 0.169 91.605) !important;
}

/* Series/Event widget titles. */
.home-series-overlay strong,
.hkpt-home-event-body h3,
.hkpt-event-card h3,
.hkpt-card-overlay h3 {
    margin: 0;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-size: 24px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 32px !important;
    letter-spacing: 0 !important;
    color: oklch(0.985 0 0) !important;
}

/* Information below Series/Event titles. */
.home-series-overlay small,
.hkpt-home-event-series,
.hkpt-home-event-meta,
.hkpt-event-card .hkpt-event-card-facts,
.hkpt-event-card .hkpt-event-card-meta {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 24px !important;
    color: rgb(206, 164, 91) !important;
}

/* News widget title and metadata. */
.home-news-body strong {
    margin: 0;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-size: 18px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 28px !important;
    color: oklch(0.985 0 0) !important;
}

.home-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-size: 12px !important;
    font-style: italic !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    color: oklch(0.871 0.006 286.286) !important;
}

.home-news-author {
    color: rgb(206, 164, 91) !important;
}

/* Separate member/staff login presentation. */
.hkpt-auth-card .hkpt-auth-intro,
.hkpt-auth-card .hkpt-auth-switch {
    color: var(--site-muted);
}

.hkpt-auth-card .hkpt-auth-switch {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hkpt-auth-card .hkpt-auth-switch a {
    color: rgb(206, 164, 91);
    font-weight: 600;
}

@media (max-width: 767px) {
    .home-section-heading {
        align-items: baseline;
    }

    .home-section-heading h2 {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    .home-section-heading a {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    .home-series-overlay strong,
    .hkpt-home-event-body h3,
    .hkpt-event-card h3,
    .hkpt-card-overlay h3 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .home-series-overlay small,
    .hkpt-home-event-series,
    .hkpt-home-event-meta,
    .hkpt-event-card .hkpt-event-card-facts,
    .hkpt-event-card .hkpt-event-card-meta {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    .home-news-body strong {
        font-size: 18px !important;
        line-height: 28px !important;
    }

    .home-news-meta {
        font-size: 12px !important;
        line-height: 16px !important;
    }
}

.hkpt-home-event-meta strong,
.hkpt-event-card .hkpt-event-card-facts strong,
.hkpt-event-card .hkpt-event-card-meta strong {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 24px !important;
    color: rgb(206, 164, 91) !important;
}

/* Homepage sponsor composition — reference layout.
   Supporting Sponsors: two logos in the first row, one centered below.
   Valued Partners: one featured logo, followed by two rows of four logos. */
.home-supporting-sponsors-section .hkpt-sponsor-grid {
    width: min(100%, 980px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 26px 34px;
}

.home-supporting-sponsors-section .hkpt-sponsor-logo {
    width: 100%;
    min-width: 0;
}

.home-supporting-sponsors-section .hkpt-sponsor-logo:nth-child(3) {
    width: min(100%, 520px);
    grid-column: 1 / -1;
    justify-self: center;
}

.home-supporting-sponsors-section .hkpt-sponsor-logo img {
    width: 100%;
    max-width: 100%;
    max-height: 112px;
    object-fit: contain;
}

.home-supporting-sponsors-section .hkpt-sponsor-logo:nth-child(3) img {
    max-height: 126px;
}

.home-valued-partners-section .hkpt-sponsor-grid {
    width: min(100%, 1080px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 46px 34px;
}

.home-valued-partners-section .hkpt-sponsor-logo:first-child {
    width: min(100%, 560px);
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 4px;
}

.home-valued-partners-section .hkpt-sponsor-logo img {
    width: auto;
    max-width: 100%;
    max-height: 112px;
    object-fit: contain;
}

.home-valued-partners-section .hkpt-sponsor-logo:first-child img {
    width: 100%;
    max-height: 128px;
}

@media (max-width: 767px) {
    .home-supporting-sponsors-section .hkpt-sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }

    .home-supporting-sponsors-section .hkpt-sponsor-logo img {
        max-height: 72px;
    }

    .home-supporting-sponsors-section .hkpt-sponsor-logo:nth-child(3) {
        width: min(100%, 330px);
    }

    .home-supporting-sponsors-section .hkpt-sponsor-logo:nth-child(3) img {
        max-height: 94px;
    }

    .home-valued-partners-section .hkpt-sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 18px;
    }

    .home-valued-partners-section .hkpt-sponsor-logo:first-child {
        width: min(100%, 360px);
        grid-column: 1 / -1;
        margin-bottom: 2px;
    }

    .home-valued-partners-section .hkpt-sponsor-logo img {
        max-height: 76px;
    }

    .home-valued-partners-section .hkpt-sponsor-logo:first-child img {
        max-height: 100px;
    }
}

@media (max-width: 380px) {
    .home-supporting-sponsors-section .hkpt-sponsor-grid {
        gap-inline: 10px;
    }

    .home-valued-partners-section .hkpt-sponsor-grid {
        gap-inline: 12px;
    }
}

/* ========================================================================== 
   v1.1.3 — full-width header, dynamic language menu, larger desktop slider,
   exact footer typography and real social media icons
   ========================================================================== */

/* Header spans the full browser width while content remains safely contained. */
.site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-right: clamp(16px, 3vw, 48px);
    padding-left: clamp(16px, 3vw, 48px);
}

.desktop-primary-nav .hkpt-menu a {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.header-language {
    position: relative;
    z-index: 15;
    flex: 0 0 auto;
}

.header-language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 145px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    background: #19191d;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.header-language.is-open .header-language-dropdown,
.header-language:hover .header-language-dropdown,
.header-language:focus-within .header-language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hkpt-language-link {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 500;
    text-decoration: none;
}

.header-language-dropdown .hkpt-language-link {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 12px;
    color: rgb(245, 206, 141);
    font-size: 16px;
    line-height: 24px;
    transition: color 0.18s ease, background 0.18s ease;
}

.header-language-dropdown .hkpt-language-link:hover,
.header-language-dropdown .hkpt-language-link:focus-visible {
    background: #25252a;
    color: #fff;
}

.header-language-dropdown .hkpt-language-link.is-current {
    background: #DFA12E;
    color: #111114;
}

.header-language-dropdown .hkpt-language-link.is-current:hover,
.header-language-dropdown .hkpt-language-link.is-current:focus-visible {
    background: #E7B451;
    color: #09090b;
}

/* The reference desktop banner is twenty percent wider than the prior build. */
@media (min-width: 768px) {
    .home-slider-frame {
        width: min(100%, 1044px);
    }
}

/* Mobile language links use the same switcher and keep native language names. */
.drawer-language-grid .hkpt-language-link {
    color: #a9a9af;
    font-size: 12px;
    line-height: 20px;
}

.drawer-language-grid .hkpt-language-link:hover,
.drawer-language-grid .hkpt-language-link:focus-visible,
.drawer-language-grid .hkpt-language-link.is-current {
    color: rgb(245, 206, 141);
}

.drawer-language-grid .hkpt-language-link.is-current {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Hide the third-party translator's own controls and banner. */
.hkpt-google-translate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-logo-link,
.goog-te-gadget {
    display: none !important;
}

html.translated-ltr,
html.translated-rtl,
html.translated-ltr body,
html.translated-rtl body,
body {
    top: 0 !important;
}

body > .skiptranslate {
    display: none !important;
}

.hkpt-language-loading body {
    cursor: progress;
}

/* Exact desktop footer typography supplied for the reference. */
.site-footer .footer-column h2 {
    margin-bottom: 18px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px !important;
    font-style: normal;
    font-weight: 500 !important;
    line-height: 24px !important;
    color: oklch(0.985 0 0) !important;
}

.site-footer .footer-menu a,
.site-footer .footer-social-menu a,
.site-footer .footer-copyright {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 20px !important;
    color: oklch(0.92 0.004 286.32) !important;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus-visible,
.site-footer .footer-social-menu a:hover,
.site-footer .footer-social-menu a:focus-visible {
    color: #fff !important;
}

.footer-social-menu a::before {
    content: none !important;
    display: none !important;
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
}

.footer-social-icon {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    color: currentColor;
}

.footer-social-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.footer-social-label {
    min-width: 0;
}

@media (max-width: 1120px) and (min-width: 768px) {
    .site-header .header-inner {
        gap: 14px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .desktop-primary-nav .hkpt-menu {
        gap: 16px;
    }

    .desktop-primary-nav .hkpt-menu a {
        font-size: 14px;
        line-height: 22px;
    }

    .site-brand .custom-logo {
        max-width: 124px;
    }

    .header-sponsor .hkpt-sponsor-brand-image {
        max-width: 78px;
    }
}

@media (max-width: 767px) {
    .site-header .header-inner {
        padding-right: var(--site-gutter);
        padding-left: var(--site-gutter);
    }

    .header-language {
        display: none;
    }

    .drawer-language-grid {
        gap: 10px 18px;
    }

    .drawer-language-grid .hkpt-language-link {
        font-size: 12px;
        line-height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-language-dropdown {
        transition: none;
    }
}

/* ========================================================================
   Series archive — reference-matched current and past card system
   ======================================================================== */
.hkpt-series-page-shell {
    --hkpt-series-gold: rgb(206, 164, 91);
    max-width: 1180px;
    padding-top: clamp(38px, 5vw, 68px);
    padding-bottom: clamp(82px, 9vw, 132px);
}

.hkpt-series-index {
    width: 100%;
    max-width: 100%;
}

.hkpt-series-index-header {
    margin: 0 0 34px;
}

.hkpt-series-index-header h1 {
    margin: 0;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    color: oklch(0.985 0 0);
}

.hkpt-series-index-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hkpt-series-index-grid--current {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hkpt-series-past {
    margin-top: clamp(42px, 6vw, 64px);
}

.hkpt-series-past > h2 {
    margin: 0 0 17px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    color: oklch(0.985 0 0);
}

.hkpt-series-index-grid--past {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hkpt-series-index-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #151517;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
    transform: translateZ(0);
}

.hkpt-series-index-card--current {
    aspect-ratio: 16 / 9;
}

.hkpt-series-index-card--past {
    aspect-ratio: 1 / 1;
}

.hkpt-series-index-media,
.hkpt-series-index-media img,
.hkpt-series-index-placeholder,
.hkpt-series-index-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hkpt-series-index-media {
    z-index: 0;
    overflow: hidden;
}

.hkpt-series-index-media img {
    object-fit: cover;
    transition: transform 350ms ease, filter 350ms ease;
}

.hkpt-series-index-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #222 0%, #0d0d0f 100%);
}

.hkpt-series-index-placeholder span {
    font-family: Oswald, sans-serif;
    font-size: clamp(34px, 7vw, 72px);
    color: rgba(255,255,255,.18);
}

.hkpt-series-index-shade {
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0) 38%, rgba(0,0,0,.24) 55%, rgba(0,0,0,.94) 100%),
        linear-gradient(to right, rgba(0,0,0,.08), rgba(0,0,0,0));
    pointer-events: none;
}

.hkpt-series-index-copy {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.hkpt-series-index-card--current .hkpt-series-index-copy {
    gap: 0;
    padding: 46px 10px 9px;
}

.hkpt-series-index-card--past .hkpt-series-index-copy {
    gap: 0;
    padding: 40px 8px 7px;
}

.hkpt-series-index-copy strong,
.hkpt-series-index-copy small {
    display: block;
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
}

.hkpt-series-index-card--current .hkpt-series-index-copy strong {
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    color: oklch(0.985 0 0);
}

.hkpt-series-index-card--current .hkpt-series-index-copy small {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: var(--hkpt-series-gold);
}

.hkpt-series-index-card--past .hkpt-series-index-copy strong {
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: oklch(0.985 0 0);
}

.hkpt-series-index-card--past .hkpt-series-index-copy small {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: var(--hkpt-series-gold);
}

.hkpt-series-index-card:hover,
.hkpt-series-index-card:focus-visible {
    color: #fff;
    outline: none;
}

.hkpt-series-index-card:hover .hkpt-series-index-media img,
.hkpt-series-index-card:focus-visible .hkpt-series-index-media img {
    transform: scale(1.035);
    filter: brightness(1.04);
}

.hkpt-series-index-card:focus-visible {
    box-shadow: 0 0 0 2px #070707, 0 0 0 4px var(--hkpt-series-gold), 0 12px 22px rgba(0,0,0,.24);
}

.hkpt-series-index-empty {
    margin: 0;
    color: #aaaab0;
    font-size: 14px;
}

@media (max-width: 900px) {
    .hkpt-series-index-grid--past {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hkpt-series-page-shell {
        padding-top: 30px;
        padding-bottom: 100px;
    }

    .hkpt-series-index-header {
        margin-bottom: 22px;
    }

    .hkpt-series-index-grid--current {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .hkpt-series-index-grid--past {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hkpt-series-past {
        margin-top: 42px;
    }

    .hkpt-series-index-card--current .hkpt-series-index-copy strong {
        font-size: clamp(20px, 6.2vw, 24px);
        line-height: 1.32;
    }

    .hkpt-series-index-card--current .hkpt-series-index-copy small {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 359px) {
    .hkpt-series-index-grid--past {
        grid-template-columns: minmax(0, 1fr);
    }

    .hkpt-series-index-card--past {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkpt-series-index-media img {
        transition: none;
    }
}

/* ========================================================================
   v1.2.1 — News archive and image-shadow card treatment
   ======================================================================== */

/* The approved cards do not have a separate solid black content panel. Text
   remains inside the 16:9 artwork and sits above a soft photographic shadow. */
.home-series-overlay {
    padding-top: clamp(48px, 9vw, 76px);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.04) 30%,
        rgba(0, 0, 0, 0.32) 57%,
        rgba(0, 0, 0, 0.68) 78%,
        rgba(0, 0, 0, 0.88) 100%
    );
}

.home-series-overlay strong,
.home-series-overlay small {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92);
}

/* Homepage News cards now use the exact same 16:9 overlay model as the News
   archive instead of adding a body block beneath the image. */
.home-news-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111114;
    isolation: isolate;
}

.home-news-card > a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.home-news-card > a::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 35%,
        rgba(0, 0, 0, 0.30) 58%,
        rgba(0, 0, 0, 0.70) 80%,
        rgba(0, 0, 0, 0.90) 100%
    );
    pointer-events: none;
}

.home-news-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.home-news-body {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: clamp(48px, 7vw, 76px) 11px 9px;
    background: transparent;
}

.home-news-body strong,
.home-news-meta {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.96);
}

/* News archive */
.hkpt-news-page-shell {
    --hkpt-news-gold: rgb(206, 164, 91);
    max-width: 1180px;
    padding-top: clamp(38px, 5vw, 68px);
    padding-bottom: clamp(82px, 9vw, 132px);
}

.hkpt-news-index-header {
    margin: 0 0 34px;
}

.hkpt-news-index-header h1 {
    margin: 0;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    color: oklch(0.985 0 0);
}

.hkpt-news-index-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hkpt-news-index-card {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #111114;
    isolation: isolate;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.20);
    transform: translateZ(0);
}

.hkpt-news-index-card > a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.hkpt-news-index-media,
.hkpt-news-index-media img,
.hkpt-news-index-placeholder,
.hkpt-news-index-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hkpt-news-index-media {
    z-index: 0;
    overflow: hidden;
}

.hkpt-news-index-media img {
    object-fit: cover;
    transition: transform 350ms ease, filter 350ms ease;
}

.hkpt-news-index-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2F2514 0%, #0e0e11 100%);
}

.hkpt-news-index-placeholder span {
    font-family: Oswald, sans-serif;
    font-size: clamp(34px, 7vw, 72px);
    color: rgba(255, 255, 255, 0.16);
}

.hkpt-news-index-shade {
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 34%,
        rgba(0, 0, 0, 0.30) 58%,
        rgba(0, 0, 0, 0.70) 80%,
        rgba(0, 0, 0, 0.91) 100%
    );
    pointer-events: none;
}

.hkpt-news-index-copy {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: clamp(50px, 7vw, 76px) 11px 9px;
}

.hkpt-news-index-copy strong {
    display: -webkit-box;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    color: oklch(0.985 0 0);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.96);
}

.hkpt-news-index-copy small {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.35em;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: 16px;
    color: oklch(0.871 0.006 286.286);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.96);
}

.hkpt-news-index-author {
    color: var(--hkpt-news-gold);
}

.hkpt-news-index-card:hover .hkpt-news-index-media img,
.hkpt-news-index-card:focus-within .hkpt-news-index-media img {
    transform: scale(1.035);
    filter: brightness(1.04);
}

.hkpt-news-index-card > a:focus-visible {
    outline: 2px solid var(--hkpt-news-gold);
    outline-offset: -2px;
}

.hkpt-news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.hkpt-news-pagination > ul.page-numbers {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hkpt-news-pagination > ul.page-numbers > li {
    margin: 0;
}

.hkpt-news-pagination a,
.hkpt-news-pagination span.page-numbers {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #f0f0f2;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.hkpt-news-pagination .prev,
.hkpt-news-pagination .next {
    gap: 5px;
    color: #a4a4aa;
}

.hkpt-news-pagination .current {
    border-color: rgba(206, 164, 91, 0.36);
    color: var(--hkpt-news-gold);
    background: rgba(255, 255, 255, 0.025);
}

.hkpt-news-pagination a:hover,
.hkpt-news-pagination a:focus-visible {
    border-color: rgba(206, 164, 91, 0.30);
    color: var(--hkpt-news-gold);
    outline: none;
}

.hkpt-news-index-empty {
    margin: 0;
    color: #aaaab0;
    font-size: 14px;
}

@media (max-width: 900px) {
    .hkpt-news-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hkpt-news-page-shell {
        padding-top: 30px;
        padding-bottom: 104px;
    }

    .hkpt-news-index-header {
        margin-bottom: 22px;
    }

    .hkpt-news-index-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .hkpt-news-index-copy,
    .home-news-body {
        padding-right: 10px;
        padding-bottom: 8px;
        padding-left: 10px;
    }

    .hkpt-news-pagination {
        margin-top: 28px;
    }

    .hkpt-news-pagination .page-numbers {
        gap: 2px;
    }

    .hkpt-news-pagination a,
    .hkpt-news-pagination span.page-numbers {
        min-width: 30px;
        min-height: 30px;
        padding: 4px 7px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkpt-news-index-media img {
        transition: none;
    }
}


/* ========================================================================
   v1.2.2 — 3:2 widget system, stronger image shadow, redesigned single news
   ======================================================================== */

/* All approved homepage/archive widgets now use a 3:2 landscape ratio. */
.home-series-card,
.home-news-card,
.hkpt-news-index-card,
.hkpt-series-index-card--current,
.hkpt-series-index-card--past {
    aspect-ratio: 3 / 2;
}

/* Increase shadow opacity so the content remains readable without looking like
   a separate solid-black block. */
.home-series-overlay {
    padding-top: clamp(52px, 9vw, 84px);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.08) 24%,
        rgba(0, 0, 0, 0.36) 48%,
        rgba(0, 0, 0, 0.74) 72%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.home-news-card > a::after,
.hkpt-news-index-shade,
.hkpt-series-index-shade {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.06) 24%,
        rgba(0, 0, 0, 0.34) 49%,
        rgba(0, 0, 0, 0.76) 74%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.home-news-body,
.hkpt-news-index-copy,
.hkpt-series-index-copy {
    padding-top: clamp(54px, 8vw, 86px);
}

.home-series-overlay strong,
.home-series-overlay small,
.home-news-body strong,
.home-news-meta,
.hkpt-news-index-copy strong,
.hkpt-news-index-copy small,
.hkpt-series-index-copy strong,
.hkpt-series-index-copy small {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.98);
}

/* Ensure imagery fills the new ratio cleanly. */
.home-series-media img,
.home-news-media img,
.hkpt-news-index-media img,
.hkpt-series-index-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News archive cards also follow the homepage widget typography/shadow model. */
.hkpt-news-index-card {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

/* Redesigned single news / blog page */
.hkpt-news-single-shell {
    max-width: 880px;
    padding-top: clamp(32px, 5vw, 64px);
    padding-bottom: clamp(72px, 8vw, 120px);
}

.hkpt-news-single-article {
    margin: 0 auto;
    width: min(100%, 820px);
}

.hkpt-news-single-header {
    margin-bottom: 18px;
}

.hkpt-news-single-header h1 {
    margin: 0 0 8px;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: oklch(0.985 0 0);
    letter-spacing: 0;
}

.hkpt-news-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .35rem;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.hkpt-news-single-posted,
.hkpt-news-single-by {
    color: oklch(0.705 0.015 286.067);
}

.hkpt-news-single-meta time {
    color: oklch(0.985 0 0);
}

.hkpt-news-single-author {
    color: rgb(206, 164, 91);
}

.hkpt-news-single-hero {
    margin: 0 0 22px;
    overflow: hidden;
    border-radius: 10px;
    background: #111114;
    aspect-ratio: 3 / 2;
}

.hkpt-news-single-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hkpt-news-single-content {
    color: oklch(0.872 0.01 258.338);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

.hkpt-news-single-content > *:first-child {
    margin-top: 0;
}

.hkpt-news-single-content p,
.hkpt-news-single-content li,
.hkpt-news-single-content blockquote,
.hkpt-news-single-content figcaption {
    color: oklch(0.872 0.01 258.338);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

.hkpt-news-single-content a {
    color: rgb(255, 255, 255);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hkpt-news-single-content h2,
.hkpt-news-single-content h3,
.hkpt-news-single-content h4 {
    margin: 1.4em 0 .4em;
    color: oklch(0.985 0 0);
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.hkpt-news-single-content h2 { font-size: 26px; }
.hkpt-news-single-content h3 { font-size: 22px; }
.hkpt-news-single-content h4 { font-size: 18px; }

.hkpt-news-single-content img,
.hkpt-news-single-content .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.hkpt-news-single-content figure {
    margin: 24px 0;
}

.hkpt-news-single-content ul,
.hkpt-news-single-content ol {
    padding-left: 1.25rem;
}

.hkpt-news-single-content table,
.hkpt-news-single-content .wp-block-table {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 767px) {
    .hkpt-news-single-shell {
        padding-top: 20px;
        padding-bottom: 88px;
    }

    .hkpt-news-single-header h1 {
        font-size: 30px;
        line-height: 36px;
    }

    .hkpt-news-single-meta {
        font-size: 16px;
        line-height: 24px;
    }
}


/* ========================================================================
   v1.2.3 — Reference-matched single News article composition
   ======================================================================== */
.hkpt-news-single-shell {
    max-width: 960px;
    padding-top: clamp(32px, 4.5vw, 58px);
    padding-bottom: clamp(76px, 8vw, 126px);
}

.hkpt-news-single-article {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.hkpt-news-single-header {
    width: min(100%, 760px);
    margin: 0 auto 24px;
}

.hkpt-news-single-hero {
    width: min(100%, 700px);
    margin: 0 auto 18px;
    border-radius: 10px;
    aspect-ratio: 3 / 2;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
}

.hkpt-news-single-content {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 42px) clamp(22px, 4.2vw, 44px) clamp(34px, 5vw, 54px);
    border-radius: 16px;
    background: #18181B;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.hkpt-news-single-content h2,
.hkpt-news-single-content h3,
.hkpt-news-single-content h4 {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 600;
    color: oklch(0.985 0 0);
}

.hkpt-news-single-content h2 {
    font-size: 22px;
    line-height: 32px;
}

.hkpt-news-single-content h3 {
    font-size: 20px;
    line-height: 30px;
}

.hkpt-news-single-content h4 {
    font-size: 18px;
    line-height: 28px;
}

.hkpt-news-single-content p {
    margin: 0 0 20px;
}

.hkpt-news-single-content > *:last-child {
    margin-bottom: 0;
}

.hkpt-news-single-content .wp-block-image,
.hkpt-news-single-content figure {
    margin: 26px 0;
}

@media (max-width: 767px) {
    .hkpt-news-single-shell {
        padding-top: 20px;
        padding-bottom: 92px;
    }

    .hkpt-news-single-header {
        margin-bottom: 18px;
    }

    .hkpt-news-single-hero {
        width: 100%;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .hkpt-news-single-content {
        width: 100%;
        padding: 22px 18px 30px;
        border-radius: 12px;
    }
}


/* ========================================================================
   v1.3.0 — Reference-matched Videos / HKPT TV page
   ======================================================================== */
.hkpt-tv-page-shell {
    max-width: 1344px;
    padding-top: clamp(54px, 6vw, 96px);
    padding-bottom: clamp(84px, 9vw, 132px);
}

.hkpt-tv-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(36px, 5vw, 80px);
}

.hkpt-tv-status-card {
    min-width: 0;
    padding: clamp(28px, 3vw, 40px);
    border-radius: 4px;
    background: #27272a;
}

.hkpt-tv-status-badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 8px 16px;
    border-radius: 4px;
    background: #fff;
    color: oklch(0.274 0.006 286.033);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
}

.hkpt-tv-status-card--live .hkpt-tv-status-badge {
    background: #e30613;
    color: #fff;
}

.hkpt-tv-status-card h1 {
    margin: 0;
    color: oklch(0.985 0 0);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
}

.hkpt-tv-status-card p {
    margin: 0;
    color: oklch(0.705 0.015 286.067);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.hkpt-tv-channel-panel {
    min-width: 0;
}

.hkpt-tv-channel-intro {
    margin: 0 0 20px;
    color: oklch(0.985 0 0);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.hkpt-tv-channel-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hkpt-tv-channel-button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 14px 18px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
}

.hkpt-tv-channel-button:hover,
.hkpt-tv-channel-button:focus-visible {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-2px);
}

.hkpt-tv-channel-button--twitch { background: #7146b6; }
.hkpt-tv-channel-button--youtube { background: #ff0000; }

.hkpt-tv-channel-icon {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
}

.hkpt-tv-channel-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.hkpt-tv-channel-button > span:last-child {
    display: grid;
    min-width: 0;
}

.hkpt-tv-channel-button strong {
    overflow-wrap: anywhere;
    color: oklch(0.985 0 0);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.hkpt-tv-channel-button small {
    color: oklch(0.871 0.006 286.286);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.hkpt-tv-channel-section {
    margin-top: 96px;
}

.hkpt-tv-channel-section > h2 {
    margin: 0 0 32px;
    color: oklch(0.985 0 0);
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.hkpt-tv-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 32px) 16px;
}

.hkpt-tv-video-card,
.hkpt-tv-video-card > a {
    min-width: 0;
}

.hkpt-tv-video-card {
    margin: 0;
}

.hkpt-tv-video-card > a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.hkpt-tv-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.hkpt-tv-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.hkpt-tv-video-card > a:hover .hkpt-tv-video-thumb img,
.hkpt-tv-video-card > a:focus-visible .hkpt-tv-video-thumb img {
    transform: scale(1.025);
}

.hkpt-tv-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000;
}

.hkpt-tv-play-icon {
    position: relative;
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #18181b;
}

.hkpt-tv-play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    transform: translate(-50%, -50%);
}

.hkpt-tv-video-card h3 {
    margin: 16px 0 0;
    color: oklch(0.985 0 0);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.hkpt-tv-empty {
    color: oklch(0.705 0.015 286.067);
    font: 400 16px/24px Inter, ui-sans-serif, system-ui, sans-serif;
}

.hkpt-video-single-shell {
    max-width: 900px;
    padding-top: 48px;
    padding-bottom: 96px;
}

.hkpt-video-single-card h1 {
    font: 400 30px/36px Oswald, ui-sans-serif, system-ui, sans-serif;
}

.hkpt-video-single-image {
    overflow: hidden;
    margin: 24px 0;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
}

.hkpt-video-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .hkpt-tv-status-grid {
        gap: 32px;
    }

    .hkpt-tv-channel-links {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    .hkpt-tv-page-shell {
        padding-top: 28px;
        padding-right: 18px;
        padding-bottom: 104px;
        padding-left: 18px;
    }

    .hkpt-tv-status-grid {
        grid-template-columns: 1fr;
        gap: 68px;
    }

    .hkpt-tv-status-card {
        padding: 38px;
    }

    .hkpt-tv-status-card h1 {
        max-width: 310px;
    }

    .hkpt-tv-channel-links {
        gap: 18px;
    }

    .hkpt-tv-channel-button {
        min-height: 74px;
        padding: 14px 16px;
    }

    .hkpt-tv-channel-section {
        margin-top: 96px;
    }

    .hkpt-tv-channel-section > h2 {
        margin-bottom: 38px;
    }

    .hkpt-tv-video-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .hkpt-tv-video-card h3 {
        margin-top: 16px;
    }
}

@media (max-width: 380px) {
    .hkpt-tv-status-card {
        padding: 28px;
    }
}


/* ========================================================================
   v1.4.0 — Editable Press page
   ======================================================================== */
.hkpt-press-page {
    min-height: 60vh;
}

.hkpt-press-shell {
    width: min(100%, 1180px);
    padding-top: clamp(38px, 5vw, 64px);
    padding-bottom: clamp(88px, 9vw, 136px);
}

.hkpt-press-page-title,
.hkpt-press-panel {
    width: min(100%, 720px);
    margin-right: auto;
    margin-left: auto;
}

.hkpt-press-page-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    color: oklch(0.985 0 0);
}

.hkpt-press-panel {
    overflow-wrap: anywhere;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 10px;
    background: #18181B;
    color: oklch(0.92 0.004 286.32);
}

.hkpt-press-panel h2 {
    margin: 0 0 30px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    color: oklch(0.985 0 0);
}

.hkpt-press-panel p,
.hkpt-press-panel li,
.hkpt-press-contact-row {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    color: oklch(0.92 0.004 286.32);
}

.hkpt-press-richtext p {
    margin: 0 0 18px;
}

.hkpt-press-richtext strong,
.hkpt-press-coming-up strong,
.hkpt-press-connect h3 {
    color: oklch(0.985 0 0);
    font-weight: 600;
}

.hkpt-press-coming-up {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .35rem;
    margin: 26px 0 0;
}

.hkpt-press-section {
    margin-top: 36px;
}

.hkpt-press-section-title {
    display: inline-block;
    margin: 0 0 18px;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hkpt-press-action-link {
    display: block;
    width: fit-content;
    margin: 0 0 22px;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hkpt-press-section-title:hover,
.hkpt-press-action-link:hover,
.hkpt-press-contact-row:hover strong {
    color: rgb(245, 206, 141);
}

.hkpt-press-guidelines {
    margin-top: 34px;
}

.hkpt-press-divider {
    height: 1px;
    margin: 38px 0;
    border: 0;
    background: oklch(0.37 0.013 285.805);
}

.hkpt-press-connect h3 {
    margin: 0 0 12px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
}

.hkpt-press-contact-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.hkpt-press-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .35rem;
    color: oklch(0.92 0.004 286.32);
    text-decoration: none;
}

.hkpt-press-contact-row strong {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hkpt-press-contact-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hkpt-press-mobile-actions {
    display: none;
}

@media (max-width: 767px) {
    .hkpt-press-shell {
        padding: 18px 12px 92px;
    }

    .hkpt-press-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 6px 24px;
    }

    .hkpt-press-round-action {
        display: inline-grid;
        width: 54px;
        height: 54px;
        padding: 0;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: #27272A;
        color: #fff;
        cursor: pointer;
    }

    .hkpt-press-round-action svg {
        width: 27px;
        height: 27px;
    }

    .hkpt-press-round-action.is-copied::after {
        content: "Copied";
        position: absolute;
        transform: translateY(42px);
        padding: 4px 8px;
        border-radius: 4px;
        background: #27272A;
        color: #fff;
        font: 500 12px/16px Inter, sans-serif;
    }

    .hkpt-press-page-title {
        margin-bottom: 24px;
        text-align: center;
        font-size: 30px;
        line-height: 36px;
    }

    .hkpt-press-panel {
        padding: 28px 24px;
        border-radius: 10px;
    }

    .hkpt-press-panel h2 {
        margin-bottom: 26px;
        font-size: 30px;
        line-height: 38px;
    }

    .hkpt-press-panel p,
    .hkpt-press-panel li,
    .hkpt-press-contact-row {
        font-size: 16px;
        line-height: 28px;
    }

    .hkpt-press-section {
        margin-top: 36px;
    }

    .hkpt-press-section-title {
        font-size: 20px;
        line-height: 28px;
    }

    .hkpt-press-divider {
        margin: 38px 0;
    }

    .hkpt-press-contact-row {
        display: block;
    }

    .hkpt-press-contact-row strong,
    .hkpt-press-contact-row span {
        display: inline;
    }
}

@media (max-width: 360px) {
    .hkpt-press-shell {
        padding-right: 8px;
        padding-left: 8px;
    }

    .hkpt-press-panel {
        padding: 24px 18px;
    }
}


/* ========================================================================
   v1.4.1 — Single Press information page (no Press archive/widgets)
   ======================================================================== */
.hkpt-press-page {
    min-height: 60vh;
    background: #09090b;
}

.hkpt-press-shell {
    width: min(100%, 1180px);
    padding-top: 42px;
    padding-bottom: 118px;
}

.hkpt-press-page-title,
.hkpt-press-panel {
    width: min(100%, 720px);
    margin-right: auto;
    margin-left: auto;
}

.hkpt-press-page-title {
    margin: 0 auto 24px;
    color: oklch(0.985 0 0);
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
}

.hkpt-press-panel {
    padding: 36px 40px 38px;
    overflow: hidden;
    overflow-wrap: anywhere;
    border-radius: 10px;
    background: #18181B;
    box-shadow: none;
}

.hkpt-press-panel h2 {
    margin: 0 0 28px;
    color: oklch(0.985 0 0);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
}

.hkpt-press-panel p,
.hkpt-press-panel li,
.hkpt-press-contact-row,
.hkpt-press-contact-row a {
    color: oklch(0.92 0.004 286.32);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.hkpt-press-richtext p {
    margin: 0 0 18px;
}

.hkpt-press-richtext strong,
.hkpt-press-coming-up strong,
.hkpt-press-connect h3 {
    color: oklch(0.985 0 0);
    font-weight: 600;
}

.hkpt-press-coming-up {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .35rem;
    margin: 27px 0 0;
}

.hkpt-press-section {
    margin-top: 38px;
}

.hkpt-press-section-title {
    display: block;
    width: fit-content;
    margin: 0 0 18px;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hkpt-press-action-link {
    display: block;
    width: fit-content;
    margin: 0 0 22px;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.hkpt-press-section-title:hover,
.hkpt-press-action-link:hover,
.hkpt-press-contact-label:hover,
.hkpt-press-contact-url:hover {
    color: rgb(245, 206, 141);
}

.hkpt-press-guidelines {
    margin-top: 35px;
}

.hkpt-press-divider {
    height: 1px;
    margin: 39px 0 38px;
    border: 0;
    background: #3f3f46;
}

.hkpt-press-connect h3 {
    margin: 0 0 12px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
}

.hkpt-press-contact-list {
    display: grid;
    gap: 13px;
    margin-top: 21px;
}

.hkpt-press-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .35rem;
    margin: 0;
}

.hkpt-press-contact-label {
    color: #fff !important;
    font-weight: 500 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.hkpt-press-contact-url {
    min-width: 0;
    overflow-wrap: anywhere;
    color: oklch(0.92 0.004 286.32) !important;
    text-decoration: none;
}

.hkpt-press-mobile-actions {
    display: none;
}

@media (max-width: 767px) {
    .hkpt-press-shell {
        width: 100%;
        padding: 18px 18px 98px;
    }

    .hkpt-press-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0 0 24px;
    }

    .hkpt-press-round-action {
        position: relative;
        display: inline-grid;
        width: 54px;
        height: 54px;
        padding: 0;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: #27272A;
        color: #fff;
        cursor: pointer;
    }

    .hkpt-press-round-action svg {
        width: 27px;
        height: 27px;
    }

    .hkpt-press-page-title {
        margin: 0 auto 24px;
        text-align: center;
        font-size: 30px;
        line-height: 36px;
    }

    .hkpt-press-panel {
        width: 100%;
        padding: 28px 24px 30px;
        border-radius: 10px;
    }

    .hkpt-press-panel h2 {
        margin-bottom: 27px;
        font-size: 30px;
        line-height: 38px;
    }

    .hkpt-press-panel p,
    .hkpt-press-panel li,
    .hkpt-press-contact-row,
    .hkpt-press-contact-row a {
        font-size: 16px;
        line-height: 28px;
    }

    .hkpt-press-coming-up {
        display: block;
        margin-top: 29px;
    }

    .hkpt-press-coming-up strong,
    .hkpt-press-coming-up span {
        display: inline;
    }

    .hkpt-press-section {
        margin-top: 38px;
    }

    .hkpt-press-section-title {
        font-size: 20px;
        line-height: 28px;
    }

    .hkpt-press-divider {
        margin: 40px 0 38px;
    }

    .hkpt-press-contact-list {
        gap: 15px;
    }

    .hkpt-press-contact-row {
        display: block;
    }

    .hkpt-press-contact-label,
    .hkpt-press-contact-url {
        display: inline;
    }
}

@media (max-width: 360px) {
    .hkpt-press-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hkpt-press-panel {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* ========================================================================
   v1.5.0 — Series detail: Events / Key Info / related News
   ======================================================================== */
:root {
    --hkpt-series-container: 1120px;
    --hkpt-series-header-offset: 80px;
    --hkpt-series-title-height: 48px;
    --hkpt-series-tabs-height: 42px;
    --hkpt-series-toolbar-top: 170px;
    --hkpt-series-gold: #DFA12E;
    --hkpt-series-gold-dark: #976F2F;
    --hkpt-series-page: #0c0c0f;
    --hkpt-series-panel: #18181b;
    --hkpt-series-panel-hover: #242427;
}

.hkpt-series-reference {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
    background: var(--hkpt-series-page);
    color: #fafafa;
    padding-bottom: clamp(64px, 8vw, 120px);
}

.hkpt-series-scroll-title {
    position: fixed;
    z-index: 15;
    top: var(--hkpt-series-header-offset);
    right: 0;
    left: 0;
    height: var(--hkpt-series-title-height);
    display: flex;
    align-items: center;
    background: var(--hkpt-series-page);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.hkpt-series-scroll-title > div {
    width: min(var(--hkpt-series-container), calc(100% - 32px));
    margin: 0 auto;
}

.hkpt-series-scroll-title span {
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.hkpt-series-scrolled .hkpt-series-scroll-title {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hkpt-series-reference-hero {
    width: min(var(--hkpt-series-container), calc(100% - 32px));
    margin: 0 auto;
    padding-top: 24px;
}

.hkpt-series-reference-art {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 5.4;
    border-radius: 10px;
    background: #18181b;
}

.hkpt-series-reference-art img,
.hkpt-series-art-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hkpt-series-art-placeholder {
    display: grid;
    place-items: center;
    font-family: Oswald, sans-serif;
    font-size: clamp(40px, 8vw, 100px);
    color: rgba(255,255,255,.12);
}

.hkpt-series-reference-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--hkpt-series-page) 1%, rgba(12,12,15,.82) 14%, rgba(12,12,15,0) 55%);
    pointer-events: none;
}

.hkpt-series-reference-copy {
    position: relative;
    z-index: 2;
    margin-top: -48px;
    padding: 0 16px 18px;
}

.hkpt-series-reference-copy h1 {
    margin: 0;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 400;
    line-height: 1.18;
    color: #fafafa;
}

.hkpt-series-reference-dates {
    margin: 2px 0 0;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--hkpt-series-gold);
}

.hkpt-series-reference-venue {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    font-family: Inter, sans-serif;
}

.hkpt-series-reference-venue > span {
    font-size: 14px;
    line-height: 20px;
    color: #8e8e96;
}

.hkpt-series-reference-venue a,
.hkpt-series-reference-venue strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #fafafa;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}

.hkpt-series-tabs-wrap {
    position: sticky;
    z-index: 12;
    top: calc(var(--hkpt-series-header-offset) + var(--hkpt-series-title-height));
    width: min(var(--hkpt-series-container), calc(100% - 32px));
    margin: 0 auto;
    background: var(--hkpt-series-page);
    border-bottom: 1px solid #27272a;
}

.hkpt-series-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.hkpt-series-tabs::-webkit-scrollbar { display: none; }

.hkpt-series-tabs a {
    min-width: 84px;
    padding: 8px 16px;
    border-bottom: 1px solid transparent;
    color: #e4e4e7;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
}

.hkpt-series-tabs a.is-active {
    border-bottom-color: var(--hkpt-series-gold);
    color: var(--hkpt-series-gold);
}

.hkpt-series-events,
.hkpt-series-news-tab {
    width: min(var(--hkpt-series-container), calc(100% - 32px));
    margin: 0 auto;
}

.hkpt-events-toolbar {
    position: sticky;
    z-index: 9;
    top: var(--hkpt-series-toolbar-top);
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    background: var(--hkpt-series-page);
}

.hkpt-events-search-toggle,
.hkpt-events-jump,
.hkpt-events-filter-toggle,
.hkpt-events-currency {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-family: Inter, sans-serif;
    cursor: pointer;
}

.hkpt-events-search-toggle {
    width: 34px;
    height: 34px;
    background: #18181b;
    border: 1px solid #18181b;
    font-size: 18px;
}

.hkpt-events-current-period {
    flex: 1;
    min-width: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #fafafa;
}

.hkpt-events-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hkpt-events-jump,
.hkpt-events-filter-toggle,
.hkpt-events-currency {
    background: var(--hkpt-series-gold-dark);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.hkpt-events-jump:hover,
.hkpt-events-filter-toggle:hover { background: var(--hkpt-series-gold); }
.hkpt-events-currency { cursor: default; }

.hkpt-events-search,
.hkpt-events-filters {
    position: absolute;
    z-index: 12;
    top: calc(100% - 6px);
    right: 0;
    left: 0;
    padding: 14px;
    border: 1px solid #303036;
    border-radius: 10px;
    background: #18181b;
    box-shadow: 0 18px 50px rgba(0,0,0,.42);
}

.hkpt-events-search input,
.hkpt-events-filters input,
.hkpt-events-filters select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 9px 11px;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    background: #0c0c0f;
    color: #fafafa;
    font: 400 14px/20px Inter, sans-serif;
}

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

.hkpt-events-filters[hidden],
.hkpt-events-search[hidden] { display: none !important; }

.hkpt-events-filters label {
    display: grid;
    gap: 6px;
    color: #d4d4d8;
    font: 500 12px/16px Inter, sans-serif;
}

.hkpt-events-filters .hkpt-event-featured-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: end;
    min-height: 42px;
}

.hkpt-event-featured-filter input { width: 18px; height: 18px; }

.hkpt-events-reset {
    align-self: end;
    height: 42px;
    border: 1px solid #52525b;
    border-radius: 8px;
    background: transparent;
    color: #fafafa;
    font: 500 14px/20px Inter, sans-serif;
    cursor: pointer;
}

.hkpt-events-days { padding-top: 2px; }

.hkpt-series-day {
    position: relative;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 72px;
    scroll-margin-top: 176px;
}

.hkpt-series-day[hidden] { display: none; }

.hkpt-series-day-label {
    position: relative;
}

.hkpt-series-day-label > span {
    position: sticky;
    top: calc(var(--hkpt-series-toolbar-top) + 10px);
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 9px;
    border-radius: 8px;
    background: #18181b;
    color: #fafafa;
    font-family: Inter, sans-serif;
}

.hkpt-series-day-label strong,
.hkpt-series-day-label small {
    font-size: 14px;
    line-height: 20px;
}

.hkpt-series-day-label strong { font-weight: 700; }
.hkpt-series-day-label small { font-weight: 400; }

.hkpt-series-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.hkpt-reference-event-card {
    position: relative;
    min-width: 0;
    min-height: 203px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    overflow: hidden;
    padding: 16px;
    border: 0;
    border-radius: 8px;
    background: #18181b;
    color: #fafafa;
    font-family: Inter, sans-serif;
    text-decoration: none;
    transition: background-color .16s ease, transform .16s ease, border-color .16s ease;
    isolation: isolate;
}

.hkpt-reference-event-card:hover {
    background: rgba(39,39,42,.8);
    transform: translateY(-1px);
}

.hkpt-reference-event-card.is-highlighted { border: 2px solid rgba(144,159,124,.7); padding: 14px; }
.hkpt-reference-event-card.is-gold { border-color: rgba(206,164,91,.82); }
.hkpt-reference-event-card.is-purple { border-color: rgba(123,97,255,.78); }
.hkpt-reference-event-card.is-green { border-color: rgba(0,204,177,.72); }

.hkpt-reference-event-inner {
    position: absolute;
    z-index: -1;
    inset: 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
}

.hkpt-reference-event-card.is-featured .hkpt-reference-event-inner {
    opacity: .94;
    background:
      radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent),
      radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent),
      radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent),
      radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316);
}

.hkpt-reference-event-card.is-purple .hkpt-reference-event-inner {
    opacity: .55;
    background: radial-gradient(circle at 20% 10%, #7b3cff, transparent 48%), linear-gradient(135deg, #121116, #2b1144);
}

.hkpt-reference-event-card.is-green .hkpt-reference-event-inner {
    opacity: .42;
    background: radial-gradient(circle at 0 100%, #00ccb1, transparent 55%), linear-gradient(135deg, #111316, #123a32);
}

.hkpt-reference-event-card.is-gold .hkpt-reference-event-inner {
    opacity: .38;
    background: radial-gradient(circle at 100% 0, #DFA12E, transparent 55%), linear-gradient(135deg, #141316, #3a2b13);
}

.hkpt-reference-event-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #f4f4f5;
    font-size: 14px;
    line-height: 20px;
}

.hkpt-reference-event-head time { font-weight: 600; }
.hkpt-reference-event-head span { color: #a1a1aa; font-size: 12px; }

.hkpt-reference-event-title h3 {
    margin: 0;
    color: #fafafa;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-wrap: pretty;
}

.hkpt-reference-event-title small {
    display: block;
    margin-top: 5px;
    color: #a1a1aa;
    font-size: 12px;
    line-height: 16px;
}

.hkpt-reference-event-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.hkpt-reference-event-facts div { min-width: 0; }
.hkpt-reference-event-facts dt { color: #71717a; font-size: 10px; font-weight: 500; line-height: 14px; }
.hkpt-reference-event-facts dd { margin: 1px 0 0; color: #f4f4f5; font-size: 11px; font-weight: 500; line-height: 16px; overflow-wrap: anywhere; }

.hkpt-events-empty,
.hkpt-events-none,
.hkpt-related-news-empty {
    padding: 36px 0;
    color: #a1a1aa;
    font: 400 16px/24px Inter, sans-serif;
}

.hkpt-series-key-info {
    width: min(768px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 34px;
}

.hkpt-series-key-info-panel {
    padding: 32px 40px;
    border-radius: 12px;
    background: #18181b;
    color: #dedee3;
    font: 400 16px/28px Inter, sans-serif;
}

.hkpt-series-key-info-panel h1,
.hkpt-series-key-info-panel h2,
.hkpt-series-key-info-panel h3,
.hkpt-series-key-info-panel h4 {
    color: #fafafa;
    font-family: Inter, sans-serif;
    line-height: 1.25;
}

.hkpt-series-key-info-panel h2 { font-size: 24px; }
.hkpt-series-key-info-panel h3 { font-size: 20px; }
.hkpt-series-key-info-panel a { color: #fff; font-weight: 500; text-underline-offset: 3px; }
.hkpt-series-key-info-panel img { max-width: 100%; height: auto; border-radius: 10px; }
.hkpt-series-key-info-panel hr { border: 0; border-top: 1px solid #3f3f46; margin: 32px 0; }

.hkpt-series-news-tab { padding-top: 38px; }

.hkpt-series-related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hkpt-series-news-card { aspect-ratio: 3 / 2; }

.hkpt-event-related-news { margin-top: 64px; }
.hkpt-event-related-news > h2 { margin-bottom: 22px; }

@media (max-width: 1100px) {
    :root { --hkpt-series-container: 896px; }
    .hkpt-series-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hkpt-events-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hkpt-series-related-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    :root {
        --hkpt-series-header-offset: 0px;
        --hkpt-series-title-height: 48px;
        --hkpt-series-toolbar-top: 90px;
    }

    .hkpt-series-reference { padding-bottom: 96px; }
    .hkpt-series-scroll-title { top: 0; }
    .hkpt-series-reference-hero { width: 100%; padding-top: 0; }
    .hkpt-series-reference-art { aspect-ratio: 16 / 8; border-radius: 0; }
    .hkpt-series-reference-copy { margin-top: -38px; padding: 0 16px 18px; }
    .hkpt-series-reference-copy h1 { font-size: 24px; line-height: 32px; }
    .hkpt-series-reference-dates { font-size: 16px; line-height: 24px; }
    .hkpt-series-tabs-wrap { top: 48px; width: 100%; }
    .hkpt-series-tabs a { flex: 1 0 auto; min-width: 100px; padding: 8px 14px; font-size: 14px; line-height: 24px; }
    .hkpt-series-events,
    .hkpt-series-news-tab { width: calc(100% - 32px); }

    .hkpt-events-toolbar { top: 90px; min-height: 64px; gap: 8px; }
    .hkpt-events-current-period { font-size: 12px; }
    .hkpt-events-filter-toggle span:last-child { display: none; }
    .hkpt-events-filter-toggle { width: 32px; }
    .hkpt-events-filters { grid-template-columns: 1fr; max-height: calc(100vh - 170px); overflow-y: auto; }

    .hkpt-series-day { grid-template-columns: 1fr; gap: 8px; padding-bottom: 48px; scroll-margin-top: 154px; }
    .hkpt-series-day-label { height: 42px; }
    .hkpt-series-day-label > span {
        top: 98px;
        grid-template-columns: 1fr;
        gap: 0;
        min-width: 111px;
        padding: 5px 9px;
    }
    .hkpt-series-day-label small { font-size: 10px; line-height: 12px; }
    .hkpt-series-event-grid { grid-template-columns: 1fr; gap: 12px; }
    .hkpt-reference-event-card { min-height: 196px; }
    .hkpt-series-key-info { width: calc(100% - 32px); padding-top: 28px; }
    .hkpt-series-key-info-panel { padding: 0; background: transparent; border-radius: 0; font-size: 15px; line-height: 26px; }
    .hkpt-series-related-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .hkpt-events-current-period { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hkpt-events-toolbar-actions { gap: 6px; }
    .hkpt-events-currency { padding-inline: 6px; }
    .hkpt-reference-event-facts { gap: 10px; }
}


/* ========================================================================
   v1.5.1 — Reference sticky schedule controller and no-reload Series tabs
   ======================================================================== */
.hkpt-series-tab-panel[hidden],
.hkpt-events-popover[hidden],
.hkpt-events-search-mode[hidden] {
    display: none !important;
}

.hkpt-series-tab-panel.is-entering {
    animation: hkpt-tab-enter .24s ease both;
}

@keyframes hkpt-tab-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hkpt-series-scroll-title span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hkpt-series-scroll-title svg,
.hkpt-series-reference-venue svg,
.hkpt-events-toolbar svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hkpt-series-scroll-title svg { width: 17px; height: 17px; }
.hkpt-series-reference-venue svg { width: 15px; height: 15px; }

.hkpt-events-toolbar {
    position: sticky;
    z-index: 11;
    top: var(--hkpt-series-toolbar-top);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0 12px;
    background: rgba(12, 12, 15, .98);
    border-bottom: 0;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    isolation: isolate;
}

.hkpt-events-toolbar::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -40px;
    background: rgba(12, 12, 15, .98);
    pointer-events: none;
}

.hkpt-events-date-control,
.hkpt-events-action-wrap {
    position: relative;
}

.hkpt-events-date-toggle,
.hkpt-events-search-toggle,
.hkpt-events-filter-toggle,
.hkpt-events-currency-toggle,
.hkpt-events-download {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    color: #fafafa;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.hkpt-events-date-toggle {
    min-width: 144px;
    justify-content: flex-start;
    padding: 0 10px 0 0;
    border: 1px solid #27272a;
    background: #0c0c0f;
}

.hkpt-events-date-toggle > svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 8px;
    background: #18181b;
}

.hkpt-events-date-toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fafafa;
    font-size: 13px;
    line-height: 20px;
}

.hkpt-events-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.hkpt-events-search-toggle,
.hkpt-events-filter-toggle,
.hkpt-events-currency-toggle,
.hkpt-events-download {
    height: 34px;
    padding: 8px 10px;
    background: #976F2F;
}

.hkpt-events-search-toggle,
.hkpt-events-download {
    width: 34px;
    padding: 8px;
}

.hkpt-events-search-toggle:hover,
.hkpt-events-filter-toggle:hover,
.hkpt-events-currency-toggle:hover,
.hkpt-events-download:hover,
.hkpt-events-search-toggle:focus-visible,
.hkpt-events-filter-toggle:focus-visible,
.hkpt-events-currency-toggle:focus-visible,
.hkpt-events-download:focus-visible {
    background: #DFA12E;
    color: #0c0c0f;
}

.hkpt-events-search-mode {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.hkpt-events-search-mode > svg {
    position: absolute;
    z-index: 2;
    margin-left: 12px;
    color: #d4d4d8;
}

.hkpt-events-search-mode input {
    width: min(420px, 100%);
    min-width: 160px;
    height: 42px;
    padding: 9px 14px 9px 40px;
    border: 1px solid #2f2f34;
    border-radius: 8px;
    outline: 0;
    background: #27272a;
    color: #fafafa;
    font: 400 16px/24px Inter, sans-serif;
}

.hkpt-events-search-mode input:focus {
    border-color: #52525b;
    box-shadow: 0 0 0 2px rgba(206,164,91,.14);
}

.hkpt-events-search-mode button {
    border: 0;
    background: transparent;
    color: #F0C76D;
    font: 500 12px/16px Inter, sans-serif;
    cursor: pointer;
}

.hkpt-events-toolbar.is-searching .hkpt-events-date-control,
.hkpt-events-toolbar.is-searching .hkpt-events-search-toggle {
    display: none;
}

.hkpt-events-popover {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    overflow: hidden;
    border: 1px solid #48484f;
    border-radius: 12px;
    background: rgba(24,24,27,.98);
    box-shadow: 0 18px 50px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.03);
    backdrop-filter: blur(14px);
    color: #f4f4f5;
}

.hkpt-events-date-menu {
    left: 0;
    width: 190px;
    max-height: 380px;
    padding: 7px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #71717a transparent;
}

.hkpt-events-date-menu button {
    width: 100%;
    display: grid;
    gap: 1px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #e4e4e7;
    text-align: left;
    cursor: pointer;
}

.hkpt-events-date-menu button:hover,
.hkpt-events-date-menu button.is-current {
    background: rgba(206,164,91,.13);
    color: #fff;
}

.hkpt-events-date-menu button:disabled {
    opacity: .32;
    cursor: not-allowed;
}

.hkpt-events-date-menu strong {
    font: 500 14px/20px Inter, sans-serif;
}

.hkpt-events-date-menu small {
    color: #a1a1aa;
    font: 400 12px/16px Inter, sans-serif;
}

.hkpt-events-filter-popover,
.hkpt-events-currency-popover {
    right: 0;
    width: 312px;
}

.hkpt-events-popover > header {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid #3f3f46;
}

.hkpt-events-popover > header strong {
    font: 500 14px/20px Inter, sans-serif;
}

.hkpt-events-popover > header button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 5px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
}

.hkpt-events-popover > header button:hover { background: #27272a; color: #fff; }

.hkpt-filter-section {
    display: grid;
    gap: 8px;
    padding: 12px 16px 0;
}

.hkpt-filter-section > span {
    color: #e4e4e7;
    font: 500 12px/16px Inter, sans-serif;
}

.hkpt-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hkpt-filter-chips button,
.hkpt-currency-grid button {
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid #52525b;
    border-radius: 7px;
    background: transparent;
    color: #f4f4f5;
    font: 400 11px/16px Inter, sans-serif;
    cursor: pointer;
}

.hkpt-filter-chips button:hover,
.hkpt-filter-chips button.is-selected,
.hkpt-currency-grid button:hover,
.hkpt-currency-grid button.is-active {
    border-color: #DFA12E;
    background: rgba(206,164,91,.14);
    color: #F0C76D;
}

.hkpt-buyin-filter { padding-bottom: 12px; }

.hkpt-buyin-readout {
    display: flex;
    justify-content: space-between;
    color: #d4d4d8;
}

.hkpt-buyin-readout strong {
    font: 400 10px/14px Inter, sans-serif;
}

.hkpt-dual-range {
    position: relative;
    height: 18px;
}

.hkpt-range-track {
    position: absolute;
    top: 8px;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 99px;
    background: #52525b;
}

.hkpt-range-track span {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background: #DFA12E;
}

.hkpt-dual-range input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 18px;
    margin: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.hkpt-dual-range input[type="range"]::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    appearance: none;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #DFA12E;
    pointer-events: auto;
    cursor: grab;
}

.hkpt-dual-range input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #DFA12E;
    pointer-events: auto;
    cursor: grab;
}

.hkpt-buyin-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hkpt-buyin-inputs label { display: grid; gap: 4px; }
.hkpt-buyin-inputs small { color: #a1a1aa; font: 400 10px/14px Inter, sans-serif; }
.hkpt-buyin-inputs input {
    width: 100%;
    height: 34px;
    padding: 7px 9px;
    border: 1px solid #52525b;
    border-radius: 6px;
    background: #18181b;
    color: #fff;
    font: 400 11px/16px Inter, sans-serif;
}

.hkpt-events-popover > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    padding: 12px 16px;
    border-top: 1px solid #3f3f46;
}

.hkpt-events-popover > footer button {
    min-height: 32px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #a1a1aa;
    font: 500 11px/16px Inter, sans-serif;
    cursor: pointer;
}

.hkpt-events-filter-popover > footer button:last-child {
    min-width: 78px;
    background: #DFA12E;
    color: #18181b;
}

.hkpt-events-popover > footer button:hover { color: #fff; }
.hkpt-events-filter-popover > footer button:last-child:hover { background: #F0C76D; color: #0c0c0f; }

.hkpt-currency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px 16px 10px;
}

.hkpt-events-currency-popover > p {
    margin: 0;
    padding: 0 16px 12px;
    color: #a1a1aa;
    font: 400 10px/15px Inter, sans-serif;
    text-align: center;
}

.hkpt-events-currency-popover > footer button:last-child { color: #e4e4e7; }

.hkpt-series-day {
    scroll-margin-top: 190px;
}

.hkpt-events-empty {
    padding-top: 24px;
}

@media (max-width: 767px) {
    .hkpt-events-toolbar {
        top: var(--hkpt-series-toolbar-top);
        gap: 6px;
        padding: 8px 0 10px;
    }

    .hkpt-events-toolbar::before { inset: 0 -16px; }

    .hkpt-events-date-toggle {
        min-width: 0;
        width: auto;
        max-width: 150px;
    }

    .hkpt-events-date-toggle span {
        max-width: 98px;
        font-size: 12px;
    }

    .hkpt-events-toolbar-actions { gap: 6px; }

    .hkpt-events-filter-toggle span { display: none; }
    .hkpt-events-filter-toggle { width: 34px; padding: 8px; }
    .hkpt-events-currency-toggle { padding-inline: 8px; }

    .hkpt-events-search-mode input {
        width: 100%;
        min-width: 0;
        height: 40px;
        font-size: 14px;
    }

    .hkpt-events-search-mode { gap: 6px; }
    .hkpt-events-search-mode button { font-size: 11px; }

    .hkpt-events-date-menu {
        width: 192px;
        max-height: min(390px, calc(100vh - 180px));
    }

    .hkpt-events-filter-popover,
    .hkpt-events-currency-popover {
        position: fixed;
        z-index: 60;
        top: 138px;
        right: 16px;
        left: auto;
        width: min(312px, calc(100vw - 32px));
        max-height: calc(100vh - 160px);
        overflow-y: auto;
    }

    .hkpt-series-day { scroll-margin-top: 164px; }
}

@media (max-width: 390px) {
    .hkpt-events-date-toggle { max-width: 132px; }
    .hkpt-events-date-toggle span { max-width: 81px; }
    .hkpt-events-currency-toggle span { max-width: 30px; overflow: hidden; }
}


/* ========================================================================
   v1.5.2 — Unified sticky Series header stack and visible calendar control
   ======================================================================== */
.hkpt-series-reference {
    --hkpt-series-header-offset: var(--site-header-height, 78px);
    --hkpt-series-title-height: 52px;
    --hkpt-series-tabs-height: 43px;
    --hkpt-series-toolbar-top: calc(
        var(--hkpt-series-header-offset) +
        var(--hkpt-series-title-height) +
        var(--hkpt-series-tabs-height)
    );
}

/* Keep the title, tabs and Events controls as one continuous sticky stack. */
.hkpt-series-scroll-title {
    z-index: 997;
    top: var(--hkpt-series-header-offset);
    height: var(--hkpt-series-title-height);
    border-bottom: 0;
    background: rgba(12, 12, 15, .99);
    box-shadow: 0 1px 0 #27272a;
}

.hkpt-series-scroll-title::before,
.hkpt-series-tabs-wrap::before,
.hkpt-events-toolbar::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: rgba(12, 12, 15, .99);
    pointer-events: none;
}

.hkpt-series-scroll-title > div {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.hkpt-series-scroll-title span {
    font-size: 18px;
    line-height: 28px;
}

.hkpt-series-tabs-wrap {
    z-index: 996;
    top: calc(var(--hkpt-series-header-offset) + var(--hkpt-series-title-height));
    min-height: var(--hkpt-series-tabs-height);
    background: rgba(12, 12, 15, .99);
    box-shadow: 0 1px 0 #27272a;
    isolation: isolate;
}

.hkpt-series-tabs {
    min-height: var(--hkpt-series-tabs-height);
    align-items: stretch;
}

.hkpt-series-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--hkpt-series-tabs-height);
}

.hkpt-events-toolbar {
    z-index: 995;
    top: var(--hkpt-series-toolbar-top);
    min-height: 62px;
    padding-top: 10px;
    padding-bottom: 11px;
    background: rgba(12, 12, 15, .99);
    box-shadow: 0 1px 0 #27272a;
    isolation: isolate;
}

/* Replace the old limited-width toolbar backdrop with the full viewport strip. */
.hkpt-events-toolbar::before {
    inset: auto;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
}

/* Make the calendar button and glyph clearly visible at every breakpoint. */
.hkpt-events-date-toggle {
    min-height: 40px;
    min-width: 154px;
    padding-right: 12px;
    border-color: #2f2f34;
}

.hkpt-events-date-toggle > svg {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 8px;
    border-radius: 9px;
    background: #202024;
    color: #f4f4f5;
    stroke-width: 2.2;
}

.hkpt-events-date-toggle > svg rect,
.hkpt-events-date-toggle > svg path {
    vector-effect: non-scaling-stroke;
}

.hkpt-events-date-toggle:hover > svg,
.hkpt-events-date-toggle:focus-visible > svg {
    background: #2b2b30;
    color: #fff;
}

.hkpt-series-day {
    scroll-margin-top: calc(var(--hkpt-series-toolbar-top) + 74px);
}

.hkpt-series-day-label > span {
    top: calc(var(--hkpt-series-toolbar-top) + 70px);
}

@media (max-width: 767px) {
    .hkpt-series-reference {
        --hkpt-series-header-offset: 0px;
        --hkpt-series-title-height: 48px;
        --hkpt-series-tabs-height: 43px;
    }

    .hkpt-series-scroll-title {
        top: 0;
    }

    .hkpt-series-tabs-wrap {
        top: var(--hkpt-series-title-height);
    }

    .hkpt-events-toolbar {
        top: var(--hkpt-series-toolbar-top);
        min-height: 58px;
        padding-top: 8px;
        padding-bottom: 9px;
    }

    .hkpt-events-date-toggle {
        min-height: 38px;
        max-width: 154px;
        min-width: 0;
    }

    .hkpt-events-date-toggle > svg {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        padding: 7px;
        stroke-width: 2.25;
    }

    .hkpt-series-day {
        scroll-margin-top: calc(var(--hkpt-series-toolbar-top) + 66px);
    }

    .hkpt-series-day-label > span {
        top: calc(var(--hkpt-series-toolbar-top) + 64px);
    }

    .hkpt-events-filter-popover,
    .hkpt-events-currency-popover {
        top: calc(var(--hkpt-series-toolbar-top) + 60px);
    }
}

@media (max-width: 390px) {
    .hkpt-events-date-toggle {
        max-width: 140px;
    }

    .hkpt-events-date-toggle span {
        max-width: 84px;
    }
}


/* ========================================================================
   v1.5.3 — Stable sticky stack (fixes ResizeObserver height feedback loop)
   ======================================================================== */

/* These dimensions are deliberately deterministic. Do not calculate them from
   the elements themselves in JavaScript: that creates a resize feedback loop
   when fonts or borders resolve to fractional pixels. */
.hkpt-series-reference {
    --hkpt-series-title-height: 52px;
    --hkpt-series-tabs-height: 43px;
    --hkpt-series-toolbar-height: 64px;
    --hkpt-series-toolbar-top: calc(
        var(--hkpt-series-header-offset) +
        var(--hkpt-series-title-height) +
        var(--hkpt-series-tabs-height)
    );
}

.hkpt-series-scroll-title,
.hkpt-series-tabs-wrap,
.hkpt-events-toolbar {
    box-sizing: border-box;
    max-width: none;
}

.hkpt-series-scroll-title {
    height: var(--hkpt-series-title-height);
    min-height: var(--hkpt-series-title-height);
    max-height: var(--hkpt-series-title-height);
    overflow: visible;
}

.hkpt-series-scroll-title > div {
    height: 100%;
    min-height: 0;
}

.hkpt-series-tabs-wrap {
    height: var(--hkpt-series-tabs-height);
    min-height: var(--hkpt-series-tabs-height);
    max-height: var(--hkpt-series-tabs-height);
    overflow: visible;
}

.hkpt-series-tabs {
    height: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.hkpt-series-tabs a {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.hkpt-events-toolbar {
    height: var(--hkpt-series-toolbar-height);
    min-height: var(--hkpt-series-toolbar-height);
    max-height: var(--hkpt-series-toolbar-height);
    flex-wrap: nowrap;
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hkpt-events-toolbar > *,
.hkpt-events-toolbar-actions,
.hkpt-events-date-control,
.hkpt-events-action-wrap {
    min-width: 0;
}

.hkpt-events-toolbar-actions {
    flex: 0 0 auto;
}

.hkpt-events-search-mode {
    min-height: 42px;
    max-height: 42px;
}

/* Popovers must be allowed outside the fixed-height toolbar. */
.hkpt-events-date-control,
.hkpt-events-action-wrap {
    overflow: visible;
}

/* Keep the calendar glyph crisp and visible without affecting row height. */
.hkpt-events-date-toggle {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
}

.hkpt-events-date-toggle > svg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
}

.hkpt-series-day {
    scroll-margin-top: calc(var(--hkpt-series-toolbar-top) + var(--hkpt-series-toolbar-height) + 10px);
}

.hkpt-series-day-label > span {
    top: calc(var(--hkpt-series-toolbar-top) + var(--hkpt-series-toolbar-height) + 6px);
}

@media (max-width: 767px) {
    .hkpt-series-reference {
        --hkpt-series-title-height: 48px;
        --hkpt-series-tabs-height: 43px;
        --hkpt-series-toolbar-height: 58px;
    }

    .hkpt-events-toolbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .hkpt-events-date-toggle {
        height: 38px;
        min-height: 38px;
        max-height: 38px;
    }

    .hkpt-events-date-toggle > svg {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        max-width: 38px;
        max-height: 38px;
    }

    .hkpt-series-day {
        scroll-margin-top: calc(var(--hkpt-series-toolbar-top) + var(--hkpt-series-toolbar-height) + 8px);
    }

    .hkpt-series-day-label > span {
        top: calc(var(--hkpt-series-toolbar-top) + var(--hkpt-series-toolbar-height) + 6px);
    }

    .hkpt-events-filter-popover,
    .hkpt-events-currency-popover {
        top: calc(var(--hkpt-series-toolbar-top) + var(--hkpt-series-toolbar-height) + 2px);
    }
}


/* ========================================================================
   v1.5.3.1 — Sticky containing-block hardening
   ======================================================================== */

/* A clipped Series wrapper and a transformed active Events panel can each
   become a containing/scroll context that prevents position:sticky from
   attaching to the viewport in Chromium. The document still clips horizontal
   overflow at html/body, so the Series wrapper itself can safely stay visible. */
.hkpt-series-reference {
    overflow: visible;
}

/* Keep the approved transition without placing the sticky toolbar inside a
   transformed ancestor. Events fades; the non-sticky Info/News panels may
   retain the small upward entrance. */
.hkpt-series-tab-panel.is-entering {
    animation: hkpt-tab-fade .20s ease both;
    transform: none;
}

.hkpt-series-key-info.is-entering,
.hkpt-series-news-tab.is-entering {
    animation: hkpt-tab-enter .24s ease both;
}

@keyframes hkpt-tab-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================================================
   v1.5.4 — Single-container sticky stack (video-confirmed fix)
   ======================================================================== */

/* The compact title, tabs and Events controls now share one sticky containing
   block. Children are deliberately static: there are no cumulative `top`
   calculations and no nested sticky/fixed rows. */
.hkpt-series-reference {
    --hkpt-series-title-height: 52px;
    --hkpt-series-tabs-height: 43px;
    --hkpt-series-toolbar-height: 64px;
    --hkpt-series-active-stack-height: calc(
        var(--hkpt-series-title-height) +
        var(--hkpt-series-tabs-height) +
        var(--hkpt-series-toolbar-height)
    );
    overflow: visible;
}

.hkpt-series-sticky-sentinel {
    width: 1px;
    height: 1px;
    margin: -1px 0 0;
    pointer-events: none;
}

.hkpt-series-sticky-stack {
    position: sticky;
    z-index: 995;
    top: var(--hkpt-series-header-offset, 0px);
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: rgba(12, 12, 15, .995);
    isolation: isolate;
}

.hkpt-series-sticky-stack::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    background: rgba(12, 12, 15, .995);
    box-shadow: 0 1px 0 #27272a;
    pointer-events: none;
}

/* When stuck, the compact title is overlaid above the tabs without changing
   the normal-flow height. The remaining rows move visually by one fixed title
   height. No measured value is fed back into layout. */
.hkpt-series-sticky-stack.is-stuck::before {
    height: calc(100% + var(--hkpt-series-title-height));
}

.hkpt-series-sticky-stack .hkpt-series-scroll-title,
.hkpt-series-sticky-stack .hkpt-series-tabs-wrap,
.hkpt-series-sticky-stack .hkpt-events-toolbar {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.hkpt-series-sticky-stack .hkpt-series-scroll-title::before,
.hkpt-series-sticky-stack .hkpt-series-tabs-wrap::before,
.hkpt-series-sticky-stack .hkpt-events-toolbar::before {
    content: none !important;
    display: none !important;
}

.hkpt-series-sticky-stack .hkpt-series-scroll-title {
    position: absolute !important;
    z-index: 3;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    display: flex;
    width: 100%;
    height: var(--hkpt-series-title-height);
    min-height: var(--hkpt-series-title-height);
    max-height: var(--hkpt-series-title-height);
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity .14s ease, visibility .14s ease;
    pointer-events: none;
}

.hkpt-series-sticky-stack.is-stuck .hkpt-series-scroll-title {
    opacity: 1;
    visibility: visible;
}

.hkpt-series-sticky-stack .hkpt-series-scroll-title > div,
.hkpt-series-sticky-stack .hkpt-series-tabs-wrap,
.hkpt-series-sticky-stack .hkpt-events-toolbar {
    width: min(var(--hkpt-series-container), calc(100% - 32px));
}

.hkpt-series-sticky-stack .hkpt-series-scroll-title > div {
    height: 100%;
    display: flex;
    align-items: center;
}

.hkpt-series-sticky-stack .hkpt-series-tabs-wrap {
    z-index: 2;
    height: var(--hkpt-series-tabs-height);
    min-height: var(--hkpt-series-tabs-height);
    max-height: var(--hkpt-series-tabs-height);
    border-bottom: 1px solid #27272a;
}

.hkpt-series-sticky-stack .hkpt-events-toolbar {
    z-index: 2;
    height: var(--hkpt-series-toolbar-height);
    min-height: var(--hkpt-series-toolbar-height);
    max-height: var(--hkpt-series-toolbar-height);
    padding: 10px 0;
    flex-wrap: nowrap;
}

.hkpt-series-sticky-stack.is-stuck .hkpt-series-tabs-wrap,
.hkpt-series-sticky-stack.is-stuck .hkpt-events-toolbar {
    top: var(--hkpt-series-title-height) !important;
}

/* The toolbar belongs to Events only. Switching tabs changes one explicit
   display state and cannot leave an empty or growing toolbar row behind. */
.hkpt-series-reference:not([data-active-tab="events"]) .hkpt-events-toolbar {
    display: none !important;
}

.hkpt-series-reference[data-active-tab="events"] .hkpt-events-toolbar {
    display: flex !important;
}

/* Prevent any flex child from inflating the row. */
.hkpt-series-sticky-stack .hkpt-events-toolbar > *,
.hkpt-series-sticky-stack .hkpt-events-toolbar-actions,
.hkpt-series-sticky-stack .hkpt-events-date-control,
.hkpt-series-sticky-stack .hkpt-events-action-wrap {
    min-height: 0;
    max-height: none;
}

.hkpt-series-sticky-stack .hkpt-events-toolbar-actions {
    flex: 0 0 auto;
}

/* The visible overlay occupies title + tabs + toolbar when Events is active. */
.hkpt-series-day {
    scroll-margin-top: calc(var(--hkpt-series-header-offset) + var(--hkpt-series-active-stack-height) + 10px);
}

.hkpt-series-day-label > span {
    top: calc(var(--hkpt-series-header-offset) + var(--hkpt-series-active-stack-height) + 6px);
}

/* Keep popovers above the single sticky stack and do not clip them. */
.hkpt-series-sticky-stack .hkpt-events-popover {
    z-index: 1002;
}

@media (max-width: 767px) {
    .hkpt-series-reference {
        --hkpt-series-title-height: 48px;
        --hkpt-series-tabs-height: 43px;
        --hkpt-series-toolbar-height: 58px;
    }

    .hkpt-series-sticky-stack .hkpt-series-scroll-title > div,
    .hkpt-series-sticky-stack .hkpt-series-tabs-wrap,
    .hkpt-series-sticky-stack .hkpt-events-toolbar {
        width: calc(100% - 24px);
    }

    .hkpt-series-sticky-stack .hkpt-events-toolbar {
        padding: 8px 0;
    }

    .hkpt-series-day {
        scroll-margin-top: calc(var(--hkpt-series-header-offset) + var(--hkpt-series-active-stack-height) + 8px);
    }

    .hkpt-series-day-label > span {
        top: calc(var(--hkpt-series-header-offset) + var(--hkpt-series-active-stack-height) + 6px);
    }

    .hkpt-events-filter-popover,
    .hkpt-events-currency-popover {
        top: calc(var(--hkpt-series-header-offset) + var(--hkpt-series-active-stack-height) + 2px);
    }
}


/* ========================================================================
   v1.5.5 — Remove in-content date badges and toolbar bottom divider
   ======================================================================== */

/* The toolbar date selector already shows and navigates every event date, so
   the repeated sticky date boxes beside each event group are intentionally
   hidden. Collapse the former two-column day layout so cards use the complete
   available content width. */
.hkpt-series-reference .hkpt-series-day {
    display: block;
    width: 100%;
    grid-template-columns: none;
    gap: 0;
}

.hkpt-series-reference .hkpt-series-day-label {
    display: none !important;
}

.hkpt-series-reference .hkpt-series-event-grid {
    width: 100%;
    max-width: 100%;
}

/* Remove the full-width line beneath the Events controls without affecting
   the active-tab underline or the internal borders inside filter popovers. */
.hkpt-series-sticky-stack::before,
.hkpt-series-sticky-stack.is-stuck::before {
    box-shadow: none !important;
}

.hkpt-series-sticky-stack .hkpt-events-toolbar {
    border-bottom: 0 !important;
    box-shadow: none !important;
}


/* ========================================================================
   v1.5.6 — Standalone direct-link Gallery page
   ======================================================================== */
.hkpt-standalone-gallery {
    max-width: 1180px;
    padding-top: clamp(34px, 5vw, 64px);
    padding-bottom: clamp(92px, 10vw, 144px);
}

.hkpt-standalone-gallery-header {
    margin: 0 0 28px;
}

.hkpt-standalone-gallery-header h1 {
    margin: 0;
    font-family: Oswald, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 30px;
    font-weight: 400;
    line-height: 36px;
    color: oklch(0.985 0 0);
}

.hkpt-standalone-gallery-content {
    min-width: 0;
    color: oklch(0.872 0.01 258.338);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 28px;
}

.hkpt-standalone-gallery-content > p:first-child {
    max-width: 760px;
    margin-top: 0;
    margin-bottom: 28px;
}

.hkpt-standalone-gallery-content .wp-block-gallery,
.hkpt-standalone-gallery-content .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px !important;
    width: 100%;
    margin: 0;
}

.hkpt-standalone-gallery-content .wp-block-gallery > .wp-block-image,
.hkpt-standalone-gallery-content .gallery-item {
    position: relative;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 10px;
    background: #18181b;
    aspect-ratio: 3 / 2;
}

.hkpt-standalone-gallery-content .wp-block-gallery img,
.hkpt-standalone-gallery-content .gallery img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
    cursor: zoom-in;
}

.hkpt-standalone-gallery-content [data-hkpt-gallery-item]:hover img,
.hkpt-standalone-gallery-content [data-hkpt-gallery-item]:focus-visible img,
.hkpt-standalone-gallery-content img[data-hkpt-gallery-item]:hover,
.hkpt-standalone-gallery-content img[data-hkpt-gallery-item]:focus-visible {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.hkpt-standalone-gallery-content figcaption,
.hkpt-standalone-gallery-content .gallery-caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 !important;
    padding: 36px 10px 9px !important;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.9));
    color: #fff !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px !important;
    line-height: 18px !important;
    text-align: left !important;
    pointer-events: none;
}

.hkpt-gallery-admin-empty {
    padding: 28px;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 10px;
    background: #18181b;
}

.hkpt-gallery-admin-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.hkpt-gallery-admin-empty p {
    margin: 0 0 14px;
}

.hkpt-gallery-admin-empty a {
    color: #F0C76D;
    font-weight: 600;
}

.hkpt-gallery-lightbox[hidden] {
    display: none !important;
}

.hkpt-gallery-lightbox {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(46px, 5vw, 72px) clamp(48px, 6vw, 96px);
    background: rgba(5,5,7,.95);
    backdrop-filter: blur(10px);
}

.hkpt-gallery-is-open,
.hkpt-gallery-is-open body {
    overflow: hidden !important;
}

.hkpt-gallery-lightbox-stage {
    display: grid;
    place-items: center;
    max-width: min(1200px, 100%);
    max-height: 100%;
    margin: 0;
}

.hkpt-gallery-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.hkpt-gallery-lightbox-stage figcaption {
    max-width: 760px;
    margin-top: 12px;
    color: oklch(0.871 0.006 286.286);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.hkpt-gallery-lightbox-close,
.hkpt-gallery-lightbox-nav {
    position: fixed;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: #18181b;
    color: #fff;
    cursor: pointer;
}

.hkpt-gallery-lightbox-close {
    top: 18px;
    right: 18px;
}

.hkpt-gallery-lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.hkpt-gallery-lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

.hkpt-gallery-lightbox-close svg,
.hkpt-gallery-lightbox-nav svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 900px) {
    .hkpt-standalone-gallery-content .wp-block-gallery,
    .hkpt-standalone-gallery-content .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hkpt-standalone-gallery {
        padding-top: 22px;
        padding-bottom: 96px;
    }

    .hkpt-standalone-gallery-header {
        margin-bottom: 20px;
    }

    .hkpt-standalone-gallery-content .wp-block-gallery,
    .hkpt-standalone-gallery-content .gallery {
        gap: 10px !important;
    }

    .hkpt-gallery-lightbox {
        padding: 58px 12px 72px;
    }

    .hkpt-gallery-lightbox-prev { left: 10px; }
    .hkpt-gallery-lightbox-next { right: 10px; }
    .hkpt-gallery-lightbox-close { top: 10px; right: 10px; }

    .hkpt-gallery-lightbox-stage img {
        max-height: calc(100vh - 150px);
    }
}

/* ========================================================================
   v1.6.0 — HKPT Core 2.0 account and operations integration
   ======================================================================== */
.hkpt-system-page-shell {
    max-width: 1180px;
    padding-top: clamp(28px,5vw,64px);
    padding-bottom: clamp(96px,10vw,150px);
}
.hkpt-system-page,
.hkpt-system-page .page-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}
.hkpt-system-page .page-content > :first-child { margin-top: 0; }
.hkpt-system-page .page-content > :last-child { margin-bottom: 0; }
.hkpt-public-profile-page { max-width: 1180px; }
@media (max-width: 767px) {
    .hkpt-system-page-shell {
        padding-top: 20px;
        padding-bottom: calc(94px + env(safe-area-inset-bottom));
    }
}


/* ==========================================================================
   Theme 1.7.0 — Event archive and single Event page integration
   ========================================================================== */

.hkpt-event-page-shell {
    width: 100%;
    max-width: 100%;
    overflow: clip;
    background: #0c0c0f;
}

.hkpt-event-archive-page {
    --site-shell: 1280px;
}

.hkpt-event-archive-header {
    max-width: 780px;
    margin-bottom: 30px;
}

.hkpt-event-archive-summary {
    margin: -8px 0 18px;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 650;
}

.hkpt-event-pagination {
    margin-top: 36px;
}

.hkpt-event-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hkpt-event-pagination .page-numbers a,
.hkpt-event-pagination .page-numbers span {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    background: #18181b;
    color: #f4f4f5;
    text-decoration: none;
}

.hkpt-event-pagination .page-numbers .current,
.hkpt-event-pagination .page-numbers a:hover {
    border-color: #DFA12E;
    background: rgba(206,164,91,.15);
    color: #F0C76D;
}

@media (max-width: 760px) {
    body.single-hkpt_event .mobile-bottom-nav {
        z-index: 1050;
    }

    .hkpt-event-archive-page {
        padding-top: 38px;
    }
}

/* ========================================================================
   v1.7.1 — Event-card contrast, edge-to-edge highlight and solo brand logo
   ======================================================================== */

/* The highlighted card background now reaches the border with no dark gap. */
.hkpt-reference-event-card.is-highlighted {
    padding: 14px;
    border-width: 2px;
    background: transparent;
}

.hkpt-reference-event-inner {
    inset: 0;
    border-radius: 6px;
}

.hkpt-reference-event-card.is-featured .hkpt-reference-event-inner {
    opacity: 1;
    background:
        linear-gradient(135deg, rgba(5, 8, 12, .12) 0%, rgba(8, 7, 15, .34) 54%, rgba(16, 10, 8, .5) 100%),
        radial-gradient(circle farthest-side at 0 100%, rgba(0, 204, 177, .96), transparent 72%),
        radial-gradient(circle farthest-side at 100% 0, rgba(123, 97, 255, .96), transparent 73%),
        radial-gradient(circle farthest-side at 100% 100%, rgba(245, 181, 112, .78), transparent 67%),
        radial-gradient(circle farthest-side at 0 0, rgba(28, 160, 251, .94), #141316 78%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.hkpt-reference-event-card.is-purple .hkpt-reference-event-inner,
.hkpt-reference-event-card.is-green .hkpt-reference-event-inner,
.hkpt-reference-event-card.is-gold .hkpt-reference-event-inner {
    inset: 0;
    opacity: .9;
}

.hkpt-reference-event-head,
.hkpt-reference-event-title,
.hkpt-reference-event-facts {
    position: relative;
    z-index: 1;
}

/* Use high-contrast content on every coloured card variant. */
.hkpt-reference-event-card.is-featured,
.hkpt-reference-event-card.is-purple,
.hkpt-reference-event-card.is-green,
.hkpt-reference-event-card.is-gold {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .42);
}

.hkpt-reference-event-card.is-featured .hkpt-reference-event-head,
.hkpt-reference-event-card.is-purple .hkpt-reference-event-head,
.hkpt-reference-event-card.is-green .hkpt-reference-event-head,
.hkpt-reference-event-card.is-gold .hkpt-reference-event-head,
.hkpt-reference-event-card.is-featured .hkpt-reference-event-title h3,
.hkpt-reference-event-card.is-purple .hkpt-reference-event-title h3,
.hkpt-reference-event-card.is-green .hkpt-reference-event-title h3,
.hkpt-reference-event-card.is-gold .hkpt-reference-event-title h3,
.hkpt-reference-event-card.is-featured .hkpt-reference-event-facts dd,
.hkpt-reference-event-card.is-purple .hkpt-reference-event-facts dd,
.hkpt-reference-event-card.is-green .hkpt-reference-event-facts dd,
.hkpt-reference-event-card.is-gold .hkpt-reference-event-facts dd {
    color: #fff;
}

.hkpt-reference-event-card.is-featured .hkpt-reference-event-head span,
.hkpt-reference-event-card.is-purple .hkpt-reference-event-head span,
.hkpt-reference-event-card.is-green .hkpt-reference-event-head span,
.hkpt-reference-event-card.is-gold .hkpt-reference-event-head span,
.hkpt-reference-event-card.is-featured .hkpt-reference-event-title small,
.hkpt-reference-event-card.is-purple .hkpt-reference-event-title small,
.hkpt-reference-event-card.is-green .hkpt-reference-event-title small,
.hkpt-reference-event-card.is-gold .hkpt-reference-event-title small,
.hkpt-reference-event-card.is-featured .hkpt-reference-event-facts dt,
.hkpt-reference-event-card.is-purple .hkpt-reference-event-facts dt,
.hkpt-reference-event-card.is-green .hkpt-reference-event-facts dt,
.hkpt-reference-event-card.is-gold .hkpt-reference-event-facts dt {
    color: rgba(255, 255, 255, .88);
}

/* A single transparent logo only: no sponsor block, site-name text or panel. */
.header-sponsor,
.footer-sponsor-logo,
.drawer-sponsor {
    display: none !important;
}

.header-brand-cluster,
.footer-brand-cluster,
.drawer-brand-cluster {
    gap: 0;
}

.hkpt-brand-logo,
.site-brand .hkpt-brand-logo,
.footer-site-logo .hkpt-brand-logo,
.drawer-site-brand .hkpt-brand-logo,
.mobile-home-logo .hkpt-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none;
}

.hkpt-brand-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 142px;
    max-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain;
}

.hkpt-brand-logo-image--sample {
    width: 48px;
    height: 48px;
}

.footer-site-logo .hkpt-brand-logo-image {
    max-width: 160px;
    max-height: 56px;
}

.footer-site-logo .hkpt-brand-logo-image--sample {
    width: 56px;
    height: 56px;
}

.drawer-site-brand .hkpt-brand-logo-image {
    max-width: 132px;
    max-height: 46px;
}

.mobile-home-logo .hkpt-brand-logo {
    width: 26px;
    height: 26px;
}

.mobile-home-logo .hkpt-brand-logo-image {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
}

/* Accurate filled social-brand silhouettes, sized like the reference footer. */
.footer-social-link {
    gap: 8px !important;
}

.footer-social-icon {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    color: currentColor;
    line-height: 0;
}

.footer-social-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
    fill: currentColor;
}

@media (max-width: 767px) {
    .hkpt-reference-event-card.is-highlighted {
        padding: 12px;
    }

    .hkpt-reference-event-inner {
        border-radius: 6px;
    }

    .site-brand .hkpt-brand-logo-image {
        max-width: 118px;
        max-height: 42px;
    }

    .site-brand .hkpt-brand-logo-image--sample,
    .drawer-site-brand .hkpt-brand-logo-image--sample {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .site-brand .hkpt-brand-logo-image {
        max-width: 102px;
        max-height: 38px;
    }

    .site-brand .hkpt-brand-logo-image--sample {
        width: 38px;
        height: 38px;
    }
}


/* ========================================================================
   v1.7.3 — Official HKPT logo gold palette
   Primary gold sampled from the supplied HKPT logo: #DFA12E
   ======================================================================== */
:root {
    --site-accent: #DFA12E;
    --site-accent-hover: #E7B451;
    --site-accent-text: #F0C76D;
    --site-gold: #DFA12E;
    --hkpt-series-gold: #DFA12E;
    --hkpt-series-gold-dark: #976F2F;
}
.hkpt-button,
button.hkpt-button,
input.hkpt-button,
.hkpt-reference-event-card.is-gold {
    --hkpt-button-text: #0B0B0E;
}

/* Keep readable dark text on solid HKPT-gold controls. */
.hkpt-button,
.hkpt-series-download-button,
.hkpt-events-filter-popover > footer button:last-child,
.hkpt-events-currency-popover > footer button:first-child {
    color: #0B0B0E;
}
