/* =========================================================
   BRICS YSF — Jury page (jury.php)
   Loaded after home.css and about.css.
   ========================================================= */

.jr-wrap {
    padding-block: 40px 88px;
}

/* Notice shown until members are added */
.jr-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 28px;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
}
.jr-notice p {
    margin: 0;
    color: var(--muted);
}
.jr-notice strong {
    color: var(--navy);
}
.jr-notice-icon {
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--navy);
}
.jr-notice-icon::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: var(--c5);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Panels */
.jr-panel + .jr-panel {
    margin-top: 56px;
}
.jr-panel-head {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.jr-panel-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
}
.jr-panel-head span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

/* Member cards */
.jr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.jr-card {
    --jr: var(--navy);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 20px 36px -32px rgba(12, 27, 51, 0.6);
    transition: transform 0.25s, box-shadow 0.25s;
}
.jr-card:not(.is-placeholder):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.jr-photo {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 4.4;
    overflow: hidden;
    background: linear-gradient(160deg, var(--jr), color-mix(in srgb, var(--jr) 55%, #000));
}
.jr-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--jr);
}
.jr-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transition: transform 0.5s;
}
.jr-card:hover .jr-photo img {
    transform: scale(1.04);
}
.jr-initials {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.jr-country {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.jr-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem 1.3rem;
    flex: 1;
}
.jr-name {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}
.jr-designation {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-dark);
}
.jr-org {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--muted);
}
.jr-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.6rem 0 0;
    border: 0;
    background: none;
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}
.jr-more:hover {
    color: var(--accent-dark);
}

/* Placeholder cards */
.jr-card.is-placeholder .jr-photo {
    background:
        radial-gradient(circle at 30% 20%, rgba(232, 137, 43, 0.22), transparent 55%),
        var(--navy);
}
.jr-card.is-placeholder .jr-photo::after {
    background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80% 100%);
}
.jr-silhouette {
    width: 46%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.18);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 22c0-5 4-8.5 9-8.5s9 3.5 9 8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 22c0-5 4-8.5 9-8.5s9 3.5 9 8.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jr-card.is-placeholder .jr-name {
    font-size: 1.05rem;
    color: var(--muted);
}
.jr-line {
    display: block;
    height: 10px;
    margin-top: 0.35rem;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2));
    background-size: 200% 100%;
    animation: jr-shimmer 2.4s ease-in-out infinite;
}
.jr-line.short {
    width: 60%;
}
@keyframes jr-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Profile pop-up */
.jr-dialog {
    width: min(620px, 94vw);
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
    color: var(--ink);
}
.jr-dialog::backdrop {
    background: rgba(8, 20, 38, 0.65);
    backdrop-filter: blur(4px);
}
.jr-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}
.jr-dlg-head {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem 1.8rem 1.5rem;
    background: linear-gradient(135deg, var(--jr), color-mix(in srgb, var(--jr) 50%, #000));
    color: #fff;
}
.jr-dlg-head h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #fff;
}
.jr-dlg-head p {
    margin: 0.3rem 0 0.6rem;
    opacity: 0.9;
}
.jr-dlg-head .jr-country {
    position: static;
    display: inline-block;
}
.jr-dlg-photo {
    flex: none;
    display: grid;
    place-items: center;
    width: 96px;
    height: 110px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    font-family: var(--serif);
    font-size: 2rem;
}
.jr-dlg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}
.jr-dlg-body {
    padding: 1.5rem 1.8rem 1.9rem;
    color: #3f4a5a;
    line-height: 1.7;
}

@media (max-width: 680px) {
    .jr-wrap {
        padding-block: 24px 56px;
    }
    .jr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .jr-info {
        padding: 0.9rem 1rem 1.1rem;
    }
    .jr-name {
        font-size: 1.05rem;
    }
    .jr-initials {
        font-size: 2.4rem;
    }
    .jr-notice {
        align-items: flex-start;
    }
    .jr-dlg-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (prefers-reduced-motion: reduce) {
    .jr-line {
        animation: none;
    }
}
