:root {
    --mhb-primary: #003366;
    --mhb-accent: #ffc300;
    --mhb-secondary: #ffffff;
    --mhb-warm: #ff6600;
    --mhb-cool: #0099cc;
    --mhb-success: #16853f;
    --mhb-danger: #c62828;
    --mhb-border: #d7e0e8;
    --mhb-text: #17212b;
}

[hidden] {
    display: none !important;
}

.mhb-admin,
.mhb-public-status,
.mhb-form-shell {
    color: var(--mhb-text);
}

.mhb-admin {
    display: flex;
    flex-direction: column;
}

.mhb-admin-tools-section--automation {
    order: 10;
}

.mhb-admin-tools-section--bans {
    order: 20;
}

.mhb-admin-tools-section--rate-limits {
    order: 30;
}

.mhb-admin-tools-section--cancel-email {
    order: 40;
}

.mhb-admin-tools-section--cancel-date {
    order: 50;
}

.mhb-public-status,
.mhb-form-shell {
    border: 1px solid var(--mhb-border);
    border-top: 6px solid var(--mhb-accent);
    border-radius: 12px;
    background: var(--mhb-secondary);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.1);
    padding: clamp(20px, 4vw, 36px);
}

.mhb-public-status__header h2,
.mhb-panel h2,
.mhb-form-shell h1,
.mhb-form-shell h2 {
    color: var(--mhb-primary);
    margin-top: 0;
}

.mhb-eyebrow {
    color: var(--mhb-cool);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mhb-panel {
    background: var(--mhb-secondary);
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    margin: 20px 0;
    max-width: 1000px;
    padding: 24px;
}

.mhb-admin-form {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.mhb-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mhb-admin-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-right: 8px;
    padding: 4px 10px;
    text-transform: uppercase;
}

.mhb-admin-status--ok {
    background: #e8f7ee;
    border: 1px solid var(--mhb-success);
    color: var(--mhb-success);
}

.mhb-admin-status--warning {
    background: #fff8dc;
    border: 1px solid #d99b00;
    color: #6b4d00;
}

.mhb-admin-status--danger {
    background: #fdeaea;
    border: 1px solid var(--mhb-danger);
    color: var(--mhb-danger);
}

.mhb-copy-source {
    height: 1px;
    left: -9999px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.mhb-status-row {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.mhb-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 20px;
}

.mhb-card {
    background: #f8fafc;
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    padding: 20px;
}

.mhb-card--count {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.mhb-card__number {
    color: var(--mhb-primary);
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.mhb-badge {
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    padding: 8px 14px;
}

.mhb-badge--ok {
    color: var(--mhb-success);
}

.mhb-badge--error {
    color: var(--mhb-danger);
}

.mhb-notice {
    border-left: 5px solid;
    border-radius: 4px;
    margin: 20px 0;
    padding: 16px;
}

.mhb-notice--ok {
    background: #effaf3;
    border-color: var(--mhb-success);
}

.mhb-notice--error {
    background: #fff2f2;
    border-color: var(--mhb-danger);
}

.mhb-first-time-box {
    background: #effaf3;
    border: 1px solid #b7e2c4;
    border-left: 6px solid var(--mhb-success);
    border-radius: 12px;
    color: var(--mhb-text);
    margin: 24px auto 0;
    max-width: 980px;
    padding: 18px 22px;
}

.mhb-first-time-box h2 {
    color: var(--mhb-success);
    margin: 0 0 10px;
}

.mhb-first-time-box ul {
    margin-bottom: 0;
    margin-top: 0;
}

.mhb-security-snippet {
    max-height: 140px;
    max-width: 340px;
    overflow: auto;
    white-space: pre-wrap;
}

.mhb-form {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.mhb-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mhb-field--wide {
    grid-column: 1 / -1;
}

.mhb-honeypot {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.mhb-field label {
    color: var(--mhb-primary);
    font-weight: 700;
}

.mhb-field input,
.mhb-field select,
.mhb-field textarea {
    background: #ffffff;
    border: 2px solid var(--mhb-border);
    border-radius: 7px;
    box-sizing: border-box;
    color: var(--mhb-text);
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.mhb-field input:focus,
.mhb-field select:focus,
.mhb-field textarea:focus {
    border-color: var(--mhb-cool);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.2);
    outline: none;
}

.mhb-check {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.mhb-check input {
    min-height: auto;
    width: auto;
}

.mhb-check--top {
    align-items: flex-start;
}

.mhb-check--top input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.mhb-reactivation-date-list {
    display: grid;
    gap: 10px;
}

.mhb-reactivation-date-row {
    align-items: flex-start;
    background: #f5f8fb;
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    display: flex;
    padding: 10px 12px;
    width: 100%;
}

.mhb-cancellable-date {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
}

.mhb-cancellable-date > span:not(.mhb-date-event-edit) {
    display: grid;
    gap: 4px;
}

.mhb-date-event-edit {
    grid-column: 2;
}

.mhb-date-event-edit label {
    display: grid;
    gap: 5px;
}

.mhb-date-event-edit input {
    max-width: 420px;
}

.mhb-option-row {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.mhb-page-logo {
    display: block;
    height: var(--mhb-logo-height-large, 66px);
    margin: 0 auto 18px;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    width: auto;
}

.mhb-page-logo--hero {
    background: #ffffff;
    border-radius: 12px !important;
    box-sizing: border-box;
    height: min(var(--mhb-logo-height-large, 66px), 64px);
    padding: 6px;
}

.elementor img.mhb-page-logo,
.elementor img.mhb-page-logo--hero {
    border-radius: 12px !important;
}

.mhb-consent {
    background: #f8fafc;
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    padding: 18px;
}

.mhb-consent .mhb-check {
    color: var(--mhb-text);
    font-weight: 400;
    line-height: 1.55;
}

.mhb-field-help {
    color: #52606d;
    display: block;
    min-height: 1.4em;
}

.mhb-field-help--error {
    color: var(--mhb-danger);
    font-weight: 700;
}

.mhb-field-help--success {
    background: #effaf3;
    border: 1px solid var(--mhb-success);
    border-radius: 8px;
    color: #14532d;
    font-weight: 700;
    padding: 10px 12px;
}

.mhb-time-selector {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    max-width: 360px;
}

.mhb-time-selector label {
    display: grid;
    gap: 5px;
}

.mhb-time-selector__separator {
    color: var(--mhb-primary);
    font-size: 1.6rem;
    font-weight: 900;
    padding-bottom: 8px;
}

.mhb-button {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    line-height: 1.25;
    min-height: 50px;
    padding: 12px 22px;
    text-align: center;
}

.mhb-button__icon {
    display: inline-block;
    flex: 0 0 auto;
    height: auto;
    max-height: 22px;
    max-width: 22px;
    object-fit: contain;
    vertical-align: middle;
    width: auto;
}

.mhb-button--primary {
    background: var(--mhb-primary);
    border: 3px solid var(--mhb-cool);
    color: var(--mhb-secondary);
}

.mhb-button--primary:hover,
.mhb-button--primary:focus {
    background: #00284f;
    color: var(--mhb-secondary);
}

.mhb-button--danger {
    background: #c62828;
    border: 3px solid #111111;
    color: #ffffff;
}

.mhb-button--danger:hover,
.mhb-button--danger:focus {
    background: #9f1f1f;
    color: #ffffff;
}

.mhb-button--warning {
    background: var(--mhb-accent);
    border: 3px solid #111111;
    color: #111111;
}

.mhb-button--warning:hover,
.mhb-button--warning:focus {
    background: #e6af00;
    color: #111111;
}

.mhb-button--large {
    font-size: 1.15rem;
    margin-top: 20px;
    min-height: 58px;
    width: 100%;
}

.mhb-button--disabled {
    background: #e8edf2;
    border: 2px solid #b5c0ca;
    color: #52606d;
    cursor: not-allowed;
}

.mhb-organizer-tools {
    display: grid;
    grid-template-columns: repeat(var(--mhb-organizer-tools-large-columns, 3), minmax(0, 1fr));
    gap: 12px;
    justify-items: center;
}

.mhb-organizer-tools .mhb-button {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 52px;
    text-align: center;
    width: 100%;
}

.mhb-organizer-tools .mhb-button__icon {
    margin-bottom: 4px;
}

.mhb-current-filter {
    color: #52606d;
    font-weight: 700;
    margin-left: 4px;
}

.mhb-organizer-tools a,
.mhb-button {
    text-decoration: none !important;
}

.mhb-field-required {
    color: #c62828;
    font-size: 1.1em;
    font-weight: 800;
    margin-left: 2px;
}

.mhb-time-warning {
    color: var(--mhb-danger);
    font-weight: 700;
}

.mhb-event-title-card {
    background: #e9f8ef;
    border-left: 5px solid #168a3a;
    border-radius: 8px;
    color: var(--mhb-primary);
    font-weight: 700;
    margin-top: 10px;
    padding: 10px 12px;
}

.mhb-place-date-filter {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mhb-place-date-filter input,
.mhb-place-date-filter select {
    width: 100%;
}

.mhb-admin-filter {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.mhb-admin-collapsible {
    margin-top: 16px;
}

.mhb-settings-checks {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.mhb-settings-check-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    cursor: grab;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.mhb-settings-check-row.is-dragging {
    opacity: 0.55;
}

.mhb-settings-drag-handle {
    color: var(--mhb-primary);
    font-weight: 900;
}

.mhb-settings-check-label,
.mhb-settings-order-label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.mhb-settings-order-label {
    color: #52606d;
    font-size: 0.9rem;
}

.mhb-calendar-navigation {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mhb-calendar-navigation button {
    background: var(--mhb-primary);
    border: 2px solid var(--mhb-cool);
    border-radius: 7px;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 900;
    min-height: 42px;
    min-width: 48px;
}

.mhb-calendar-navigation button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.mhb-calendar-pair {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhb-calendar {
    border: 1px solid var(--mhb-border);
    border-radius: 10px;
    padding: 14px;
}

.mhb-calendar h3 {
    color: var(--mhb-primary);
    margin: 0 0 12px;
    text-align: center;
    text-transform: capitalize;
}

.mhb-calendar__grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mhb-calendar__weekday {
    color: #52606d;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px;
    text-align: center;
}

.mhb-calendar__day {
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1px solid var(--mhb-border);
    border-radius: 6px;
    color: var(--mhb-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-width: 0;
    padding: 3px;
}

.mhb-calendar__day:hover:not(:disabled),
.mhb-calendar__day:focus:not(:disabled) {
    border-color: var(--mhb-cool);
}

.mhb-calendar__day.is-holiday {
    background: #fff3a6;
    border-color: #ffc300;
    color: #111111;
}

.mhb-calendar__day.is-selected {
    background: var(--mhb-primary);
    border-color: var(--mhb-accent);
    color: #ffffff;
}

.mhb-calendar__day:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.mhb-inline-time-fields,
.mhb-selected-date {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mhb-inline-time-fields label {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.mhb-date-time-control {
    display: grid;
    gap: 6px;
}

.mhb-date-time-control > span {
    color: var(--mhb-primary);
    font-weight: 700;
}

.mhb-inline-generated-time {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}

.mhb-inline-generated-time select {
    min-width: 90px;
}

.mhb-selected-dates,
.mhb-cancellable-dates {
    display: grid;
    gap: 10px;
}

.mhb-selected-date,
.mhb-cancellable-date {
    background: #f8fafc;
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    padding: 12px;
}

.mhb-selected-date strong {
    flex: 1 1 260px;
    text-transform: capitalize;
}

.mhb-selected-date input {
    min-height: 42px;
    width: 132px;
}

.mhb-selected-date__remove {
    background: #ffffff;
    border: 1px solid var(--mhb-danger);
    border-radius: 6px;
    color: var(--mhb-danger);
    cursor: pointer;
    font-weight: 700;
    padding: 8px 12px;
}

.mhb-cancellable-date {
    align-items: flex-start;
}

.mhb-cancellable-date span {
    display: grid;
    gap: 3px;
}

.mhb-review-list {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

@media (max-width: 680px) {
    .mhb-calendar-pair {
        grid-template-columns: 1fr;
    }
}

.mhb-action-page {
    background: #f3f6f9;
    margin: 0;
}

.mhb-action-page__main {
    margin: 0 auto;
    max-width: 760px;
    padding: 40px 18px;
}

.mhb-summary {
    border-bottom: 1px solid var(--mhb-border);
    margin: 24px 0;
}

.mhb-summary > div {
    border-top: 1px solid var(--mhb-border);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    padding: 12px 0;
}

.mhb-summary dt {
    color: var(--mhb-primary);
    font-weight: 800;
}

.mhb-summary dd {
    margin: 0;
}

.mhb-home {
    color: var(--mhb-text);
    margin: 0 auto;
    max-width: 1180px;
}

.mhb-home__hero {
    background: var(--mhb-primary);
    border-bottom: 6px solid var(--mhb-accent);
    border-radius: 18px;
    color: var(--mhb-secondary);
    margin-bottom: 18px;
    overflow: hidden;
    padding: clamp(8px, 2vw, 16px);
    text-align: center;
}

.mhb-home__reserve-hint {
    background: #effaf3;
    border: 1px solid var(--mhb-success);
    border-radius: 10px;
    color: #14532d;
    font-weight: 800;
    margin: 0 0 18px;
    padding: 12px 14px;
    text-align: center;
}

.mhb-spam-reminder {
    color: #000000;
    font-weight: 900;
}

.mhb-home__hero h1 {
    color: var(--mhb-secondary);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    margin: 0 0 12px;
    max-width: 760px;
}

.mhb-home__hero p:last-child {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 0;
    max-width: 680px;
}

.mhb-organizer-rail {
    align-items: center;
    display: flex;
    gap: 8px;
    left: max(8px, calc((100vw - 1180px) / 2 - 110px));
    position: fixed;
    top: 42%;
    transform: translateX(calc(-100% + 46px));
    transition: transform 180ms ease;
    z-index: 20;
}

.mhb-organizer-rail.is-open,
.mhb-organizer-rail:focus-within {
    transform: translateX(0);
}

.mhb-organizer-rail__toggle {
    align-items: center;
    background: var(--mhb-success);
    border: 2px solid #14532d;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.mhb-organizer-rail__panel {
    background: #effaf3;
    border: 2px solid var(--mhb-success);
    border-radius: 12px;
    color: #14532d;
    display: grid;
    font-weight: 900;
    gap: 4px;
    line-height: 1.15;
    max-width: 150px;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none !important;
}

.mhb-accordion {
    display: grid;
    gap: 14px;
}

.mhb-accordion__section {
    background: var(--mhb-secondary);
    border: 1px solid var(--mhb-border);
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(0, 51, 102, 0.08);
    overflow: hidden;
}

.mhb-accordion__summary {
    align-items: center;
    background: var(--mhb-primary);
    color: var(--mhb-secondary);
    cursor: pointer;
    display: flex;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    min-height: 64px;
    padding: 14px 22px;
}

.mhb-accordion__summary::-webkit-details-marker {
    display: none;
}

.mhb-accordion__summary:focus-visible {
    box-shadow: inset 0 0 0 4px var(--mhb-accent);
    outline: none;
}

.mhb-accordion__indicator {
    border-bottom: 3px solid currentColor;
    border-right: 3px solid currentColor;
    height: 10px;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 180ms ease;
    width: 10px;
}

.mhb-accordion__section[open] .mhb-accordion__indicator {
    transform: rotate(225deg) translate(-2px, -2px);
}

.mhb-accordion__content {
    padding: clamp(20px, 4vw, 38px);
}

.mhb-catalog-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
}

.mhb-catalog-layout > .mhb-date-filters {
    display: none;
}

.mhb-date-filters {
    background: #f5f8fb;
    border: 1px solid var(--mhb-border);
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 20px;
}

.mhb-date-filters--standalone {
    display: block;
    position: static;
}

.mhb-date-filters--standalone .mhb-date-filter-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mhb-date-filters h3 {
    color: var(--mhb-primary);
    margin: 0 0 12px;
}

.mhb-date-filter-list {
    display: grid;
    gap: 8px;
}

.mhb-places-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.mhb-places-pagination span {
    color: #003366;
    font-weight: 800;
}

.mhb-date-filter-card {
    display: grid;
    gap: 8px;
    grid-template-rows: 1fr auto;
}

.mhb-date-filter {
    background: var(--mhb-secondary);
    border: 1px solid var(--mhb-border);
    border-radius: 8px;
    color: var(--mhb-text);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 2px;
    grid-template-columns: 22px minmax(0, 1fr);
    margin-bottom: 0;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.mhb-date-filter-card .mhb-date-filter {
    height: 100%;
    min-height: 112px;
}

.mhb-date-filter > :not(.mhb-date-filter__icon) {
    grid-column: 2;
}

.mhb-date-filter__icon {
    align-self: start;
    grid-row: 1 / span 3;
}

.mhb-date-filter__icon img {
    display: block;
    height: auto;
    max-height: 18px;
    max-width: 18px;
    width: auto;
}

.mhb-date-filter__badge {
    color: var(--mhb-warm);
    font-weight: 800;
}

.mhb-place-categories {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.mhb-place-categories--admin {
    justify-content: flex-start;
}

.mhb-place-category-icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    line-height: 1;
}

.mhb-place-category-icon img {
    display: block;
    height: auto;
    max-height: 22px;
    max-width: 22px;
    width: auto;
}

.mhb-date-filter:hover,
.mhb-date-filter:focus-visible,
.mhb-date-filter.is-active {
    border-color: var(--mhb-cool);
    box-shadow: 0 0 0 2px rgba(0, 153, 204, 0.18);
    outline: none;
}

.mhb-date-filter.is-active {
    background: var(--mhb-primary);
    color: var(--mhb-secondary);
}

.mhb-attendance-link {
    background: #effaf3;
    border: 2px solid var(--mhb-success);
    border-radius: 8px;
    color: var(--mhb-success);
    display: block;
    font-weight: 800;
    margin: 0;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none !important;
    width: 100%;
}

.mhb-attendance-link:hover,
.mhb-attendance-link:focus {
    background: var(--mhb-success);
    color: #ffffff;
    outline: none;
    text-decoration: none !important;
}

.mhb-label-with-help {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.mhb-help-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mhb-border);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.mhb-help-button img {
    display: block;
    height: auto;
    max-height: 18px;
    max-width: 18px;
    width: auto;
}

.mhb-help-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.25);
    outline: none;
}

.mhb-help-panel {
    background: #f5f8fb;
    border: 1px solid var(--mhb-border);
    border-radius: 10px;
    margin-top: 8px;
    padding: 12px 14px;
}

.mhb-help-panel p {
    margin: 4px 0 10px;
}

.mhb-hex-grid {
    --mhb-active-hex-size: var(--mhb-hex-large-size, 200px);
    --mhb-active-hex-gap: var(--mhb-hex-large-gap, 6px);
    --mhb-active-hex-overlap: var(--mhb-hex-large-overlap, 24px);
    --mhb-active-hex-vertical-gap: var(--mhb-hex-large-vertical-gap, 0px);
    --mhb-active-hex-columns: var(--mhb-hex-large-columns, 3);
    display: grid;
    column-gap: var(--mhb-active-hex-gap);
    grid-auto-rows: calc(var(--mhb-active-hex-size) * 0.44);
    grid-template-columns: repeat(
        var(--mhb-active-hex-columns),
        calc(var(--mhb-active-hex-size) - var(--mhb-active-hex-overlap))
    );
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
    padding-bottom: calc(var(--mhb-active-hex-size) * 0.44);
    row-gap: var(--mhb-active-hex-vertical-gap);
}

.mhb-hex-item {
    aspect-ratio: 1.12 / 1;
    grid-column: var(--mhb-column);
    grid-row: var(--mhb-row) / span 2;
    min-width: 0;
    padding: max(1px, calc(var(--mhb-active-hex-gap) / 4));
    width: var(--mhb-active-hex-size);
}

.mhb-hex-item:not(.mhb-hex-item--create) {
    left: calc(var(--mhb-active-hex-overlap) / -2);
    position: relative;
}

.mhb-hex-item--create {
    --mhb-column: 2;
    --mhb-row: 1;
}

.mhb-hex-item--more {
    --mhb-column: 1;
    --mhb-row: 8;
}

.mhb-hex {
    align-items: center;
    background: linear-gradient(145deg, var(--mhb-primary), #00558b);
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    color: var(--mhb-secondary);
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 20% 17%;
    position: relative;
    text-align: center;
    text-decoration: none !important;
    transition: filter 160ms ease, transform 160ms ease;
}

.mhb-hex::before {
    background: linear-gradient(180deg, rgba(0, 31, 61, 0.28), rgba(0, 31, 61, 0.9));
    content: "";
    inset: 0;
    position: absolute;
}

.mhb-hex:hover {
    color: var(--mhb-secondary);
    filter: saturate(1.12);
    text-decoration: none !important;
    transform: translateY(-5px);
}

.mhb-hex--game:hover,
.mhb-hex--game:focus-visible {
    background: var(--mhb-warm);
    background-image: none;
}

.mhb-hex:focus-visible {
    box-shadow: inset 0 0 0 7px var(--mhb-accent);
    outline: none;
    text-decoration: none !important;
}

.mhb-hex:visited,
.mhb-hex:active {
    color: var(--mhb-secondary);
    text-decoration: none !important;
}

.mhb-hex--image {
    background-image:
        linear-gradient(180deg, rgba(0, 31, 61, 0.1), rgba(0, 31, 61, 0.82)),
        var(--mhb-game-image);
    background-position: center;
    background-size: cover;
}

.mhb-hex--create {
    background: linear-gradient(145deg, #7c8792, #4a5560);
    flex-direction: column;
    gap: 18px;
}

.mhb-hex--more {
    background: linear-gradient(145deg, #f4f6f8, #d9e2ec);
    border: 0;
    color: var(--mhb-primary);
    cursor: pointer;
    flex-direction: column;
    font: inherit;
    gap: 10px;
    width: 100%;
}

.mhb-hex--more::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(0, 51, 102, 0.12));
}

.mhb-hex--more:hover,
.mhb-hex--more:focus-visible {
    color: var(--mhb-primary);
}

.mhb-hex__content,
.mhb-hex--create > *,
.mhb-hex--more > * {
    position: relative;
    z-index: 1;
}

.mhb-hex__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    width: 100%;
}

.mhb-hex__plus {
    font-size: clamp(3.4rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 0.65;
    text-decoration: none !important;
}

.mhb-hex__more {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 0.7;
    text-decoration: none !important;
}

.mhb-hex__title {
    display: -webkit-box;
    font-size: clamp(0.94rem, 1.65vw, 1.14rem);
    line-height: 1.08;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mhb-hex__meta {
    font-size: 0.76rem;
    line-height: 1.2;
}

.mhb-hex__seats {
    background: var(--mhb-accent);
    border-radius: 999px;
    color: var(--mhb-primary);
    font-size: 0.78rem;
    font-weight: 900;
    margin-top: 4px;
    padding: 4px 10px;
}

.mhb-hex__hover-label {
    display: none;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.mhb-hex--game:hover .mhb-hex__title,
.mhb-hex--game:hover .mhb-hex__meta,
.mhb-hex--game:hover .mhb-hex__seats,
.mhb-hex--game:focus-visible .mhb-hex__title,
.mhb-hex--game:focus-visible .mhb-hex__meta,
.mhb-hex--game:focus-visible .mhb-hex__seats {
    display: none;
}

.mhb-hex--game:hover .mhb-hex__hover-label,
.mhb-hex--game:focus-visible .mhb-hex__hover-label {
    display: block;
}

.mhb-home__empty {
    color: #52606d;
    margin: 24px 0 0;
    text-align: center;
}

.mhb-home__coming-soon {
    background: #f5f7f9;
    border: 2px dashed var(--mhb-border);
    border-radius: 10px;
    color: #52606d;
    padding: 24px;
    text-align: center;
}

.mhb-home__coming-soon p {
    margin-bottom: 0;
}

.mhb-action-help-button {
    align-items: center;
    background: var(--mhb-primary);
    border: 3px solid var(--mhb-cool);
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 31, 61, 0.24);
    cursor: pointer;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    left: 18px;
    padding: 0;
    position: fixed;
    width: 54px;
    z-index: 999;
}

.mhb-action-help-button img {
    display: block;
    height: auto;
    max-height: 24px;
    max-width: 24px;
    width: auto;
}

.mhb-action-help-button:hover,
.mhb-action-help-button:focus-visible {
    background: #00284f;
    outline: none;
}

.mhb-action-help-modal[hidden] {
    display: none;
}

.mhb-action-help-modal {
    inset: 0;
    position: fixed;
    z-index: 1000;
}

.mhb-action-help-modal__backdrop {
    background: rgba(0, 31, 61, 0.52);
    inset: 0;
    position: absolute;
}

.mhb-action-help-modal__panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 31, 61, 0.28);
    color: var(--mhb-text);
    left: 50%;
    max-width: min(92vw, 520px);
    padding: 28px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.mhb-action-help-modal__panel h2 {
    color: var(--mhb-primary);
    margin-top: 0;
}

.mhb-action-help-modal__close {
    background: transparent;
    border: 0;
    color: var(--mhb-primary);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 12px;
}

.mhb-action-help-modal__status {
    color: var(--mhb-primary);
    font-weight: 700;
    margin-bottom: 0;
}

.mhb-action-help-modal__status--success {
    background: #effaf3;
    border: 1px solid var(--mhb-success);
    border-radius: 8px;
    color: #14532d;
    padding: 10px 12px;
}

.mhb-action-help-modal__status--error {
    color: var(--mhb-danger);
}

.mhb-action-help-menu,
.mhb-city-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.mhb-action-help-menu .mhb-button,
.mhb-city-actions .mhb-button {
    justify-content: center;
}

.mhb-action-help-menu .mhb-help-tab {
    background: #ffffff;
    border: 2px solid var(--mhb-primary);
    color: var(--mhb-primary);
}

.mhb-action-help-menu .mhb-help-tab img {
    filter: brightness(0) saturate(100%) invert(17%) sepia(66%) saturate(1201%) hue-rotate(179deg) brightness(89%) contrast(103%);
}

.mhb-action-help-menu .mhb-help-tab.is-active {
    background: var(--mhb-primary);
    border-color: var(--mhb-cool);
    color: #ffffff;
}

.mhb-action-help-menu .mhb-help-tab.is-active img {
    filter: none;
}

.mhb-city-actions .mhb-button {
    flex: 1 1 220px;
    min-height: 48px;
}

.mhb-action-help-suggestions {
    border-top: 1px solid var(--mhb-border);
    margin-top: 16px;
    padding-top: 16px;
}

.mhb-action-help-suggestions .mhb-button {
    justify-content: center;
    width: 100%;
}

.mhb-action-help-panel {
    border-top: 1px solid var(--mhb-border);
    margin-top: 14px;
    padding-top: 14px;
}

.mhb-city-selection-required .mhb-action-help-menu,
.mhb-city-selection-required .mhb-action-help-suggestions,
.mhb-city-selection-required .mhb-action-help-modal__close {
    display: none;
}

.mhb-city-locked {
    filter: grayscale(0.85);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

.mhb-city-required-notice {
    background: #e9f8ef;
    border-left: 5px solid #168a3a;
    border-radius: 8px;
    color: #003366;
    margin: 0 auto 18px;
    max-width: 980px;
    padding: 16px;
}

.mhb-city-required-notice p {
    margin: 6px 0 12px;
}

.mhb-notice--warning {
    background: #fff8df;
    border: 1px solid #d99b00;
    color: #6b4900;
}

.mhb-notice--danger {
    background: #fff0f0;
    border: 2px solid #c62828;
    color: #8a1111;
}

.mhb-cancel-confirmation {
    background: #fff7f7;
    border: 1px solid #e2aaaa;
    border-radius: 8px;
    margin-top: 20px;
    padding: 16px;
}

.mhb-schedule-warning {
    margin-top: 10px;
    padding: 10px 12px;
}

.mhb-game-details {
    background: #f5f8fb;
    border: 1px solid var(--mhb-border);
    border-left: 5px solid var(--mhb-cool);
    border-radius: 8px;
    padding: 14px 16px;
}

.mhb-game-details > div {
    display: grid;
    gap: 3px;
    grid-template-columns: minmax(150px, 0.4fr) 1fr;
    line-height: 1.25;
    padding: 3px 0;
}

.mhb-game-details strong {
    color: var(--mhb-primary);
}

.mhb-settings-checks {
    display: grid;
    gap: 8px;
    margin: 12px 0 22px;
}

.mhb-inline-verification {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.mhb-button--secondary {
    background: var(--mhb-secondary);
    border-color: var(--mhb-cool);
    color: var(--mhb-primary);
}

.mhb-inline-verification input {
    flex: 1 1 190px;
}

.mhb-map-picker__map {
    border: 1px solid var(--mhb-border);
    border-radius: 10px;
    height: 360px;
    margin: 10px 0;
    overflow: hidden;
    width: 100%;
}

.mhb-map-picker__coordinates {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.mhb-duplicate-warning {
    background: #fff8df;
    border: 1px solid #d99b00;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
}

.mhb-duplicate-candidate {
    border-top: 1px solid #e5c76d;
    margin-top: 8px;
    padding-top: 8px;
}

.mhb-admin-tag {
    background: #e8f3fb;
    border: 1px solid #0099cc;
    border-radius: 999px;
    color: #003366;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    margin: 2px;
    padding: 2px 7px;
}

.mhb-place-row-actions {
    align-items: center;
    border-bottom: 1px solid var(--mhb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.mhb-organizer-row {
    align-items: center;
    border-bottom: 1px solid var(--mhb-border);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 7px 0;
}

.mhb-admin-collapsible {
    background: #fff;
    border: 1px solid var(--mhb-border);
    border-radius: 12px;
    margin: 16px 0 24px;
    padding: 0 14px 14px;
}

.mhb-admin-collapsible > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 0;
}

.mhb-admin-collapsible > summary h2 {
    margin: 0;
}

.mhb-admin-badge {
    background: var(--mhb-accent);
    border-radius: 999px;
    color: #003366;
    font-weight: 700;
    padding: 5px 10px;
}

.mhb-catalog-results {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(var(--mhb-organizer-tools-large-columns, 3), minmax(0, 1fr));
    margin-top: 8px;
}

.mhb-catalog-card {
    background: #fff;
    border: 1px solid var(--mhb-border);
    border-radius: 12px;
    color: #003366;
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    text-align: left;
}

.mhb-catalog-card:hover,
.mhb-catalog-card:focus {
    border-color: var(--mhb-cool);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.16);
    outline: none;
}

.mhb-catalog-card span {
    color: var(--mhb-warm);
    font-size: 0.85rem;
    font-weight: 700;
}

.mhb-catalog-card__official {
    color: #52606d;
    font-style: italic;
}

.mhb-catalog-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 4px;
}

.mhb-catalog-pagination span {
    color: #003366;
    font-weight: 700;
}

.mhb-bgg-attribution {
    align-items: center;
    display: inline-flex;
    margin-top: 8px;
    max-width: 180px;
    text-decoration: none !important;
}

.mhb-bgg-attribution img {
    display: block;
    height: auto;
    max-height: 32px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.mhb-selected-expansions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mhb-selected-chip {
    align-items: center;
    background: #eaf7fb;
    border: 1px solid var(--mhb-cool);
    border-radius: 999px;
    color: #003366;
    display: inline-flex;
    gap: 6px;
    padding: 6px 10px;
}

.mhb-selected-chip button {
    background: transparent;
    border: 0;
    color: #c62828;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 960px) {
    .mhb-page-logo {
        height: var(--mhb-logo-height-medium, 58px);
    }

    .mhb-page-logo--hero {
        height: min(var(--mhb-logo-height-medium, 58px), 56px);
    }

    .mhb-catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mhb-organizer-tools {
        grid-template-columns: repeat(var(--mhb-organizer-tools-medium-columns, 2), minmax(0, 1fr));
    }

    .mhb-catalog-results {
        grid-template-columns: repeat(var(--mhb-organizer-tools-medium-columns, 2), minmax(0, 1fr));
    }

    .mhb-hex-grid {
        --mhb-active-hex-size: var(--mhb-hex-medium-size, 170px);
        --mhb-active-hex-gap: var(--mhb-hex-medium-gap, 5px);
        --mhb-active-hex-overlap: var(--mhb-hex-medium-overlap, 20px);
        --mhb-active-hex-vertical-gap: var(--mhb-hex-medium-vertical-gap, 0px);
        --mhb-active-hex-columns: var(--mhb-hex-medium-columns, 3);
    }
}

@media (max-width: 600px) {
    .mhb-page-logo {
        height: var(--mhb-logo-height-small, 48px);
    }

    .mhb-page-logo--hero {
        height: min(var(--mhb-logo-height-small, 48px), 48px);
    }

    .mhb-public-status,
    .mhb-form-shell {
        border-radius: 8px;
    }

    .mhb-grid,
    .mhb-form {
        grid-template-columns: 1fr;
    }

    .mhb-organizer-tools {
        grid-template-columns: repeat(var(--mhb-organizer-tools-small-columns, 1), minmax(0, 1fr));
    }

    .mhb-catalog-results {
        grid-template-columns: repeat(var(--mhb-organizer-tools-small-columns, 1), minmax(0, 1fr));
    }

    .mhb-field--wide {
        grid-column: auto;
    }

    .mhb-option-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mhb-home__hero {
        border-radius: 10px;
    }

    .mhb-accordion__content {
        padding: 18px 12px;
    }

    .mhb-catalog-layout {
        display: flex;
        flex-direction: column;
    }

    .mhb-date-filters {
        position: static;
        width: 100%;
    }

    .mhb-date-filter-list {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 6px;
    }

    .mhb-date-filter-card {
        min-width: 0;
    }

    .mhb-date-filter-card .mhb-date-filter {
        min-height: 118px;
    }

    .mhb-date-filter,
    .mhb-attendance-link {
        min-width: 0;
    }

    .mhb-hex-grid {
        --mhb-active-hex-size: var(--mhb-hex-small-size, 145px);
        --mhb-active-hex-gap: var(--mhb-hex-small-gap, 4px);
        --mhb-active-hex-overlap: var(--mhb-hex-small-overlap, 0px);
        --mhb-active-hex-vertical-gap: var(--mhb-hex-small-vertical-gap, 0px);
        --mhb-active-hex-columns: var(--mhb-hex-small-columns, 2);
        display: grid;
        grid-auto-rows: calc(var(--mhb-active-hex-size) * 0.44);
        grid-template-columns: repeat(
            var(--mhb-active-hex-columns),
            calc(var(--mhb-active-hex-size) - var(--mhb-active-hex-overlap))
        );
        padding-bottom: calc(var(--mhb-active-hex-size) * 0.44);
        width: 100%;
    }

    .mhb-hex-item,
    .mhb-hex-item--create {
        aspect-ratio: 1.12 / 1;
        width: var(--mhb-active-hex-size);
    }

    .mhb-hex {
        padding: 21% 16%;
    }

    .mhb-hex__title {
        font-size: 0.84rem;
    }

    .mhb-hex__meta {
        font-size: 0.7rem;
    }

    .mhb-hex__seats {
        font-size: 0.68rem;
        padding: 3px 7px;
    }

    .mhb-game-details > div {
        grid-template-columns: 1fr;
    }

    .mhb-map-picker__coordinates {
        grid-template-columns: 1fr;
    }
}
