/*
 * HOG Command site styles
 * Loaded by: Dashboard, Events list, Event detail, Profile Edit, RC Check-in
 * Scope: component-specific layout only
 */


:root {
    --hc-primary: var(--bs-primary, #0d6efd);
    --hc-primary-rgb: var(--bs-primary-rgb, 13, 110, 253);
    --hc-surface: var(--bs-body-bg, #fff);
    --hc-text: var(--bs-body-color, inherit);
}

/* Base badges and shared utility */
.hc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.hc-badge-ride    { background: #fff3cd; color: #856404; }
.hc-badge-meeting { background: #cfe2ff; color: #084298; }
.hc-badge-rally   { background: #f8d7da; color: #842029; }
.hc-badge-social  { background: #d1e7dd; color: #0a3622; }
.hc-badge-neutral { background: #e9ecef; color: #495057; }
.hc-badge-success { background: #d1e7dd; color: #0a3622; }
.hc-badge-warning { background: #fff3cd; color: #856404; }
.hc-badge-danger  { background: #f8d7da; color: #842029; }
.hc-badge-outline {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.hc-meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.2rem;
}

.hc-muted {
    opacity: 0.72;
    font-size: 0.95rem;
}

.hc-strong {
    font-weight: 600;
}

.hc-empty {
    font-style: italic;
    opacity: 0.72;
}

.hc-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    margin: 0 0 0.75rem;
    opacity: 0.8;
}

.hc-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Canonical page shell */
.hc-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.25rem;
}

.hc-page--narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hc-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hc-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.25rem;
}

.hc-page__head-main,
.hc-page__main,
.hc-page__aside {
    min-width: 0;
}

.hc-page__head-main {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hc-page__title {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.15;
}

.hc-page__subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

.hc-page__meta,
.hc-page__badges,
.hc-page__actions,
.hc-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hc-page__meta {
    margin-top: 0.15rem;
    font-size: 0.92rem;
    opacity: 0.76;
}

.hc-page__meta span:not(:last-child)::after {
    content: '  |';
    margin-left: 0.5rem;
    opacity: 0.5;
}

.hc-page__badges {
    margin-top: 0.35rem;
}

.hc-page__actions {
    justify-content: flex-end;
    align-self: flex-start;
    margin-left: auto;
}

.hc-page__actions--footer {
    justify-content: flex-start;
}

.hc-page__actions--end {
    justify-content: flex-end;
}

.hc-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.hc-page__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    .hc-page__layout--sidebar {
        grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
    }
}

.hc-panel {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
}

.hc-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1rem 0;
}

.hc-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.hc-panel__meta {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.hc-panel__body {
    padding: 1rem;
}

.hc-panel__body > :last-child {
    margin-bottom: 0;
}

.hc-page .alert.alert-light {
    background: rgba(127, 127, 127, 0.12);
    color: inherit;
    border-color: rgba(127, 127, 127, 0.18);
}

.hc-list-group .list-group-item {
    border-left: 0;
    border-right: 0;
    background: transparent;
    color: inherit;
}

.hc-list-group .list-group-item-action:hover,
.hc-list-group .list-group-item-action:focus,
.hc-list-group .list-group-item-action:active {
    background: rgba(127, 127, 127, 0.12);
    color: inherit;
}

.hc-list-group .list-group-item:first-child {
    border-top: 0;
}

.hc-list-group .list-group-item:last-child {
    border-bottom: 0;
}

.hc-profile-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hc-profile-summary__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.hc-profile-summary__text {
    min-width: 0;
}

.hc-profile-summary__name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.hc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .hc-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hc-kpi-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.hc-summary-stats-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: stretch;
}

.hc-kpi-label {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.hc-form-width-sm {
    max-width: 200px;
}


/* Button system */
.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
}

.hc-btn.hc-btn-sm {
    font-size: 0.875rem;
}

.hc-btn.disabled,
.hc-btn:disabled {
    opacity: 0.55;
    box-shadow: none;
    pointer-events: none;
}

.hc-btn:not(.btn):not(.uk-button) {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hc-btn.hc-btn-sm:not(.btn):not(.uk-button) {
    padding: 0.25rem 0.5rem;
}

.hc-btn-action:not(.btn):not(.uk-button) {
    background: var(--hc-primary);
    border-color: var(--hc-primary);
    color: #fff;
}

.hc-btn-action:not(.btn):not(.uk-button):hover,
.hc-btn-action:not(.btn):not(.uk-button):focus {
    background: rgba(var(--hc-primary-rgb), 0.92);
    border-color: rgba(var(--hc-primary-rgb), 0.92);
    color: #fff;
}

.hc-btn-secondary:not(.btn):not(.uk-button) {
    background: var(--hc-surface);
    border-color: rgba(0, 0, 0, 0.22);
    color: var(--hc-text);
}

.hc-btn-secondary:not(.btn):not(.uk-button):hover,
.hc-btn-secondary:not(.btn):not(.uk-button):focus {
    background: rgba(127, 127, 127, 0.08);
    border-color: rgba(0, 0, 0, 0.3);
    color: var(--hc-text);
}

.hc-btn-back:not(.btn):not(.uk-button) {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.hc-btn-back:not(.btn):not(.uk-button):hover,
.hc-btn-back:not(.btn):not(.uk-button):focus {
    background: #5c636a;
    border-color: #565e64;
    color: #fff;
}

.hc-btn-danger:not(.btn):not(.uk-button) {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.hc-btn-danger:not(.btn):not(.uk-button):hover,
.hc-btn-danger:not(.btn):not(.uk-button):focus {
    background: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

/* Shared avatar helpers */
.hc-avatar,
.hc-avatar-lg,
.hc-avatar-ph,
.hc-avatar-ph-lg {
    border-radius: 50%;
    flex-shrink: 0;
}

.hc-avatar,
.hc-avatar-ph,
.hc-avatar-lg,
.hc-avatar-ph-lg {
    width: 96px;
    height: 96px;
}

.hc-avatar,
.hc-avatar-lg {
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.hc-avatar-ph,
.hc-avatar-ph-lg {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.hc-avatar-ph-lg {
    font-size: 2rem;
}

@media (max-width: 420px) {
    .hc-avatar,
    .hc-avatar-ph,
    .hc-avatar-lg,
    .hc-avatar-ph-lg {
        width: 72px;
        height: 72px;
    }

    .hc-avatar-ph-lg {
        font-size: 1.5rem;
    }

    .hc-avatar--dashboard,
    .hc-avatar-ph--dashboard {
        width: 88px;
        height: 88px;
    }
}

/* Dashboard */
.hc-dashboard {
    margin-top: 0.25rem;
}


.hc-date-badge {
    width: 3.25rem;
    text-align: center;
    line-height: 1.1;
}

.hc-date-mon {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.72;
}

.hc-date-day {
    font-size: 1.6rem;
    font-weight: 700;
}

.hc-dashboard-history summary {
    list-style: none;
}

.hc-dashboard-history summary::-webkit-details-marker {
    display: none;
}

.hc-dashboard-milestones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hc-dashboard-milestones__grid,
.hc-milestones-progress-grid,
.hc-milestones-grid,
.hc-earned-list {
    display: grid;
    gap: 1rem;
}

.hc-dashboard-milestones__latest {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 1rem;
}

.hc-dashboard-milestones__latest-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.hc-progress-card,
.hc-milestone-card,
.hc-earned-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: var(--bs-body-bg, #fff);
}

.hc-progress-card,
.hc-milestone-card {
    padding: 1rem;
}

.hc-progress-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hc-progress-card--compact {
    gap: 0.65rem;
}

.hc-progress-card__head,
.hc-milestone-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.hc-progress-card__title,
.hc-milestone-card__name,
.hc-earned-item__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.hc-progress-card__name {
    font-weight: 600;
}

.hc-milestone-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.hc-milestone-card__desc {
    margin-top: 0.35rem;
    opacity: 0.8;
}

.hc-milestone-meta,
.hc-progress-meta {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.hc-milestone-meta__item,
.hc-progress-meta > div {
    min-width: 0;
}

.hc-milestone-meta__item--wide {
    grid-column: 1 / -1;
}

.hc-progress-meta--compact {
    gap: 0.5rem;
}

.hc-progress-track {
    width: 100%;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hc-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.45);
}

.hc-earned-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
}

.hc-earned-item__main {
    min-width: 0;
    flex: 1 1 260px;
}

.hc-earned-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.92rem;
    opacity: 0.78;
}

.hc-avatar--dashboard,
.hc-avatar-ph--dashboard {
    width: 112px;
    height: 112px;
}

.hc-avatar-ph--dashboard {
    font-size: 2.25rem;
}

.hc-dashboard-stats-grid {
    display: grid;
    gap: 1rem;
}

.hc-dashboard-stats-panel .hc-panel__body {
    padding: 1rem;
}

.hc-dashboard-event-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.hc-dashboard-event-info {
    min-width: 0;
}

.hc-dashboard-event-badge {
    justify-self: end;
    flex-shrink: 0;
}

@media (max-width: 1180px) {
    .hc-dashboard-event-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hc-dashboard-event-badge {
        grid-column: 2;
        justify-self: start;
        margin-top: 0.15rem;
    }
}

@media (min-width: 768px) {
    .hc-dashboard-milestones__grid,
    .hc-milestones-progress-grid,
    .hc-milestones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .hc-dashboard-layout__profile,
    .hc-dashboard-layout__upcoming,
    .hc-dashboard-layout__milestones,
    .hc-dashboard-layout__history {
        grid-column: 1;
    }

    .hc-dashboard-layout__stats {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 640px) {
    .hc-earned-item {
        flex-direction: column;
    }
}

/* Profile Edit */
.hc-profileedit {
    max-width: none;
}

.hc-photo-stack {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hc-profileedit-layout__photo,
.hc-profileedit-layout__emergency,
.hc-profileedit-layout__moto,
.hc-profileedit-layout__shirt,
.hc-profileedit-layout__actions {
    min-width: 0;
}

@media (min-width: 992px) {
    .hc-profileedit-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
    }

    .hc-profileedit-layout__photo {
        grid-column: 1;
        grid-row: 1;
    }

    .hc-profileedit-layout__shirt {
        grid-column: 2;
        grid-row: 1;
    }

    .hc-profileedit-layout__emergency {
        grid-column: 1;
        grid-row: 2;
    }

    .hc-profileedit-layout__moto {
        grid-column: 1;
        grid-row: 3;
    }

    .hc-profileedit-layout__actions {
        grid-column: 1;
        grid-row: 4;
    }
}

/* Events list */

.hc-events {
    margin-top: 0.25rem;
}

.hc-events-headtools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.hc-events-viewcontrols {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hc-events-toolbtn {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    width: 2.625rem;
    min-width: 2.625rem;
    height: 2.625rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(var(--hc-primary-rgb), 0.38);
    border-radius: 0.75rem;
    background: rgba(127, 127, 127, 0.08);
    color: var(--hc-primary);
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.hc-events-toolbtn:hover,
.hc-events-toolbtn:focus-visible {
    background: rgba(var(--hc-primary-rgb), 0.08);
    border-color: rgba(var(--hc-primary-rgb), 0.62);
    color: var(--hc-primary);
    text-decoration: none;
}

.hc-events-toolbtn:focus-visible {
    outline: 2px solid rgba(var(--hc-primary-rgb), 0.18);
    outline-offset: 0;
}

.hc-events-toolbtn.is-active,
.hc-events-toolbtn[aria-expanded="true"] {
    background: rgba(var(--hc-primary-rgb), 0.10);
    box-shadow: 0 0 0 0.18rem rgba(var(--hc-primary-rgb), 0.18);
}

.hc-events[data-view-mode="auto"] .hc-events-viewcontrol--list {
    background: rgba(var(--hc-primary-rgb), 0.10);
    box-shadow: 0 0 0 0.18rem rgba(var(--hc-primary-rgb), 0.18);
}

@media (min-width: 768px) {
    .hc-events[data-view-mode="auto"] .hc-events-viewcontrol--list {
        background: rgba(127, 127, 127, 0.08);
        box-shadow: none;
    }

    .hc-events[data-view-mode="auto"] .hc-events-viewcontrol--cards {
        background: rgba(var(--hc-primary-rgb), 0.10);
        box-shadow: 0 0 0 0.18rem rgba(var(--hc-primary-rgb), 0.18);
    }
}

.hc-events-icon {
    width: 1rem;
    height: 1rem;
    display: grid;
    place-items: center;
    color: currentColor;
    position: relative;
    flex: 0 0 auto;
    pointer-events: none;
}

.hc-events-icon span {
    display: block;
}

.hc-events-icon--cards {
    width: 0.95rem;
    height: 0.95rem;
    grid-template-columns: repeat(2, 0.36rem);
    grid-template-rows: repeat(2, 0.36rem);
    gap: 0.12rem;
    align-content: center;
    justify-content: center;
}

.hc-events-icon--cards span {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 0.08rem;
    background: currentColor;
}

.hc-events-icon--list {
    width: 1rem;
    height: 0.9rem;
    grid-template-rows: repeat(3, 0.14rem);
    gap: 0.14rem;
    align-content: center;
    justify-content: center;
}

.hc-events-icon--list span {
    width: 1rem;
    height: 0.14rem;
    border-radius: 999px;
    background: currentColor;
}

.hc-events-icon--filter::before {
    content: '';
    display: block;
    width: 0.95rem;
    height: 0.95rem;
    background: currentColor;
    clip-path: polygon(0 10%, 100% 10%, 62% 46%, 62% 92%, 38% 75%, 38% 46%);
}

.hc-events-toolbar {
    margin: -0.15rem 0 1rem;
}

.hc-events-toolbar[hidden] {
    display: none !important;
}

.hc-events-toolbar__body {
    padding: 0.9rem 1rem;
}

.hc-events-filters {
    display: flex;
    flex-direction: column;
}

.hc-events-filters__compact {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.8rem 0.9rem;
    align-items: end;
}

.hc-events-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    grid-column: span 12;
}

.hc-events-field--search {
    grid-column: span 12;
}

.hc-events-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    grid-column: span 12;
}

@media (min-width: 768px) {
    .hc-events-field--search {
        grid-column: span 12;
    }

    .hc-events-filters__compact > .hc-events-field:not(.hc-events-field--search) {
        grid-column: span 4;
    }

    .hc-events-filter-actions {
        justify-content: flex-end;
    }
}

@media (min-width: 1100px) {
    .hc-events-field--search {
        grid-column: span 4;
    }

    .hc-events-filters__compact > .hc-events-field:not(.hc-events-field--search) {
        grid-column: span 2;
    }

    .hc-events-filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
        align-self: end;
    }
}

.hc-events-results[data-view="cards"] .hc-events-list,
.hc-events-results[data-view="list"] .hc-events-grid {
    display: none;
}

.hc-events-results[data-view="auto"] .hc-events-grid {
    display: none;
}

.hc-events-results[data-view="auto"] .hc-events-list {
    display: flex;
}

@media (min-width: 768px) {
    .hc-events-results[data-view="auto"] .hc-events-list {
        display: none;
    }

    .hc-events-results[data-view="auto"] .hc-events-grid {
        display: grid;
    }
}

.hc-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

@media (min-width: 540px) {
    .hc-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .hc-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hc-event-card {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hc-event-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.hc-event-card.hc-cancelled,
.hc-event-row.hc-cancelled {
    opacity: 0.65;
}

.hc-event-card-body {
    padding: 0.9rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hc-event-card-head {
    display: grid;
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 0.95rem;
    align-items: stretch;
}

.hc-event-card-rail {
    width: 5.6rem;
    min-width: 5.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.hc-event-card-badges {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.hc-event-card-badges .hc-badge {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.1;
}

@media (max-width: 575.98px) {
    .hc-event-card-head {
        grid-template-columns: 5.15rem minmax(0, 1fr);
        gap: 0.8rem;
    }

    .hc-event-card-rail {
        width: 5.15rem;
        min-width: 5.15rem;
    }

    .hc-event-card-badges .hc-badge {
        font-size: 0.65rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
}

.hc-event-card__date {
    width: 4.75rem;
    min-height: 4.75rem;
    margin-top: auto;
    margin-bottom: auto;
    flex: 0 0 auto;
}

.hc-event-card-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.hc-event-card-body p {
    margin: 0;
}

.hc-event-card-title {
    margin: 0;
}

.hc-event-card-loc {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.hc-event-card-loc__line {
    display: block;
}

.hc-event-card-foot {
    padding: 0.55rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hc-event-card-crew {
    font-weight: 600;
}

.hc-event-card-miles {
    white-space: nowrap;
}

.hc-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hc-event-row {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    color: inherit;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hc-event-row:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.hc-event-row__date {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 4.75rem;
    min-height: 4.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    text-align: center;
    gap: 0.1rem;
}

.hc-event-row__month,
.hc-event-row__weekday {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.72;
}

.hc-event-row__day {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.hc-event-row__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hc-event-row__title {
    margin: 0;
    font-size: 1.1rem;
}

.hc-event-row__meta,
.hc-event-row__submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    font-size: 0.95rem;
    opacity: 0.82;
}

.hc-event-row__crew {
    font-weight: 600;
}

.hc-badge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

@media (min-width: 768px) {
    .hc-event-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .hc-events-headtools {
        width: 100%;
        justify-content: flex-start;
    }

    .hc-events-filter-actions {
        width: 100%;
    }
}

/* Event detail */
.hc-event-page {
    margin-top: 0.25rem;
}

@media (min-width: 992px) {
    .hc-event-layout__overview,
    .hc-event-layout__route,
    .hc-event-layout__organizers,
    .hc-event-layout__riders {
        grid-column: 1;
    }

    .hc-event-layout__aside {
        grid-column: 2;
        grid-row: 1 / span 4;
    }
}

.hc-event-status-banner {
    margin: 0.75rem 0 1rem;
}

.hc-event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.hc-event-titleblock {
    flex: 1 1 320px;
    min-width: 0;
}

.hc-event-title {
    margin: 0;
}

.hc-event-destination {
    opacity: 0.72;
    margin-top: 0.25rem;
}

.hc-event-rsvp {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}

.hc-event-rsvp .hc-trip-header-actions__primary {
    justify-content: flex-end;
}

.hc-event-rsvp .hc-trip-header-actions__meta {
    justify-content: flex-end;
}

.hc-rsvp-meta {
    font-size: 0.95rem;
    opacity: 0.74;
    margin-top: 0;
}

.hc-rsvp-alert,
.hc-rsvp-form {
    margin: 0;
}

.hc-rsvp-form {
    display: inline-flex;
}

.hc-detail-section {
    padding-top: 1rem;
}

.hc-event-panels {
    position: relative;
}

.hc-detail-desc,
.hc-detail-map {
    min-width: 0;
}

.hc-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .hc-event-header,
    .hc-event-panels {
        padding-right: 332px;
    }

    .hc-detail-sidebar {
        position: absolute;
        top: -5.2rem;
        right: 10px;
        width: 300px;
    }
}

.hc-sidebar-card {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 1rem;
    background: var(--bs-body-bg, #fff);
}

.hc-sidebar-row {
    margin-bottom: 0.95rem;
}

.hc-sidebar-row:last-child {
    margin-bottom: 0;
}

.hc-sidebar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hc-ksu-map {
    margin-top: 0.75rem;
}

.hc-sidebar-map {
    width: 100%;
    height: 190px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    display: block;
}

.hc-map-link {
    margin-top: 0.3rem;
    font-size: 0.82rem;
}

.hc-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .hc-event-layout__trip-parent,
    .hc-event-layout__trip,
    .hc-event-layout__volunteer,
    .hc-event-layout__route,
    .hc-event-layout__organizers,
    .hc-event-layout__riders {
        grid-column: 1;
    }
}

.hc-trip-booking-grid,
.hc-volunteer-role-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem 0.9rem;
}

.hc-trip-status-form {
    max-width: 34rem;
}

.hc-trip-itinerary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hc-trip-itinerary__item,
.hc-volunteer-role-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(127, 127, 127, 0.06);
}

.hc-trip-itinerary__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    align-items: start;
}

.hc-trip-itinerary__date {
    min-width: 4.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(var(--hc-primary-rgb), 0.08);
    color: var(--hc-primary);
    font-weight: 700;
    text-align: center;
}

.hc-trip-itinerary__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hc-volunteer-role-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.hc-volunteer-role-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
}

.hc-volunteer-role-card__title {
    margin: 0;
    font-size: 1rem;
}

.hc-volunteer-role-card__actions {
    margin: 0;
    display: flex;
    justify-content: flex-start;
}


.hc-volunteer-role-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.hc-volunteer-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(var(--hc-primary-rgb), 0.06);
}

.hc-volunteer-summary__label,
.hc-volunteer-board__section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.72;
}

.hc-volunteer-summary__title,
.hc-volunteer-board__role-title {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    font-weight: 700;
}

.hc-volunteer-summary__meta,
.hc-volunteer-member__meta,
.hc-volunteer-board__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.hc-volunteer-board {
    gap: 1rem;
}

.hc-volunteer-board__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.hc-volunteer-board__role {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(127, 127, 127, 0.04);
}

.hc-volunteer-board__role-header,
.hc-volunteer-member,
.hc-volunteer-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
}

.hc-volunteer-board__section,
.hc-volunteer-board__footer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hc-volunteer-board__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hc-volunteer-member {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: var(--bs-body-bg, #fff);
}

.hc-volunteer-member__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hc-volunteer-member__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.hc-volunteer-form-inline {
    width: 100%;
}

.hc-volunteer-form-inline select {
    min-width: 0;
    flex: 1 1 10rem;
}

.hc-volunteer-form-inline--compact {
    justify-content: flex-start;
}

.hc-volunteer-form-inline--compact button {
    margin-left: auto;
}

.hc-volunteer-board__empty {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.94rem;
}

@media (min-width: 768px) {
    .hc-volunteer-member__actions {
        width: auto;
        min-width: 18rem;
    }
}

.hc-map-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.68;
    margin-bottom: 0.4rem;
}

.hc-map-gpx {
    width: 100%;
    height: 400px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.hc-detail-officers .hc-officer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 540px) {
    .hc-detail-officers .hc-officer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hc-detail-officers .hc-officer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.75rem;
    background: var(--bs-body-bg, #fff);
}

.hc-detail-officers .hc-officer-photo,
.hc-detail-officers .hc-officer-photo-ph {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.hc-detail-officers .hc-officer-photo {
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.hc-detail-officers .hc-officer-photo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    font-size: 1.5rem;
}

.hc-detail-officers .hc-officer-text {
    min-width: 0;
}

/* Event description toggle */
.hc-desc {
    position: relative;
}

.hc-desc.hc-desc-collapsed {
    overflow: hidden;
    max-height: 3.6em;
    transition: max-height 0.25s ease;
}

.hc-desc.hc-desc-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.2em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.hc-desc.hc-desc-expanded {
    max-height: 2000px;
}

.hc-desc-toggle {
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    background: transparent;
    font: inherit;
    margin-top: 0.35rem;
}

.hc-desc-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Event detail: inline Who's Riding */
.hc-event-riders-section {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .hc-event-riders-section {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
}

.hc-event-riders-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.hc-rider-summary {
    margin-bottom: 0;
}

.hc-event-riders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .hc-event-riders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .hc-event-riders-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hc-event-rider-card {
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 1rem 0.9rem;
    background: var(--bs-body-bg, #fff);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hc-event-rider-avatar-wrap {
    flex: 0 0 auto;
}

.hc-event-rider-avatar,
.hc-event-rider-avatar-ph {
    width: 88px;
    height: 88px;
    max-width: 88px;
    max-height: 88px;
    min-width: 88px;
    min-height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

.hc-event-rider-avatar-ph {
    background: rgba(0, 0, 0, 0.05);
    font-size: 1.35rem;
}

.hc-event-rider-name {
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hc-event-rider-badges {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

/* RC check-in */
.hc-rc-page {
    margin-top: 0.25rem;
    padding-bottom: 196px;
}

.hc-rc-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hc-rc-page-title {
    margin: 0;
}

.hc-rc-event-title {
    margin-top: 0.35rem;
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 0.72;
}

.hc-rc-event-meta {
    margin-top: 0.45rem;
    font-size: 0.98rem;
    opacity: 0.82;
}

.hc-rc-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "top"
        "sidebar"
        "bottom";
    gap: 1rem;
    align-items: start;
}

.hc-rc-main-top,
.hc-rc-main-bottom,
.hc-rc-sidebar,
.hc-rc-titleblock {
    min-width: 0;
}

.hc-rc-main-top {
    grid-area: top;
}

.hc-rc-main-bottom {
    grid-area: bottom;
}

.hc-rc-main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.hc-rc-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.hc-rc-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hc-rc-sidebar {
    grid-area: sidebar;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-self: start;
}

.hc-rc-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hc-rc-sidebar-stats {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hc-rc-sidebar-stat {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.hc-rc-sidebar-stat .hc-meta-label {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.hc-rc-stats-grid--top .hc-rc-sidebar-stat {
    height: 100%;
}

.hc-rc-stats-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hc-stat-plus {
    font-size: 1rem;
    opacity: 0.7;
}

.hc-rc-stats-grid--top {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 575px) {
    .hc-summary-stats-grid,
    .hc-rc-sidebar-stats,
    .hc-rc-stats-grid,
    .hc-trip-summary-grid,
    .hc-trip-summary-grid--secondary {
        grid-template-columns: 1fr;
    }
}

.hc-rc-toolbar {
    margin-top: 0.95rem;
    margin-bottom: 0;
}

.hc-rc-toolbar-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.hc-rc-toolbar-inline--centered {
    justify-content: center;
}

.hc-rc-status-buttons-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex: 1 1 auto;
    justify-content: center;
}

.hc-rc-status-form {
    margin: 0;
}

.hc-rc-status-button,
.hc-rc-toolbar-btn,
.hc-rc-back-btn {
    min-width: 10rem;
    min-height: 0;
    padding: 0.72rem 1.15rem;
    line-height: 1.2;
}

.hc-rc-status-button.is-active {
    box-shadow: 0 0 0 0.18rem rgba(var(--hc-primary-rgb), 0.18);
}

.hc-rc-toolbar-side {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hc-rc-banner {
    margin-bottom: 1rem;
}

.hc-rc-section,
.hc-rc-roster-section {
    margin-bottom: 1rem;
}

.hc-rc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hc-rc-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: rgba(127, 127, 127, 0.10);
}

.hc-rc-member-row,
.hc-rc-pick-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.hc-rc-avatar,
.hc-rc-avatar-ph,
.hc-rc-pick-avatar,
.hc-rc-pick-avatar-ph {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    flex: 0 0 56px;
}

.hc-rc-avatar-ph,
.hc-rc-pick-avatar-ph {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hc-rc-pick-main {
    min-width: 0;
}

.hc-rc-member-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hc-rc-member-mainline {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hc-rc-member-name {
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hc-rc-member-meta {
    font-size: 0.92rem;
    opacity: 0.8;
}

.hc-rc-flag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hc-rc-member-actions,
.hc-rc-pick-action-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.hc-rc-action-btn,
.hc-rc-pick-action {
    min-width: 9rem;
}

.hc-rc-empty {
    padding: 1rem 0;
    font-style: italic;
    opacity: 0.72;
}

.hc-rc-dock {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(0px, env(safe-area-inset-bottom));
    z-index: 500;
    padding: 0;
}

.hc-rc-dock-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.hc-rc-dock-inner > * {
    flex: 1 1 220px;
}

body.hc-rc-panel-open,
body.hc-rc-dialog-open {
    overflow: hidden;
}

.hc-rc-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.hc-rc-dialog-backdrop[hidden] {
    display: none !important;
}

.hc-rc-dialog-backdrop.is-open {
    opacity: 1;
}

.hc-rc-dialog {
    width: min(460px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--bs-body-bg, #fff);
    color: inherit;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    transform: translateY(12px);
    transition: transform 0.18s ease;
}

.hc-rc-dialog-backdrop.is-open .hc-rc-dialog {
    transform: translateY(0);
}

.hc-rc-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hc-rc-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.hc-rc-dialog__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.2rem;
    cursor: pointer;
}

.hc-rc-dialog__body {
    padding: 1rem;
}

.hc-rc-dialog__message {
    margin: 0;
    line-height: 1.55;
}

.hc-rc-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
    padding: 0 1rem 1rem;
}

.hc-dialog__btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-weight: 700;
    padding: 0.6rem 1rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hc-dialog__btn:hover,
.hc-dialog__btn:focus-visible,
.hc-rc-dialog__close:hover,
.hc-rc-dialog__close:focus-visible {
    background: rgba(127, 127, 127, 0.12);
    color: inherit;
    outline: none;
}

.hc-dialog__btn--confirm {
    background: var(--hc-primary);
    border-color: var(--hc-primary);
    color: #fff;
}

.hc-dialog__btn--confirm:hover,
.hc-dialog__btn--confirm:focus-visible {
    background: rgba(var(--hc-primary-rgb), 0.92);
    border-color: rgba(var(--hc-primary-rgb), 0.92);
    color: #fff;
}

.hc-rc-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.hc-rc-panel-backdrop.is-open {
    opacity: 1;
}

.hc-rc-panel {
    width: min(760px, 100%);
    max-height: min(86vh, 920px);
    overflow: hidden;
    border-radius: 16px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    transform: translateY(14px);
    transition: transform 0.18s ease;
}

.hc-rc-panel-backdrop.is-open .hc-rc-panel {
    transform: translateY(0);
}

.hc-rc-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hc-rc-panel-close {
    border: 0;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0.25rem;
    cursor: pointer;
}

.hc-rc-panel-body {
    padding: 1rem;
    overflow: auto;
    max-height: calc(86vh - 96px);
}

@media (min-width: 992px) {
    .hc-rc-shell {
        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-areas:
            "top sidebar"
            "bottom sidebar";
        column-gap: 1rem;
    }
}

@media (max-width: 767px) {
    .hc-event-rsvp,
    .hc-rc-header-actions,
    .hc-rc-status-buttons-inline,
    .hc-rc-toolbar-side,
    .hc-page__actions {
        width: 100%;
    }

    .hc-detail-sidebar,
    .hc-rc-sidebar {
        position: static;
        width: auto;
        margin-top: 0;
        right: auto;
        top: auto;
    }

    .hc-event-rsvp,
    .hc-rc-header-actions,
    .hc-page__actions {
        text-align: left;
        justify-content: flex-start;
        margin-left: 0;
    }

    .hc-rc-status-form,
    .hc-rc-status-button,
    .hc-rc-toolbar-btn {
        width: 100%;
        min-width: 0;
    }

    .hc-rc-action-btn,
    .hc-rc-pick-action {
        width: auto;
        min-width: 9rem;
    }

    .hc-rc-member-row,
    .hc-rc-pick-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .hc-rc-avatar,
    .hc-rc-avatar-ph,
    .hc-rc-pick-avatar,
    .hc-rc-pick-avatar-ph {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex-basis: 48px;
    }

    .hc-rc-member-actions,
    .hc-rc-pick-action-wrap {
        grid-column: 2;
        justify-content: flex-end;
        align-self: center;
        margin-top: 0.2rem;
    }

    .hc-event-riders-grid {
        grid-template-columns: 1fr;
    }

    .hc-event-rider-avatar,
    .hc-event-rider-avatar-ph {
        width: 72px !important;
        height: 72px !important;
        max-width: 72px !important;
        max-height: 72px !important;
        min-width: 72px !important;
        min-height: 72px !important;
        flex-basis: 72px;
    }
}


/* Check-in page */
.hc-checkin-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.hc-checkin-header {
    background: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hc-checkin-chapter {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hc-primary);
    margin-bottom: 0.5rem;
}

.hc-checkin-title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.hc-checkin-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
}

.hc-checkin-card {
    background: var(--hc-surface);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.hc-checkin-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.hc-checkin-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
}

.hc-checkin-card p {
    color: inherit;
    margin: 0.4rem 0;
}

.hc-checkin-sub {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.58);
}

.hc-checkin-hog {
    display: inline-block;
    background: var(--hc-primary);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

.hc-checkin-success {
    border-color: #2a7a2a;
    border-width: 2px;
}

.hc-checkin-success .hc-checkin-icon {
    color: #2a7a2a;
}

.hc-checkin-form {
    margin-top: 1.25rem;
}

.hc-btn-checkin {
    width: 100%;
}

.hc-checkin-event-preview {
    background: rgba(127, 127, 127, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.hc-checkin-roster {
    margin-top: 1rem;
}

.hc-checkin-roster h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.58);
    border-bottom: 2px solid rgba(var(--hc-primary-rgb), 0.45);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.hc-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.hc-roster-item {
    background: var(--hc-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.hc-roster-photo,
.hc-roster-photo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 0.4rem;
}

.hc-roster-photo {
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.12);
}

.hc-roster-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 127, 127, 0.12);
    font-size: 1.6rem;
}

.hc-roster-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.hc-roster-hog {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.58);
}

/* My RSVPs */
.hc-myrsvps-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hc-myrsvps-back {
    font-size: 0.85rem;
    opacity: 0.7;
}

.hc-myrsvps-title {
    margin: 0;
    font-size: 1.4rem;
}

.hc-myrsvps-empty {
    opacity: 0.6;
    font-style: italic;
    font-size: 0.9rem;
}

.hc-myrsvps-empty-gap {
    margin-bottom: 1.5rem;
}

.hc-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hc-event-list-past {
    opacity: 0.7;
}

.hc-event-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    color: inherit;
}

.hc-event-row:hover {
    border-color: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
}

.hc-date-cal {
    flex-shrink: 0;
    width: 42px;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.15);
    line-height: 1.2;
}

.hc-date-cal-mon {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 1px 0;
}

.hc-date-cal-day {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 2px 0;
}

.hc-event-info {
    flex: 1;
    min-width: 0;
}

.hc-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-event-title-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hc-event-loc {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1px;
}

.hc-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
}

.hc-event-actions {
    flex-shrink: 0;
    margin: 0;
}

.hc-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

/* Officers page */
.hc-officers-page {
    font-family: inherit;
}

.hc-officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hc-officers-page .hc-section-title {
    border-bottom: 3px solid rgba(var(--hc-primary-rgb), 0.45);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.hc-officers-page .hc-officer-card {
    background: var(--bs-body-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hc-officers-page .hc-officer-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.hc-officers-page .hc-officer-photo-wrap {
    background: transparent;
    padding: 0.85rem 1rem 0.45rem;
}

.hc-officers-page .hc-officer-photo,
.hc-officers-page .hc-officer-photo-placeholder {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hc-officers-page .hc-officer-photo {
    object-fit: cover;
    border: 3px solid rgba(var(--hc-primary-rgb), 0.72);
    background: var(--hc-surface);
}

.hc-officers-page .hc-officer-photo-placeholder {
    background: rgba(var(--hc-primary-rgb), 0.10);
    color: var(--hc-primary);
    font-size: 3rem;
    font-weight: 700;
    border: 3px solid rgba(var(--hc-primary-rgb), 0.18);
}

.hc-officers-page .hc-officer-info {
    padding: 0.85rem 1rem 1.1rem;
}

.hc-officers-page .hc-officer-role {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-primary);
    margin-bottom: 0.3rem;
}

.hc-officers-page .hc-officer-name {
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
}

.hc-officers-page .hc-officer-term {
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.58);
    margin-top: 0.3rem;
}

.hc-officers-page .hc-empty {
    background: rgba(127, 127, 127, 0.06);
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: inherit;
}

.hc-historical-section {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    background: var(--hc-surface);
}

.hc-historical-toggle {
    list-style: none;
    padding: 0.85rem 1.25rem;
    background: rgba(127, 127, 127, 0.08);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
}

.hc-historical-toggle::-webkit-details-marker {
    display: none;
}

.hc-historical-toggle::before {
    content: '';
    font-size: 0.7rem;
    color: var(--hc-primary);
    transition: transform 0.2s;
}

details[open] .hc-historical-toggle::before {
    transform: rotate(90deg);
}

.hc-historical-count {
    background: var(--hc-primary);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
}

.hc-historical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.hc-historical-table th {
    background: rgba(0, 0, 0, 0.04);
    color: inherit;
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.hc-historical-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hc-historical-table tr:last-child td {
    border-bottom: none;
}


.hc-rc-action-btn.is-busy,
.hc-rc-status-button.is-busy,
.hc-rc-toolbar-btn.is-busy,
.hc-rc-back-btn.is-busy,
.hc-rc-dock .btn.is-busy {
    opacity: 0.65;
    pointer-events: none;
}

/* Ride groups */
@media (min-width: 992px) {
    .hc-event-layout__groups,
    .hc-rc-layout__groups {
        grid-column: 1;
    }

    .hc-event-layout__aside {
        grid-row: 1 / span 5;
    }

    .hc-rc-layout__stats {
        grid-row: 1 / span 5;
    }
}

.hc-event-group-grid,
.hc-rc-groups-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hc-event-group-card,
.hc-rc-group-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    padding: 1rem;
}

.hc-event-group-card__head,
.hc-rc-group-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.hc-rc-group-card__head > div:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hc-event-group-card__title,
.hc-rc-group-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.hc-event-group-card__meta,
.hc-rc-group-readonly-meta {
    display: grid;
    gap: 0.45rem;
    font-size: 0.94rem;
}

.hc-event-group-card__members,
.hc-rc-group-members {
    margin-top: 0.9rem;
}

.hc-event-group-chip,
.hc-rc-group-members__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.88rem;
}

.hc-event-group-card__members,
.hc-rc-group-members__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hc-rc-groups-empty {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hc-rc-groups-create-form,
.hc-rc-group-add-form {
    margin: 0;
}

.hc-rc-groups-create-form__controls,
.hc-rc-group-assign__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.hc-rc-group-editor-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hc-rc-group-form-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hc-rc-group-assign {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hc-rc-group-assign__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.hc-rc-group-assign__meta,
.hc-event-submeta {
    font-size: 0.9rem;
    opacity: 0.78;
}

.hc-rc-group-select {
    min-width: 180px;
}

.hc-event-row--stacked {
    align-items: flex-start;
}

.hc-event-submeta {
    margin-top: 0.35rem;
}

@media (max-width: 991px) {
    .hc-rc-page {
        padding-bottom: 1.5rem;
    }

    .hc-rc-dock {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
    }

    .hc-rc-dock-inner {
        max-width: none;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .hc-rc-dialog__footer {
        justify-content: stretch;
    }

    .hc-dialog__btn {
        flex: 1 1 100%;
    }

    .hc-rc-groups-create-form__controls,
    .hc-rc-group-assign__form {
        align-items: stretch;
    }

    .hc-rc-group-select,
    .hc-rc-group-assign__form .hc-btn,
    .hc-rc-groups-create-form__controls .hc-btn {
        width: 100%;
        min-width: 0;
    }
}

.hc-trip-page .hc-page__main,
.hc-trip-page .hc-page__aside {
    min-width: 0;
}

.hc-trip-summary-grid,
.hc-trip-planning-grid,
.hc-trip-itinerary-cards {
    display: grid;
    gap: 0.9rem;
}

.hc-trip-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hc-trip-summary-grid--secondary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hc-trip-planning-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hc-trip-detail-card,
.hc-trip-itinerary-card,
.hc-trip-participants-group,
.hc-trip-visibility-list,
.hc-trip-participant-chip {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(127, 127, 127, 0.06);
}

.hc-trip-detail-card,
.hc-trip-participants-group {
    padding: 1rem;
}

.hc-trip-detail-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hc-trip-detail-card__title,
.hc-trip-day__title,
.hc-trip-participants-group__title,
.hc-trip-itinerary-card__title {
    margin: 0;
}

.hc-trip-day {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hc-trip-day__head,
.hc-trip-itinerary-card__head,
.hc-trip-participants-group__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.hc-trip-itinerary-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hc-trip-itinerary-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.hc-trip-itinerary-card__badges,
.hc-trip-participant-chip__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hc-trip-itinerary-card__meta,
.hc-trip-visibility-list,
.hc-trip-participants-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hc-trip-itinerary-card__meta {
    color: inherit;
    font-size: 0.95rem;
}

.hc-trip-participants-group,
.hc-trip-visibility-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hc-trip-participant-chip {
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hc-trip-page__aside .hc-panel__body {
    gap: 0.85rem;
}

@media (max-width: 991.98px) {
    .hc-trip-page .hc-page__aside {
        order: 2;
    }
}


.hc-trip-header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.hc-trip-header-actions__primary,
.hc-trip-header-actions__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.hc-trip-header-actions__meta .hc-rsvp-meta {
    margin-top: 0;
}

@media (max-width: 767px) {
    .hc-trip-header-actions,
    .hc-trip-header-actions__primary,
    .hc-trip-header-actions__meta {
        align-items: flex-start;
        justify-content: flex-start;
    }
}


.hc-volunteer-page .hc-page__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hc-volunteer-summary-grid {
    align-items: stretch;
}

.hc-volunteer-board-panel .hc-panel__body {
    gap: 1rem;
}
