
.calendar-page {
    font-family: Roboto, Arial, sans-serif
}

.calendar-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px
}

.calendar-title-row h1 {
    margin: 0 0 6px
}

.calendar-admin {
    position: relative
}

.calendar-admin-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    font-size: 27px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    transition: .2s
}

.calendar-admin-toggle:hover, .calendar-admin-toggle[aria-expanded="true"] {
    background: #17b978;
    border-color: #17b978;
    color: #fff
}

.calendar-admin-menu {
    position: absolute;
    right: 0;
    top: 49px;
    z-index: 30;
    width: 225px;
    background: #fff;
    border: 1px solid #e4e4e4;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    padding: 8px 0
}

.calendar-admin-menu a {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    font-size: 14px
}

.calendar-admin-menu a:hover {
    background: #17b978;
    color: #fff
}

.calendar-admin-menu a span {
    width: 18px;
    text-align: center
}

.calendar-section-heading {
    border-left: 4px solid #17b978;
    padding-left: 13px;
    margin-bottom: 21px
}

.calendar-section-heading h2 {
    font: 500 22px Roboto, Arial, sans-serif;
    color: #222;
    margin: 0
}

.upcoming-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 20px
}

.upcoming-card {
    position: relative;
    min-height: 142px;
    border: 1px solid #e2e2e2;
    background: #fff;
    transition: .2s
}

.upcoming-card:hover {
    border-color: #b8dcca;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .07)
}

.upcoming-main {
    display: flex;
    min-height: 142px;
    color: #222;
    padding-right: 42px
}

.upcoming-date {
    width: 92px;
    flex: 0 0 92px;
    background: #f4f7f5;
    border-top: 4px solid #17b978;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.upcoming-date strong {
    font: 700 35px Roboto, Arial, sans-serif;
    line-height: 1;
    color: #222
}

.upcoming-date span {
    font: 700 13px Roboto, Arial, sans-serif;
    color: #17a66d;
    letter-spacing: .8px;
    margin-top: 5px
}

.upcoming-date small {
    font-size: 12px;
    color: #777;
    margin-top: 2px
}

.upcoming-content {
    padding: 21px 8px 16px 18px;
    min-width: 0
}

.upcoming-content h3 {
    font: 500 17px/1.35 Roboto, Arial, sans-serif;
    color: #222;
    margin: 0 0 14px;
    transition: .2s
}

.upcoming-card:hover h3 {
    color: #17a66d
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #777;
    font-size: 12px
}

.event-gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 19px/1 Roboto, Arial, sans-serif;
    color: #555;
    min-width: 24px
}

.gender-mixed, .gender-both {
    gap: 1px
}

.gender-female {
    color: #555
}

.gender-male {
    color: #555
}

.event-open {
    font-size: 12px;
    color: #777
}

.event-attachment {
    font-size: 12px;
    color: #666
}

.event-attachment.is-empty {
    color: #aaa
}

.favorite-button {
    border: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    padding: 8px;
    transition: .15s
}

.upcoming-card .favorite-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: block;
}



.favorite-button:hover {
    color: #17a66d;
    transform: scale(1.08)
}

.favorite-button.is-favorite {
    color: #17a66d
}


.calendar-filter {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background: #f5f6f6;
    border: 1px solid #e3e3e3;
    padding: 17px 18px;
    margin-bottom: 28px
}

.filter-modes {
    display: flex;
    gap: 7px;
    align-items: center;
    border: 0;
    margin: 0;
    padding: 0
}

.filter-modes legend {
    font: 500 14px Roboto, Arial, sans-serif;
    margin: 0 8px 0 0;
    width: auto;
    color: #555
}

.filter-mode {
    border: 1px solid #d7d7d7;
    background: #fff;
    color: #444;
    border-radius: 2px;
    padding: 8px 15px;
    font: 500 13px Roboto, Arial, sans-serif;
    cursor: pointer
}

.filter-mode:hover, .filter-mode.active {
    background: #17b978;
    border-color: #17b978;
    color: #fff
}

.favorite-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .12);
    font-size: 11px
}

.year-filter {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font: 500 14px Roboto, Arial, sans-serif;
    color: #555
}

.year-filter select {
    height: 36px;
    min-width: 100px;
    border: 1px solid #d7d7d7;
    background: #fff;
    padding: 0 32px 0 11px;
    color: #333
}

.calendar-month {
    margin-bottom: 38px
}

.month-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #2e2e2e;
    padding-bottom: 9px
}

.month-heading h2 {
    font: 500 19px Roboto, Arial, sans-serif;
    color: #222;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .2px
}

.month-heading span {
    font-size: 12px;
    color: #999
}

.calendar-row {
    display: grid;
    grid-template-columns:125px minmax(0, 1fr) 145px;
    align-items: center;
    min-height: 61px;
    border-bottom: 1px solid #e9e9e9;
    padding: 8px 8px 8px 0;
    transition: .15s
}

.calendar-row:hover {
    background: #f1faf6
}

.calendar-row-date {
    font: 500 14px Roboto, Arial, sans-serif;
    color: #666;
    padding-left: 10px
}

.calendar-row-title {
    font: 400 16px/1.35 Roboto, Arial, sans-serif;
    color: #333;
    padding: 9px 12px
}

.calendar-row:hover .calendar-row-title, .calendar-row-title:hover {
    color: #17a66d
}

.calendar-row-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px
}

.row-attachment {
    font-size: 17px;
    filter: grayscale(1);
    opacity: .68
}

.row-attachment:hover {
    filter: none;
    opacity: 1
}

.row-attachment-placeholder {
    width: 19px
}

.row-favorite {
    font-size: 23px;
    padding: 6px
}

.calendar-empty {
    padding: 35px;
    text-align: center;
    background: #f7f7f7;
    color: #777;
    border: 1px solid #e5e5e5
}

.calendar-row.is-hidden, .calendar-month.is-hidden {
    display: none
}
.calendar-row-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.event-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    color: #32804a;
    background-color: #eef7f0;
    border: 1px solid #d4e8d9;
    border-radius: 50%;
    text-decoration: none;
}

.event-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

a.event-icon {
    transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

a.event-icon:hover,
a.event-icon:focus-visible {
    color: #fff;
    background-color: #32804a;
    border-color: #32804a;
    transform: translateY(-1px);
}

.event-registration {
    cursor: help;
}

.event-icon-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    color: #fff;
    background-color: #32804a;
    border: 2px solid #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

a.event-icon:hover .event-icon-count,
a.event-icon:focus-visible .event-icon-count {
    color: #32804a;
    background-color: #fff;
}

.row-attachment-placeholder {
    display: inline-block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.row-favorite {
    flex: 0 0 auto;
}
.upcoming-card .event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.upcoming-card .event-icon {
    flex: 0 0 30px;
}

.upcoming-card .event-attachment {
    cursor: pointer;
}
/* Elektronické přihlášky – styl event-detail-v20 */

.registration-status-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.registration-status-row .event-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.registration-status-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.registration-status-text strong {
    color: #333;
    font: 500 15px/1.35 Roboto, Arial, sans-serif;
}

.registration-status-text span {
    color: #888;
    font: 400 13px/1.45 Lato, Arial, sans-serif;
}

.registration-button {
    white-space: nowrap;
}

/* Základní údaje */

.registration-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

.registration-facts > div {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid #e8e8e8;
}

.registration-facts > div:first-child {
    padding-left: 0;
}

.registration-facts > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.registration-facts dt {
    margin: 0 0 5px;
    color: #999;
    font: 500 11px/1.35 Roboto, Arial, sans-serif;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.registration-facts dd {
    margin: 0;
    color: #333;
    font: 500 14px/1.4 Roboto, Arial, sans-serif;
}

/* Přihlášené týmy */

.registration-teams-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 27px;
    padding-bottom: 9px;
    border-bottom: 2px solid #2e2e2e;
}

.registration-teams-heading h3 {
    margin: 0;
    color: #222;
    font: 500 17px/1.35 Roboto, Arial, sans-serif;
}

.registration-teams-heading span {
    color: #999;
    font: 400 12px/1.4 Lato, Arial, sans-serif;
}

.registration-team-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: registration-team;
}

.registration-team-list li {
    counter-increment: registration-team;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 8px 6px 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.registration-team-list li::before {
    content: counter(registration-team) ".";
    color: #999;
    font: 400 13px Roboto, Arial, sans-serif;
}

.registration-team-list a,
.registration-team-list li > span {
    color: #333;
    font: 400 15px/1.4 Roboto, Arial, sans-serif;
}

.registration-team-list a:hover {
    color: #17a66d;
}

.registration-empty {
    margin: 0;
    padding: 17px 0;
    border-bottom: 1px solid #e8e8e8;
    color: #888;
    font: 400 14px/1.55 Lato, Arial, sans-serif;
}

@media (max-width: 575px) {
    .registration-status-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .registration-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .registration-facts {
        grid-template-columns: 1fr;
    }

    .registration-facts > div,
    .registration-facts > div:first-child,
    .registration-facts > div:last-child {
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid #e8e8e8;
    }

    .registration-facts > div:last-child {
        border-bottom: 0;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media (max-width: 991px) {
    .upcoming-grid {
        grid-template-columns:1fr
    }

    .upcoming-card, .upcoming-main {
        min-height: 118px
    }

    .calendar-page {
        padding-top: 5px
    }

    .calendar-filter {
        align-items: center
    }

    .calendar-row {
        grid-template-columns:110px minmax(0, 1fr) 125px
    }
}

@media (max-width: 575px) {
    .calendar-title-row {
        padding-top: 24px
    }

    .calendar-title-row h1 {
        font-size: 28px
    }

    .upcoming-section {
        padding-top: 28px
    }

    .upcoming-main {
        padding-right: 38px
    }

    .upcoming-date {
        width: 76px;
        flex-basis: 76px
    }

    .upcoming-date strong {
        font-size: 30px
    }

    .upcoming-content {
        padding: 16px 4px 13px 14px
    }

    .upcoming-content h3 {
        font-size: 15px
    }

    .calendar-filter {
        display: block;
        padding: 14px
    }

    .filter-modes {
        display: grid;
        grid-template-columns:repeat(3, 1fr);
        gap: 5px
    }

    .filter-modes legend {
        grid-column: 1/-1;
        margin: 0 0 5px
    }

    .filter-mode {
        padding: 8px 5px;
        font-size: 12px
    }

    .year-filter {
        justify-content: space-between;
        margin-top: 13px;
        border-top: 1px solid #ddd;
        padding-top: 13px
    }

    .calendar-row {
        position: relative;
        display: grid;
        grid-template-columns:1fr;
        min-height: 0;
        padding: 13px 46px 13px 10px
    }

    .calendar-row-date {
        padding: 0 0 5px;
        font-size: 13px;
        color: #17a66d
    }

    .calendar-row-title {
        padding: 0;
        font-size: 15px
    }

    .calendar-row-icons {
        justify-content: flex-start;
        margin-top: 9px;
        min-height: 28px
    }

    .row-favorite {
        position: absolute;
        right: 8px;
        top: 9px
    }

    .month-heading h2 {
        font-size: 17px
    }

    .calendar-admin-menu {
        width: 210px
    }
}
.event-gallery-section {
    margin-top: 40px;
}

.event-detail-page .article-gallery {
    padding-top: 30px;
    border-top: 1px solid #e2e6e4;
}

.event-detail-page .article-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .event-detail-page .article-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .event-detail-page .article-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .event-detail-page .article-gallery-grid {
        grid-template-columns: 1fr;
    }
}
