/* ── Denutivo Hero Slider — Frontend Styles ── */

/* ─── Outer wrapper ─────────────────────────────────────────────────────── */
.dhs-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-height: 90vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}

/* ─── WebGL gradient canvas ──────────────────────────────────────────────── */
.dhs-hero__gradient {
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

/* ─── Animatable background layer ───────────────────────────────────────── */
.dhs-hero__bg {
    position: absolute;
    top: -8%;
    left: -8%;
    right: -8%;
    bottom: -8%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    transform-origin: center center;
}

/* ─── Scroll-driven video canvas ────────────────────────────────────────── */
.dhs-hero__video-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

/* ─── Full-cover overlay ─────────────────────────────────────────────────── */
.dhs-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ─── Moving radial gradient ─────────────────────────────────────────────── */
.dhs-hero__radial {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(
        ellipse 55% 50% at 50% 50%,
        rgba(0, 23, 199, 0.18) 0%,
        rgba(0, 12, 100, 0.08) 40%,
        transparent 70%
    );
    will-change: background;
}

/* ─── Two-column inner layout ────────────────────────────────────────────── */
.dhs-hero__inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1;
    align-items: stretch;
    width: 100%;
    min-height: inherit;
}

.dhs-hero__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    flex-shrink: 0;
    padding: 7rem 5% 4rem 6%;
    box-sizing: border-box;
    overflow: hidden;
}

.dhs-hero__right {
    flex: 1;
}

/* ─── Text panels ────────────────────────────────────────────────────────── */
.dhs-hero__panels {
    position: relative;
    width: 100%;
}

.dhs-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.dhs-hero__slide.is-active {
    pointer-events: auto;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */

/* Eyebrow label — shown above the heading on other-profile view */
.dhs-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.5rem;
}

/* Friend action button */
.dhs-friend-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.18s, border-color 0.18s, opacity 0.15s;
    -webkit-font-smoothing: antialiased;
}

.dhs-friend-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.dhs-friend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dhs-friend-btn--add {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.dhs-friend-btn--accept {
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(74, 222, 128, 0.4);
    color: #a7f3c0;
}

.dhs-friend-btn--accept:hover:not(:disabled) {
    background: rgba(74, 222, 128, 0.28);
}

.dhs-friend-btn--pending {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

.dhs-friend-btn--friends {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.35);
    color: rgba(74, 222, 128, 0.9);
}

/* Message button */
.dhs-message-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
    -webkit-font-smoothing: antialiased;
}

.dhs-message-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-decoration: none;
}

.dhs-hero__heading {
    color: #ffffff;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.dhs-hero__text {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.012em;
    max-width: 44ch;
    margin: 1.5rem 0 0;
    position: relative;
    padding-top: 1.25rem;
}

.dhs-hero__text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

/* Conditional text — both hidden until login state is determined */
.dhs-hero__text--member,
.dhs-hero__text--guest { display: none; }

/* Primary: WordPress adds 'logged-in' to <body> server-side on every fresh request */
body.logged-in .dhs-hero__text--member      { display: block; }
body:not(.logged-in) .dhs-hero__text--guest { display: block; }

/* Secondary: JS cookie check adds dhs-member/dhs-guest to <html> for cached pages.
   These rules come after the body rules so they win on cascade ties. */
html.dhs-member .dhs-hero__text--member { display: block; }
html.dhs-member .dhs-hero__text--guest  { display: none;  }
html.dhs-guest  .dhs-hero__text--guest  { display: block; }
html.dhs-guest  .dhs-hero__text--member { display: none;  }

.dhs-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 2rem;
}

/* ─── CTA Buttons ────────────────────────────────────────────────────────── */
.dhs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.dhs-btn--primary {
    background: #ffffff;
    color: #0f172a;
}

.dhs-btn--primary:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.dhs-btn--outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.dhs-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

.dhs-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dhs-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.dhs-btn__icon {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.dhs-btn:hover .dhs-btn__icon {
    transform: translate(2px, -2px);
}

/* ─── Dot indicators ─────────────────────────────────────────────────────── */
.dhs-hero__dots {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 2.5rem;
}

.dhs-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
    flex-shrink: 0;
}

.dhs-hero__dot--active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ─── Scroll indicator — mouse scroll wheel ──────────────────────────────── */
@keyframes dhs-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

@keyframes dhs-wheel-scroll {
    0%        { opacity: 1; transform: translateY(0); }
    60%       { opacity: 0; transform: translateY(10px); }
    61%       { opacity: 0; transform: translateY(0); }
    100%      { opacity: 1; transform: translateY(0); }
}

.dhs-hero__scroll {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    padding: 8px;
    animation: dhs-float 2.4s ease-in-out infinite;
    transition: color 0.2s ease;
}

.dhs-hero__scroll:hover {
    color: #fff;
}

.dhs-hero__scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
    box-sizing: border-box;
}

.dhs-hero__scroll-wheel {
    width: 3px;
    height: 7px;
    background: currentColor;
    border-radius: 2px;
    animation: dhs-wheel-scroll 1.8s ease-in-out infinite;
}

/* ─── Editor placeholder ─────────────────────────────────────────────────── */
.dhs-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
}

.dhs-hero-placeholder p {
    color: #64748b;
    font-size: 0.9375rem;
    margin: 0;
}

/* ─── Right column: event tiles ─────────────────────────────────────────── */
.dhs-hero__right--tiles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9rem 4% 9rem 2%;
    overflow: hidden;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
}

/* Tile panel: hidden by default, shown when is-active */
.dhs-hero__tiles-panel {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.dhs-hero__tiles-panel.is-active {
    display: flex;
}

/* ─── Event tiles container ──────────────────────────────────────────────── */
.dhs-event-tiles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.dhs-event-tiles--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ─── Individual event tile ──────────────────────────────────────────────── */
.dhs-event-tile {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    min-height: 72px;
}

.dhs-event-tile:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

/* Thumbnail */
.dhs-event-tile__thumb {
    width: 72px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dhs-event-tile__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
}

/* Body */
.dhs-event-tile__body {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dhs-event-tile__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta rows (date, venue) */
.dhs-event-tile__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dhs-event-tile__meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Footer: price + CTA */
.dhs-event-tile__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
    gap: 8px;
}

.dhs-event-tile__price {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.dhs-event-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}

.dhs-event-tile:hover .dhs-event-tile__cta {
    color: #fff;
}

.dhs-event-tile__cta-icon {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.dhs-event-tile:hover .dhs-event-tile__cta-icon {
    transform: translate(2px, -2px);
}

/* ─── Current event feature tile ────────────────────────────────────────── */
.dhs-event-feature {
    position: relative;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    max-width: 340px;
    width: 100%;
    margin-inline: auto;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.dhs-event-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.30);
    color: #fff;
    text-decoration: none;
}

.dhs-event-feature__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.08);
}

.dhs-event-feature__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
}



/* ─── ProfileGrid tiles ──────────────────────────────────────────────────── */
.dhs-pg-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Stat tile — square, vertically stacked */
.dhs-pg-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    position: relative;
}

a.dhs-pg-stat:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.dhs-pg-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.dhs-pg-stat__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.dhs-pg-stat__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dhs-pg-stat__count {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.dhs-pg-stat__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Arrow hidden in tile layout */
.dhs-pg-stat__arrow {
    display: none;
}

/* Membership tile — square, same grid cell as stat tiles */
.dhs-pg-membership {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

a.dhs-pg-membership:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dhs-pg-membership--active  { border-color: rgba(74, 222, 128, 0.4); }
.dhs-pg-membership--pending { border-color: rgba(251, 191, 36, 0.4); }
.dhs-pg-membership--expired { border-color: rgba(239, 68, 68, 0.4); }
.dhs-pg-membership--none    { border-color: rgba(255, 255, 255, 0.12); }

.dhs-pg-membership__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.dhs-pg-membership--active  .dhs-pg-membership__icon { color: rgba(74, 222, 128, 0.8); }
.dhs-pg-membership--pending .dhs-pg-membership__icon { color: rgba(251, 191, 36, 0.8); }
.dhs-pg-membership--expired .dhs-pg-membership__icon { color: rgba(239, 68, 68, 0.8); }
.dhs-pg-membership--none    .dhs-pg-membership__icon { color: rgba(255, 255, 255, 0.35); }

.dhs-pg-membership--none .dhs-pg-membership__label {
    font-size: 0.6875rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    white-space: normal;
}

.dhs-pg-membership__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.dhs-pg-membership__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.dhs-pg-membership__since {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
}

.dhs-pg-membership__since strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* Other user's profile card */
.dhs-pg-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.dhs-pg-profile-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15) center/cover no-repeat;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.dhs-pg-profile-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.dhs-pg-profile-card__btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem;
}

/* Guest card */
.dhs-pg-guest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
}

.dhs-pg-guest__icon {
    display: flex;
    color: rgba(255, 255, 255, 0.3);
}

.dhs-pg-guest__msg {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ─── Animated gradient border for CTA tile ─────────────────────────────── */
@property --dhs-cta-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes dhs-cta-rotate {
    0%   { --dhs-cta-angle: 0deg; }
    100% { --dhs-cta-angle: 360deg; }
}

/* ─── Custom tiles ───────────────────────────────────────────────────────── */
.dhs-custom-tiles {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

.dhs-custom-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 31px 34px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 40px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

a.dhs-custom-tile:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
    color: #fff;
}

.dhs-custom-tile--cta {
    background: rgba(8, 16, 50, 0.60);
    border-color: transparent;
    padding: 27px 31px;
    position: relative;
}

/* Gradient ring rendered only in the border area via mask-composite;
   transparent in the content box so the glass fill shows through. */
.dhs-custom-tile--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1.5px;
    background: linear-gradient(var(--dhs-cta-angle), #0D62FF, transparent, #0D62FF);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: dhs-cta-rotate 5s linear infinite;
    pointer-events: none;
}

a.dhs-custom-tile--cta:hover {
    background: rgba(8, 16, 50, 0.82);
    border-color: transparent;
    transform: translateY(-2px);
}

.dhs-custom-tile__icon {
    font-size: 1.65rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(13, 98, 255, 0.12);
    border-radius: 10px;
    color: #0d62ff;
}

.dhs-custom-tile__icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.dhs-custom-tile--cta .dhs-custom-tile__icon {
    width: 57px;
    height: 57px;
    background: rgba(13, 98, 255, 0.12);
    color: #0d62ff;
}

.dhs-custom-tile--cta .dhs-custom-tile__icon svg {
    width: 26px;
    height: 26px;
}

.dhs-custom-tile--featured .dhs-custom-tile__icon {
    color: #0d62ff;
    background: rgba(13, 98, 255, 0.12);
}

.dhs-custom-tile__icon-emoji {
    font-size: inherit;
    line-height: 1;
}

.dhs-custom-tile__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    min-width: 0;
    text-align: left;
}

.dhs-custom-tile__title {
    font-size: 1.406rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: block;
}

.dhs-custom-tile--cta .dhs-custom-tile__title {
    font-size: 1.5rem;
}

.dhs-custom-tile__desc {
    font-size: 1.219rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.45;
    white-space: normal;
}

.dhs-custom-tile__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #0d62ff;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.dhs-custom-tile__meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.056rem;
    font-weight: 500;
    color: #0d62ff;
    margin-top: 12px;
    flex-shrink: 0;
}

.dhs-custom-tile__arrow {
    display: flex;
    align-items: center;
    color: #0d62ff;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.dhs-custom-tile__arrow svg {
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

a.dhs-custom-tile:hover .dhs-custom-tile__arrow {
    transform: translate(2px, -2px);
    color: #0d62ff;
}

a.dhs-custom-tile:hover .dhs-custom-tile__arrow svg {
    transform: rotate(45deg);
}

/* ── Featured (left-half) tile layout ────────────────────────────────────── */
.dhs-custom-tiles--has-featured {
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
}

.dhs-custom-tile--featured {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 34px;
    gap: 20px;
}

/* Icon sits above body content — gap on parent handles spacing */
.dhs-custom-tile--featured .dhs-custom-tile__icon {
    width: 57px;
    height: 57px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dhs-custom-tile--featured .dhs-custom-tile__icon svg {
    width: 29px;
    height: 29px;
}

.dhs-custom-tile--featured .dhs-custom-tile__body {
    margin-top: 0;
    flex: 0 0 auto;
    gap: 20px;
}

.dhs-custom-tile--featured .dhs-custom-tile__title {
    font-size: clamp(2.275rem, 4.55vw, 3.185rem);
    line-height: 1.2;
    display: block;
    font-family: var(--wp--preset--font-family--gt-eesti-display, 'GT Eesti Pro Display', sans-serif);
    font-weight: 400;
}

.dhs-custom-tile--featured .dhs-custom-tile__desc {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 1.219rem;
    line-height: 1.55;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.75);
    max-width: none;
}

.dhs-custom-tile--featured .dhs-custom-tile__label {
    margin-bottom: 0;
}

.dhs-custom-tile--featured .dhs-custom-tile__meta {
    margin-top: 0;
}

.dhs-custom-tile--featured .dhs-custom-tile__arrow {
    margin-top: 0;
    flex-shrink: 0;
}

/* Right column: remaining tiles stacked and centred */
.dhs-custom-tiles__rest {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

/* ── Full-width featured-tile layout ──────────────────────────────────────
   When the active panel has a featured tile, the text column hides and the
   tiles expand to span the entire hero. Uses CSS :has() — Chrome 105+,
   Firefox 121+, Safari 15.4+.
──────────────────────────────────────────────────────────────────────────── */
.dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-hero__left {
    display: none;
}

.dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-hero__right--tiles {
    padding: 9rem 6% 8rem;
}

.dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-hero__tiles-panel.is-active {
    flex: 1;
}

.dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-custom-tiles--has-featured {
    flex: 1;
}

.dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-custom-tiles__rest .dhs-custom-tile {
    flex: 1;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

/* ── Tablet: tighten spacing, keep two-column layout ──────────────────── */
@media (max-width: 1100px) {
    .dhs-hero__left {
        padding: 6rem 4% 3.5rem 5%;
    }

    .dhs-hero__right--tiles {
        padding: 7.5rem 3% 7.5rem 1.5%;
    }

    .dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-hero__right--tiles {
        padding: 8rem 5% 7rem;
    }

    .dhs-event-tiles--grid {
        grid-template-columns: 1fr;
    }

    .dhs-pg-stat__count {
        font-size: 1.25rem;
    }
}

/* ── Mobile: stack layout, full-width tiles ────────────────────────────── */
@media (max-width: 768px) {
    .dhs-hero {
        min-height: unset;
    }

    .dhs-hero__inner {
        flex-direction: column;
    }

    .dhs-hero__left {
        width: 100%;
        padding: 7rem 6% 2.5rem;
    }

    /* Empty right column has nothing to show on mobile */
    .dhs-hero__right:not(.dhs-hero__right--tiles) {
        display: none;
    }

    .dhs-hero__right--tiles {
        width: 100%;
        padding: 0 6% 5rem;
    }

    /* Scroll button hidden on mobile — users swipe naturally */
    .dhs-hero__scroll {
        display: none;
    }

    /* Dots tighter on mobile */
    .dhs-hero__dots {
        margin-top: 1.75rem;
    }

    /* Event feature tile: uncap width on mobile */
    .dhs-event-feature {
        max-width: 400px;
    }

    /* Event tiles: single column, slightly smaller thumbnails */
    .dhs-event-tiles,
    .dhs-event-tiles--grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .dhs-event-tile__thumb {
        width: 56px;
    }

    /* PG stat tiles: square 2×2 grid sized from the grid container, not tile content */
    .dhs-pg-tiles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        aspect-ratio: 1;
        gap: 8px;
    }

    /* Tiles fill their cell; content cannot push the cell taller */
    .dhs-pg-stat,
    .dhs-pg-membership {
        aspect-ratio: unset;
        overflow: hidden;
    }

    /* Compact stat cards on mobile */
    .dhs-pg-stat {
        padding: 10px 12px;
        gap: 8px;
    }

    .dhs-pg-stat__icon {
        width: 34px;
        height: 34px;
    }

    .dhs-pg-stat__count {
        font-size: 1.25rem;
    }

    .dhs-pg-stat__label,
    .dhs-pg-membership__label {
        font-size: 0.5625rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .dhs-pg-membership--none .dhs-pg-membership__label {
        font-size: 0.5625rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    /* Profile + guest cards: full-width */
    .dhs-pg-profile-card,
    .dhs-pg-guest {
        padding: 16px 14px;
    }

    /* Custom tiles: tighten up; featured collapses to stacked column */
    .dhs-custom-tiles {
        gap: 8px;
    }

    .dhs-custom-tiles__rest {
        gap: 8px;
    }

    .dhs-custom-tiles--has-featured {
        flex-direction: column;
    }

    .dhs-custom-tile--featured {
        min-height: 160px;
    }

    /* Restore text column on mobile — tiles stack below it */
    .dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-hero__left {
        display: flex;
    }

    .dhs-hero__inner:has(.dhs-hero__tiles-panel.is-active .dhs-custom-tiles--has-featured) .dhs-hero__right--tiles {
        padding: 0 6% 3rem;
    }

    /* Equal padding on all sides for tiles on mobile */
    .dhs-custom-tile {
        padding: 24px;
    }

    /* Text ~30% smaller on mobile */
    .dhs-custom-tile__title {
        font-size: 0.984rem;
    }

    .dhs-custom-tile--cta .dhs-custom-tile__title {
        font-size: 1.05rem;
    }

    .dhs-custom-tile--featured .dhs-custom-tile__title {
        font-size: clamp(1.593rem, 3.19vw, 2.23rem);
    }

    .dhs-custom-tile__desc {
        font-size: 0.854rem;
    }

    .dhs-custom-tile__label {
        font-size: 0.625rem;
    }

    .dhs-custom-tile__meta {
        font-size: 0.74rem;
    }

    .dhs-custom-tile--cta {
        padding: 22px;
    }

    .dhs-custom-tile--featured {
        padding: 24px;
    }

    .dhs-custom-tile__icon {
        width: 42px;
        height: 42px;
        font-size: 1.375rem;
    }

    .dhs-custom-tile--cta .dhs-custom-tile__icon {
        width: 48px;
        height: 48px;
        font-size: 1.788rem;
    }
}

/* ── Small phones: single column for PG stats too ─────────────────────── */
@media (max-width: 480px) {
    .dhs-hero__left {
        padding: 6rem 5% 2rem;
    }

    .dhs-pg-tiles {
        grid-template-columns: 1fr;
        max-width: 260px;
    }

    .dhs-pg-stat__count {
        font-size: 1.25rem;
    }

    .dhs-event-tile__body {
        padding: 8px 10px;
    }
}
