body.hdsv-fr-frontend-page {
    --hdsv-fr-brand-red: #e40417;
    --hdsv-fr-brand-blue: #2ea3f2;
    --hdsv-fr-brand-navy: #071720;
    --hdsv-fr-brand-ink: #1f2430;
    --hdsv-fr-brand-muted: #5d6673;
    --hdsv-fr-brand-border: #dce2ec;
    --hdsv-fr-brand-soft: #f3f6fa;
    --hdsv-fr-brand-row: #f6f8fb;
    --hdsv-fr-brand-surface: #fff;
    --hdsv-fr-radius-small: 8px;
    --hdsv-fr-radius: 12px;
    --hdsv-fr-shadow: 0 8px 24px rgb(7 23 32 / 8%);
    --hdsv-fr-content-width: 1080px;
}

body.hdsv-fr-frontend-page #main-content {
    background: var(--hdsv-fr-brand-surface);
}

body.hdsv-fr-frontend-page #main-content > .container,
body.hdsv-fr-frontend-page #main-content .et_pb_row {
    width: 80%;
    max-width: var(--hdsv-fr-content-width);
}

body.hdsv-fr-frontend-page #main-content > .container {
    padding-right: 0;
    padding-left: 0;
}

body.hdsv-fr-frontend-page #content-area,
body.hdsv-fr-frontend-page #left-area {
    width: 100%;
}

body.hdsv-fr-frontend-page #left-area {
    float: none;
    padding-right: 0 !important;
}

body.hdsv-fr-frontend-page #sidebar,
body.hdsv-fr-frontend-page #main-content > .container::before {
    display: none;
}

body.hdsv-fr-frontend-page #main-content h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--hdsv-fr-brand-navy);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hdsv-fair-ranking-wrapper,
.hdsv-fr-invitees,
.hdsv-fr-venue-map,
.hdsv-fr-venues,
.hdsv-fr-venue-detail,
.hdsv-mt-public {
    color: var(--hdsv-fr-brand-ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hdsv-fair-ranking-wrapper,
.hdsv-fr-invitees {
    width: 100%;
    max-width: var(--hdsv-fr-content-width);
    margin-right: auto;
    margin-left: auto;
}

.hdsv-fr-filter-panel {
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--hdsv-fr-brand-border);
    border-radius: var(--hdsv-fr-radius);
    background: var(--hdsv-fr-brand-soft);
}

.hdsv-fr-select,
.hdsv-fr-venue-map__toolbar label,
.hdsv-mt-signup-form label {
    color: var(--hdsv-fr-brand-navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.35;
    text-transform: uppercase;
}

.hdsv-fr-select select,
.hdsv-fr-search input,
.hdsv-fr-venue-map__toolbar select,
.hdsv-mt-signup-form input {
    min-height: 46px;
    border: 1px solid #c8d0dc;
    border-radius: var(--hdsv-fr-radius-small);
    background-color: var(--hdsv-fr-brand-surface);
    color: var(--hdsv-fr-brand-ink);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.35;
}

.hdsv-fr-select select:focus,
.hdsv-fr-search input:focus,
.hdsv-fr-venue-map__toolbar select:focus,
.hdsv-mt-signup-form input:focus {
    border-color: var(--hdsv-fr-brand-red);
    outline: 3px solid rgb(228 4 23 / 15%);
    outline-offset: 1px;
}

.hdsv-fr-summary {
    margin: 16px 0;
    padding: 11px 16px;
    border: 1px solid var(--hdsv-fr-brand-border);
    border-radius: var(--hdsv-fr-radius-small);
    background: var(--hdsv-fr-brand-surface);
}

.hdsv-fr-summary-text {
    color: var(--hdsv-fr-brand-muted);
}

.hdsv-fr-summary-stats span {
    color: var(--hdsv-fr-brand-muted);
    font-weight: 700;
}

.hdsv-fr-summary-stats strong {
    color: var(--hdsv-fr-brand-navy);
    font-variant-numeric: tabular-nums;
}

.hdsv-fair-ranking-wrapper .hdsv-fr-summary-stats li + li {
    padding-left: 24px;
    border-left: 1px solid var(--hdsv-fr-brand-border);
}

.hdsv-fr-table,
.hdsv-fr-venue-detail__tournaments table {
    border: 1px solid var(--hdsv-fr-brand-border);
    border-top: 3px solid var(--hdsv-fr-brand-blue);
    border-radius: var(--hdsv-fr-radius);
    background: var(--hdsv-fr-brand-surface);
    box-shadow: var(--hdsv-fr-shadow);
    overflow: hidden;
}

body.hdsv-fr-frontend-page table.hdsv-fr-table,
body.hdsv-fr-frontend-page table.hdsv-fr-detail-table,
body.hdsv-fr-frontend-page .hdsv-fr-venue-detail__tournaments table {
    border-top: 3px solid var(--hdsv-fr-brand-blue) !important;
}

.hdsv-fr-table thead th,
.entry-content .hdsv-fr-table thead th,
.hdsv-fr-venue-detail__tournaments th {
    border: 0;
    border-top: 3px solid var(--hdsv-fr-brand-blue);
    background: var(--hdsv-fr-brand-navy);
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hdsv-fr-table tbody td,
.entry-content .hdsv-fr-table tbody td,
.hdsv-fr-venue-detail__tournaments td {
    border-color: var(--hdsv-fr-brand-border);
    color: var(--hdsv-fr-brand-ink);
    font-variant-numeric: tabular-nums;
}

.hdsv-fr-table tbody tr:nth-child(even),
.hdsv-fr-venue-detail__tournaments tbody tr:nth-child(even) {
    background: var(--hdsv-fr-brand-row);
}

.hdsv-fr-table tbody tr:hover {
    background: #edf2f7;
}

.hdsv-fr-invitees .hdsv-fr-table tbody tr:hover {
    background: inherit;
}

.hdsv-fr-back-button,
.hdsv-fr-pagination button,
.hdsv-mt-public .button,
.hdsv-mt-cert-button {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--hdsv-fr-brand-navy);
    border-radius: var(--hdsv-fr-radius-small);
    background: var(--hdsv-fr-brand-surface);
    box-shadow: none;
    color: var(--hdsv-fr-brand-navy);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.hdsv-fr-back-button:hover,
.hdsv-fr-pagination button:hover:not(:disabled),
.hdsv-mt-public .button:hover:not(:disabled),
.hdsv-mt-cert-button:hover:not(:disabled) {
    border-color: var(--hdsv-fr-brand-red);
    background: var(--hdsv-fr-brand-red);
    color: #fff;
}

.hdsv-fr-back-button:focus-visible,
.hdsv-fr-pagination button:focus-visible,
.hdsv-mt-public .button:focus-visible,
.hdsv-mt-card:focus-visible,
.hdsv-fr-venue-card a:focus-visible,
.hdsv-fr-venue-detail a:focus-visible {
    outline: 3px solid rgb(228 4 23 / 28%);
    outline-offset: 2px;
}

.hdsv-fr-detail-card {
    padding: 24px;
    border: 1px solid var(--hdsv-fr-brand-border);
    border-radius: var(--hdsv-fr-radius);
    background: var(--hdsv-fr-brand-surface);
    box-shadow: var(--hdsv-fr-shadow);
}

.hdsv-fr-detail-header h2,
.hdsv-fr-invitees__section h2,
.hdsv-fr-venue-detail__facts h2,
.hdsv-fr-venue-detail__tournaments h2,
.hdsv-mt-public__header h2,
.hdsv-mt-public__title {
    color: var(--hdsv-fr-brand-navy);
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.hdsv-fr-detail-header p,
.hdsv-fr-detail-meta-item span,
.hdsv-fr-invitees__source,
.hdsv-mt-public__meta,
.hdsv-mt-card span,
.hdsv-mt-empty {
    color: var(--hdsv-fr-brand-muted);
}

.hdsv-fr-detail-meta-item {
    border-color: var(--hdsv-fr-brand-border);
    border-radius: var(--hdsv-fr-radius-small);
    background: var(--hdsv-fr-brand-soft);
}

.hdsv-fr-link-button,
.hdsv-fr-venue-card a,
.hdsv-fr-map-popup a,
.hdsv-fr-venue-detail a,
.hdsv-mt-card em {
    color: var(--hdsv-fr-brand-red);
}

.hdsv-fr-venue-detail__inner {
    width: 80%;
    max-width: var(--hdsv-fr-content-width);
}

.hdsv-fr-venue-detail__header::after {
    height: 3px;
    background: var(--hdsv-fr-brand-red);
}

.hdsv-fr-venue-detail__header h1 {
    margin-bottom: 0;
}

.hdsv-fr-venue-detail__facts dl > div,
.hdsv-fr-venue-card__contact {
    border-color: var(--hdsv-fr-brand-border);
}

.hdsv-fr-venue-detail__facts dt,
.hdsv-fr-venue-card__title a,
.hdsv-fr-venue-card__schedule,
.hdsv-fr-venues__day-title {
    color: var(--hdsv-fr-brand-navy);
}

.hdsv-fr-venue-map__toolbar {
    gap: 12px;
    margin-bottom: 16px;
}

.hdsv-fr-venue-map__toolbar select {
    min-width: 220px;
}

.hdsv-fr-venue-map__canvas {
    border-color: var(--hdsv-fr-brand-border);
    border-radius: var(--hdsv-fr-radius);
    box-shadow: var(--hdsv-fr-shadow);
}

.hdsv-fr-venues__day-title {
    border-bottom-color: var(--hdsv-fr-brand-red);
    font-weight: 800;
}

.hdsv-fr-venue-card {
    border: 1px solid var(--hdsv-fr-brand-border);
    border-top: 2px solid var(--hdsv-fr-brand-red);
    border-radius: var(--hdsv-fr-radius-small);
    background: var(--hdsv-fr-brand-surface);
    box-shadow: 0 5px 16px rgb(7 23 32 / 7%);
}

.hdsv-fr-venue-detail__tournaments table {
    border-collapse: separate;
    border-spacing: 0;
}

.hdsv-mt-public {
    gap: 24px;
}

.hdsv-mt-public__header {
    padding: 16px;
    border: 1px solid var(--hdsv-fr-brand-border);
    border-radius: var(--hdsv-fr-radius);
    background: var(--hdsv-fr-brand-soft);
}

.hdsv-mt-card {
    padding: 14px 16px;
    border: 1px solid var(--hdsv-fr-brand-border);
    border-top: 2px solid var(--hdsv-fr-brand-red);
    border-radius: var(--hdsv-fr-radius-small);
    background: var(--hdsv-fr-brand-surface);
    box-shadow: 0 5px 16px rgb(7 23 32 / 7%);
}

.hdsv-mt-card strong {
    color: var(--hdsv-fr-brand-navy);
}

.hdsv-mt-registration-pill {
    border-color: var(--hdsv-fr-brand-border);
    background: var(--hdsv-fr-brand-soft);
    color: var(--hdsv-fr-brand-navy);
}

.hdsv-mt-registration-pill.is-closed {
    border-color: rgb(228 4 23 / 25%);
    background: #fff0f1;
    color: #a50010;
}

.hdsv-mt-public__tabs .button.is-active {
    border-color: var(--hdsv-fr-brand-navy);
    background: var(--hdsv-fr-brand-navy);
    color: #fff;
}

.hdsv-mt-public__bracket {
    border-color: var(--hdsv-fr-brand-border);
    border-radius: var(--hdsv-fr-radius);
}

.hdsv-mt-cert-button {
    cursor: pointer;
}

@media (max-width: 760px) {
    body.hdsv-fr-frontend-page #main-content > .container,
    body.hdsv-fr-frontend-page #main-content .et_pb_row,
    .hdsv-fr-venue-detail__inner {
        width: calc(100% - 36px);
    }

    body.hdsv-fr-frontend-page #main-content h1 {
        margin-bottom: 1.15rem;
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .hdsv-fair-ranking-wrapper .hdsv-fr-summary-stats li + li {
        padding-left: 0;
        border-left: 0;
    }

    .hdsv-fr-venue-map__toolbar select {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdsv-fr-back-button,
    .hdsv-fr-pagination button,
    .hdsv-mt-public .button,
    .hdsv-mt-card {
        transition: none;
    }
}
