/*
 * «تورنمنت‌های قدیم فتوامان» and «رقابت‌های جدید فتوامان» (تسک ۱۴۰۵/۰۸/۱۲/۰۱):
 * the two origin marks, the old list's name cell and the new form's links.
 */

.pa-origin-mark {
    border-radius: 0.3rem;
    object-fit: contain;
    flex: none;
}

.pa-origin-mark-menu {
    width: 1.25rem;
    height: 1.25rem;
}

.pa-origin-mark-heading {
    width: 2rem;
    height: 2rem;
}

.pa-origin-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.pa-name-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pa-name-with-logo-en {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

.pa-new-competition-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pa-new-competition-link {
    padding: 0.3rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.15);
    border-radius: 0.5rem;
}

.pa-new-competition-board + .pa-new-competition-board {
    margin-top: 1rem;
}

.pa-new-competition-board-name {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pa-new-competition-empty {
    opacity: 0.75;
}

.pa-new-competition-date-green {
    color: rgb(34 197 94);
    font-weight: 600;
}

.pa-new-competition-date-red {
    color: rgb(239 68 68);
    font-weight: 600;
}

/*
 * «منوها (لیست گالری‌ها)» (تسک ۰۱ ۱۴۰۵/۰۸/۲۳): the menu beside a tournament's or a
 * competition's title, the lists' «منو» cell, the form's menu state, and the notice of
 * a section retired from the new structure.
 */
.pa-menu-heading {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.6rem;
    row-gap: 0.15rem;
}

.pa-menu-heading-bar {
    color: #9ca3af;
    font-weight: 400;
}

.pa-menu-heading-menu {
    font-weight: 700;
}

.pa-menu-heading-menu.is-none {
    opacity: 0.85;
}

.pa-menu-edit-heading {
    display: inline;
}

.pa-menu-cell {
    display: inline-block;
    max-width: 11rem;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.pa-menu-cell.is-none {
    color: #9ca3af;
}

.pa-menu-cell summary {
    list-style: none;
    cursor: help;
}

.pa-menu-cell summary::-webkit-details-marker {
    display: none;
}

.pa-menu-cell-full {
    display: block;
    margin-top: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgb(184 66 73 / 12%);
}

/* On a pointer that hovers, the tooltip shows the whole name; the tap opener is for touch. */
@media (hover: hover) {
    .pa-menu-cell[open] .pa-menu-cell-full {
        display: none;
    }
}

.pa-menu-state {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pa-menu-state .pa-menu-name {
    color: #B84249;
    font-weight: 700;
}

.pa-menu-ok {
    color: #16a34a;
}

.pa-menu-warn {
    color: #d97706;
}

.pa-retired-notice {
    display: block;
    margin-top: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-inline-start: 3px solid #d97706;
    border-radius: 0.375rem;
    background: rgb(217 119 6 / 10%);
    font-size: 0.875rem;
    line-height: 1.7;
}
