/* RAILYARD BILLIARDS — COMPONENTS | Reusable UI elements. Full class reference at bottom. */

/* ANIMATED DOTTED SEPARATOR
   .separator-dots     — plain line, left-to-right (default)
   .separator-dots.separator-rtl — right-to-left
   .separator-dot      — line with built-in center dot, left-to-right
   .separator-dot.separator-rtl  — right-to-left with dot
   Padding creates a 40px invisible proximity zone above/below the line
   so the animation speeds up before the cursor actually touches it. */

.separator-dots, .separator-dot {
    padding: 0;
    margin: 0;
}

/* Single pseudo-element spans the full width — no seam, no two-halves.
   Padding creates an invisible hover zone above and below the visible line. */
.separator-dots {
    position: relative;
    display: block;
    height: 4px;
    padding: 40px 0;
    border: none !important;
    overflow: hidden;
}

.separator-dots::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 2px);
    height: 4px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--text-primary) 0px,
        var(--text-primary) 12px,
        transparent 12px,
        transparent 24px
    );
    background-size: 24px 4px;
    animation: dots-scroll-ltr 0.7s linear infinite;
}

/* RTL variant */
.separator-dots.separator-rtl::before {
    animation-name: dots-scroll-rtl;
}

/* Speed up when mouse enters the proximity zone */
.separator-dots:hover::before {
    animation-duration: 0.2s;
}

@keyframes dots-scroll-ltr {
    from { background-position: 0 0; }
    to   { background-position: 24px 0; }
}

@keyframes dots-scroll-rtl {
    from { background-position: 24px 0; }
    to   { background-position: 0 0; }
}

/* SEPARATOR WITH BUILT-IN CENTER DOT — .separator-dot | add .separator-rtl to reverse */

.separator-dot {
    position: relative;
    display: block;
    height: 4px;
    border: none !important;
}

/* Mask punches a 28px gap at the center so dashes never cross the dot */
.separator-dot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 2px);
    height: 4px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--text-primary) 0px,
        var(--text-primary) 12px,
        transparent 12px,
        transparent 24px
    );
    background-size: 24px 4px;
    animation: dots-scroll-ltr 0.7s linear infinite;
    mask-image: linear-gradient(
        90deg,
        black 0%,
        black calc(50% - 14px),
        transparent calc(50% - 14px),
        transparent calc(50% + 14px),
        black calc(50% + 14px),
        black 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        black 0%,
        black calc(50% - 14px),
        transparent calc(50% - 14px),
        transparent calc(50% + 14px),
        black calc(50% + 14px),
        black 100%
    );
}

.separator-dot.separator-rtl::before {
    animation-name: dots-scroll-rtl;
}

.separator-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    z-index: 1;
}

.separator-dot:hover::before {
    animation-duration: 0.2s;
}

/* Red variant */
.separator-dots.separator-red::before, .separator-dots.separator-red::after {
    background-image: repeating-linear-gradient(
        90deg,
        var(--accent-red) 0px,
        var(--accent-red) 5px,
        transparent 5px,
        transparent 12px
    );
}

.separator-dots.separator-red .separator-icon {
    background: var(--accent-red);
}

/* Teal variant */
.separator-dots.separator-teal::before, .separator-dots.separator-teal::after {
    background-image: repeating-linear-gradient(
        90deg,
        var(--accent-teal) 0px,
        var(--accent-teal) 6px,
        transparent 6px,
        transparent 14px
    );
}

.separator-dots.separator-teal .separator-icon {
    background: var(--accent-teal);
}

/* Subtle / no animation variant */
.separator-dots.separator-subtle::before, .separator-dots.separator-subtle::after {
    background-image: repeating-linear-gradient(
        90deg,
        var(--border-subtle) 0px,
        var(--border-subtle) 4px,
        transparent 4px,
        transparent 10px
    );
    animation: none;
}

.separator-dots.separator-subtle .separator-icon {
    background: var(--border-subtle);
    box-shadow: none;
}

/* PULL QUOTE — .pull-quote | variant: .pull-quote-center */

.pull-quote {
    position: relative;
    margin: var(--s-xl) auto;
    max-width: 760px;
    padding: var(--s-xl) var(--s-xl) var(--s-xl) calc(var(--s-xl) + 20px);
    border-left: 3px solid var(--accent-brass);
    background: var(--bg-surface);
    border-radius: 0 var(--rad-xl) var(--rad-xl) 0;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-brass);
    opacity: 0.4;
}

.pull-quote p, .pull-quote blockquote {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.pull-quote cite, .pull-quote .pull-quote-author {
    display: block;
    margin-top: var(--s-md);
    font-size: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-brass);
}

.pull-quote.pull-quote-center {
    text-align: center;
    border-left: none;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    background: transparent;
    padding: var(--s-xl);
}

.pull-quote.pull-quote-center::before {
    left: 50%;
    transform: translateX(-50%);
}

/* CARDS — .card | modifiers: .card-glass .card-featured .card-teal .card-horizontal .card-image */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    padding: var(--s-xl);
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: var(--accent-brass);
    transform: translateY(-3px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.card-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    flex-grow: 1;
}

.card-footer {
    padding-top: var(--s-sm);
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card.card-glass {
    background: var(--smoked-glass);
    backdrop-filter: var(--blur-strong);
}

.card.card-featured {
    border-color: var(--accent-brass);
    background: linear-gradient(160deg, rgba(198, 169, 107, 0.07), var(--bg-surface));
    box-shadow: 0 0 32px rgba(198, 169, 107, 0.1);
}

.card.card-teal {
    border-color: rgba(0, 101, 140, 0.4);
    background: linear-gradient(160deg, rgba(0, 101, 140, 0.08), var(--bg-surface));
}

.card.card-horizontal {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--s-lg);
}

.card.card-horizontal .card-icon {
    flex-shrink: 0;
}

.card.card-image {
    padding: 0;
    overflow: hidden;
}

.card.card-image .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card.card-image .card-content {
    padding: var(--s-lg);
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
    flex-grow: 1;
}

/* Card grids — .card-grid (auto) .card-grid-2 .card-grid-3 */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s-xl);
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-xl);
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-xl);
}

/* ICON + TEXT FEATURE — .feature */

.feature {
    display: flex;
    align-items: flex-start;
    gap: var(--s-lg);
    padding: var(--s-lg);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-brass);
    flex-shrink: 0;
    line-height: 1;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* STAT / COUNTER — .stat inside .stat-row */

.stat {
    text-align: center;
    padding: var(--s-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-xs);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.stat-sublabel {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    overflow: hidden;
}

.stat-row .stat {
    border-right: 1px solid var(--border-light);
}

.stat-row .stat:last-child {
    border-right: none;
}

/* NOTICE / ANNOUNCEMENT — .notice | variants: .notice-info .notice-success .notice-warning .notice-promo */

.notice {
    display: flex;
    align-items: flex-start;
    gap: var(--s-md);
    padding: var(--s-md) var(--s-lg);
    border-radius: var(--rad-md);
    background: var(--bg-surface);
    border-left: 3px solid var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notice.notice-info {
    background: rgba(0, 101, 140, 0.12);
    border-color: var(--accent-teal);
    color: var(--accent-teal-light);
}

.notice.notice-success {
    background: rgba(19, 117, 71, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green-light);
}

.notice.notice-warning {
    background: rgba(198, 169, 107, 0.1);
    border-color: var(--accent-brass);
    color: var(--accent-cream);
}

.notice.notice-promo {
    background: var(--active-overlay);
    border-color: var(--accent-red);
    color: var(--text-primary);
    text-align: center;
    justify-content: center;
    border-radius: var(--rad-lg);
    border-left: none;
    border: 1px solid rgba(214, 55, 48, 0.3);
    padding: var(--s-lg);
}

/* CTA BANNER — .cta-banner */

.cta-banner {
    background: linear-gradient(135deg, rgba(214, 55, 48, 0.15), rgba(0, 101, 140, 0.15));
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    padding: var(--s-xl) var(--s-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-xl);
    flex-wrap: wrap;
}

.cta-banner-text {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.cta-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.cta-banner-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 480px;
}

/* FAQ ACCORDION — .faq-list > details.faq-item > summary.faq-question + .faq-answer */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent-brass);
}

.faq-question {
    padding: var(--s-lg);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-brass);
    flex-shrink: 0;
    font-family: var(--font-body);
    transition: transform 0.2s ease;
}

details.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--s-lg) var(--s-lg);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    border-top: 1px solid var(--border-light);
    padding-top: var(--s-md);
}

/* TESTIMONIAL — .testimonial */

.testimonial {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    padding: var(--s-xl);
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
    position: relative;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 20px;
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent-brass);
    opacity: 0.25;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--accent-brass);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    border-top: 1px solid var(--border-light);
    padding-top: var(--s-sm);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
}

.testimonial-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.testimonial-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* CALLOUT BOX — .callout | variants: .callout-brass .callout-red .callout-teal */

.callout {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    padding: var(--s-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-md);
}

.callout-icon {
    font-size: 2.5rem;
    color: var(--accent-brass);
    line-height: 1;
}

.callout-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.callout-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 460px;
}

.callout.callout-brass {
    border-color: rgba(198, 169, 107, 0.3);
    background: linear-gradient(160deg, rgba(198, 169, 107, 0.07), var(--bg-surface));
}

.callout.callout-red {
    border-color: rgba(214, 55, 48, 0.3);
    background: linear-gradient(160deg, rgba(214, 55, 48, 0.07), var(--bg-surface));
}

.callout.callout-teal {
    border-color: rgba(0, 101, 140, 0.3);
    background: linear-gradient(160deg, rgba(0, 101, 140, 0.07), var(--bg-surface));
}

/* SECTION HEADER — .section-header | variant: .section-header-left */

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--s-sm);
    margin-bottom: var(--s-xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-brass);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.section-header.section-header-left {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
}

/* MINI HERO — compact page-title banner
   Add to a Group block. Stack .section-eyebrow / .section-title /
   .section-subtitle inside. Pair with a background utility class
   (.bg-felt, .bg-spotlight, .bg-chalk, etc.) for texture.
   Variants: .hero-mini-sm (shorter)  .hero-mini-lg (taller)         */

.hero-mini {
    display: grid;
    place-items: center;
    min-height: 32vh;
    padding: var(--s-3xl) var(--s-lg);
    position: relative;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.hero-mini-sm { min-height: 20vh; }
.hero-mini-lg { min-height: 45vh; }

/* Subtle dark overlay so text stays readable over busy backgrounds */
.hero-mini::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.75) 100%);
    pointer-events: none;
}

/* Keep child blocks above the overlay */
.hero-mini > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-mini              { min-height: 22vh; padding: var(--s-2xl) var(--s-md); }
    .hero-mini.hero-mini-sm { min-height: 14vh; }
    .hero-mini.hero-mini-lg { min-height: 32vh; }
}

/* INFO TABLE — .info-table */

.info-table {
    width: 100%;
    border-radius: var(--rad-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.info-table th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--s-sm) var(--s-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.info-table td {
    padding: var(--s-md) var(--s-lg);
    color: var(--text-secondary);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.info-table td:last-child {
    text-align: right;
    color: var(--accent-brass);
    font-family: var(--font-accent);
}

/* BADGE — .badge | variants: .badge-red .badge-teal .badge-brass .badge-green .badge-new .badge-hot */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: var(--rad-round);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    background: var(--bg-elevated);
    white-space: nowrap;
}

.badge.badge-red { background: var(--active-overlay); border-color: rgba(214, 55, 48, 0.4); color: var(--accent-red); }
.badge.badge-teal { background: rgba(0, 101, 140, 0.12); border-color: rgba(0, 101, 140, 0.4); color: var(--accent-teal-light); }
.badge.badge-brass { background: rgba(198, 169, 107, 0.1); border-color: rgba(198, 169, 107, 0.4); color: var(--accent-brass); }
.badge.badge-green { background: rgba(19, 117, 71, 0.12); border-color: rgba(97, 188, 105, 0.4); color: var(--accent-green-light); }
.badge.badge-new { background: var(--accent-teal); border-color: var(--accent-teal); color: var(--text-primary); }
.badge.badge-hot { background: var(--gradient-primary); border-color: transparent; color: var(--text-primary); }

/* STAFF CARD — .staff-card */

.staff-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--s-xl);
    gap: var(--s-md);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.staff-card:hover {
    border-color: var(--accent-brass);
    transform: translateY(-3px);
}

.staff-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-brass);
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.staff-role {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-brass);
}

.staff-bio {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* IMAGE OVERLAY CARD — .overlay-card | variant: .overlay-card-always */

.overlay-card {
    position: relative;
    border-radius: var(--rad-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.overlay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.overlay-card:hover img {
    transform: scale(1.06);
}

.overlay-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,11,11,0.92) 0%, rgba(11,11,11,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--s-xl);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-card:hover .overlay-card-content {
    opacity: 1;
}

.overlay-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.overlay-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.overlay-card.overlay-card-always .overlay-card-content {
    opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
    .card.card-horizontal { flex-direction: column; }
    .cta-banner { flex-direction: column; text-align: center; }
    .cta-banner-desc { max-width: 100%; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .stat-row .stat:nth-child(odd) { border-right: 1px solid var(--border-light); }
    .stat-row .stat { border-right: none; border-bottom: 1px solid var(--border-light); }
    .stat-row .stat:last-child, .stat-row .stat:nth-last-child(-n+2):nth-child(odd) { border-bottom: none; }
}

/* CLASS REFERENCE — separator-dots | pull-quote pull-quote-center | card card-glass card-featured card-teal card-horizontal card-image | card-grid card-grid-2 card-grid-3 | card-title card-body card-footer | feature feature-icon feature-title feature-desc | stat stat-number stat-label stat-sublabel stat-row | notice notice-info notice-success notice-warning notice-promo | cta-banner cta-banner-text cta-banner-title cta-banner-desc | faq-list faq-item faq-question faq-answer | testimonial testimonial-stars testimonial-text testimonial-author testimonial-avatar testimonial-name testimonial-meta | callout callout-brass callout-red callout-teal callout-icon callout-title callout-text | section-header section-header-left section-eyebrow section-title section-subtitle | info-table | badge badge-red badge-teal badge-brass badge-green badge-new badge-hot | staff-card staff-avatar staff-name staff-role staff-bio | overlay-card overlay-card-always overlay-card-title overlay-card-desc | EVENT PAGE: event-hero event-hero-sm event-hero-lg event-hero-title event-body-wrap event-info-bar event-chip event-chip-red event-chip-teal event-chip-brass event-price event-section event-section-title ticket-section */


/* ═══════════════════════════════════════════════════════════════
   EVENT PAGE LAYOUT CLASSES
   Apply in the block editor's "Additional CSS class" field.
   ───────────────────────────────────────────────────────────────

   HERO IMAGE — add to a Cover block or Image block:
     .event-hero         full-width banner, 38vh, fade to bg at bottom
     .event-hero-sm      shorter: ~28vh
     .event-hero-lg      taller:  ~52vh

   CONTENT WRAPPER — add to a Group block in the summary area:
     .event-body-wrap    centers children at max 760px, vertical gap

   INFO CHIPS — add .event-info-bar to a Row/Group, .event-chip to each Paragraph/Button:
     .event-info-bar     flex row with gap and a bordered card bg
     .event-chip         neutral chip (white border)
     .event-chip-red     red tint — use for the date
     .event-chip-teal    teal tint — use for the time
     .event-chip-brass   brass tint — use for the venue

   PRICE — add to a Paragraph block containing the price:
     .event-price        2rem brass, separator line below

   DESCRIPTION SECTIONS — add to Group blocks inside the tabs/content:
     .event-section      bordered card block (Tournament Format, Eligibility, etc.)
     .event-section-title add to the Heading inside .event-section
                          renders brass, small-caps, underlined — NOT gradient

   TICKET FORM WRAPPER — add to the Group wrapping the form:
     .ticket-section     bordered card with a brass top accent bar
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────────────────── */

/* The base CSS has a .event-hero rule for the homepage sticky parallax
   hero (margin-top:-90px, position:sticky, z-index:-1, dark gradient).
   These overrides reset every one of those for the Cover-block use case.
   Targeting .wp-block-cover gives enough specificity to win. */

.event-hero.wp-block-cover {
    /* Reset base hero layout */
    position: relative !important;
    top: auto !important;
    display: flex !important;
    place-items: unset !important;
    align-items: center !important;

    /* Restore the -90px pull-up so the hero tucks under the header */
    margin-top: -90px !important;
    margin-bottom: var(--s-2xl) !important;

    /* Override WordPress's inline min-height:20%.
       Height is padded by 90px to compensate for the negative margin
       so the visible area stays ~38vh. */
    min-height: calc(38vh + 90px) !important;
    max-height: 530px !important;
    height: calc(38vh + 90px) !important;

    /* Break out of the centered container to true viewport width.
       calc(50% - 50vw) pulls left by the difference between half the
       container and half the viewport, making the hero bleed edge-to-edge. */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;

    /* Clear base visual styles */
    background: none !important;
    background-image: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    z-index: 0 !important;
}

.event-hero-sm.wp-block-cover {
    min-height: 28vh !important;
    max-height: 300px !important;
    height: 28vh !important;
}

.event-hero-lg.wp-block-cover {
    min-height: 52vh !important;
    max-height: 560px !important;
    height: 52vh !important;
}

/* The cover background image fills the block */
.event-hero .wp-block-cover__image-background {
    object-fit: cover !important;
    object-position: center 25% !important;
}

@media (max-width: 768px) {
    .event-hero.wp-block-cover {
        height: 80vw !important;
        min-height: 360px !important;
        max-height: 520px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
    }
    .event-hero .wp-block-cover__image-background {
        object-position: center top !important;
    }
    .event-hero-lg.wp-block-cover {
        height: 78vw !important;
        max-height: 510px !important;
    }
}

/* ── HERO TITLE ────────────────────────────────────────────────── */

/* Add .event-hero-title to a Heading inside a Cover block that has .event-hero.
   The Cover block's inner container defaults to position:relative, which would
   make it the positioned ancestor instead of the hero itself — causing the
   heading to squeeze into a narrow column and render vertically. Setting the
   inner container to position:static hands ownership back to .event-hero. */

.event-hero .wp-block-cover__inner-container {
    position: static !important;
    max-width: 100% !important;
}

.event-hero-title {
    position: absolute !important;
    top: auto !important;
    left: var(--s-xl) !important;
    right: var(--s-xl) !important;
    bottom: var(--s-xl) !important;
    transform: none !important;
    margin: 0 !important;
    text-align: center !important;
    font-family: var(--font-heading) !important;
    font-size: clamp(1.8rem, 5vw, 3.2rem) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1.05 !important;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    /* z-index: 3 places title above the solid overlay (z-index 1) */
    z-index: 3 !important;
}

@media (max-width: 768px) {
    .event-hero-title {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
        left: var(--s-lg) !important;
        right: var(--s-lg) !important;
    }
}

/* ── CONTENT WRAPPER ───────────────────────────────────────────── */

.event-body-wrap {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: var(--s-xl);
}

/* ── INFO CHIPS ────────────────────────────────────────────────── */

.event-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
    padding: var(--s-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-xl);
}

.event-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--rad-round);
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.3;
    font-family: var(--font-body);
    /* Undo gradient text inherited from h-tags */
    background-image: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--text-secondary);
}

.event-chip-red {
    border-color: rgba(214, 55, 48, 0.35);
    background: var(--active-overlay);
    color: var(--accent-red);
    -webkit-text-fill-color: var(--accent-red);
    font-weight: 600;
}

.event-chip-teal {
    border-color: rgba(0, 101, 140, 0.35);
    background: rgba(0, 101, 140, 0.1);
    color: var(--accent-teal-light);
    -webkit-text-fill-color: var(--accent-teal-light);
}

.event-chip-brass {
    border-color: rgba(198, 169, 107, 0.35);
    background: rgba(198, 169, 107, 0.08);
    color: var(--accent-brass);
    -webkit-text-fill-color: var(--accent-brass);
}

/* ── PRICE ─────────────────────────────────────────────────────── */

.event-price {
    font-family: var(--font-accent);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--accent-brass);
    -webkit-text-fill-color: var(--accent-brass);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    padding-bottom: var(--s-lg);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
    line-height: 1.2;
}

/* ── DESCRIPTION SECTIONS ──────────────────────────────────────── */

.event-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    padding: var(--s-xl);
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

/* Heading inside an .event-section — renders brass, not gradient */
.event-section-title,
.event-section > h2,
.event-section > h3,
.event-section > h4 {
    font-family: var(--font-heading) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--accent-brass) !important;
    -webkit-text-fill-color: var(--accent-brass) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    padding-bottom: var(--s-sm) !important;
    border-bottom: 1px solid var(--border-light) !important;
    margin: 0 !important;
}

.event-section p,
.event-section li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.event-section ul,
.event-section ol {
    padding-left: var(--s-lg);
    display: grid;
    gap: 4px;
}

/* ── TICKET FORM WRAPPER ───────────────────────────────────────── */

.ticket-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--rad-lg);
    border-top: 3px solid var(--accent-red-dark);
    padding: var(--s-xl);
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
}

/* Inputs inside ticket-section — visible borders on dark bg */
.ticket-section input[type="text"],
.ticket-section input[type="email"],
.ticket-section input[type="tel"],
.ticket-section input[type="number"],
.ticket-section select,
.ticket-section textarea {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--rad-md);
    color: var(--text-primary);
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-section input:focus,
.ticket-section select:focus,
.ticket-section textarea:focus {
    outline: none;
    border-color: var(--accent-brass);
    box-shadow: 0 0 0 3px rgba(198, 169, 107, 0.15);
}

.ticket-section input::placeholder,
.ticket-section textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.ticket-section label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin-bottom: 5px;
}
