﻿/* =========================================================
   Gedian Sports - Public Referee Details
   ========================================================= */

.public-referee-page {
    min-height: calc(100vh - 70px);
    padding: 22px 0 60px;
    background: radial-gradient( circle at top right, rgba(91, 140, 59, .10), transparent 31%), linear-gradient( 180deg, #f4f8f2 0%, #eef3f6 100%);
    color: #071a33;
    font-family: "Tajawal", sans-serif;
}

.public-referee-navigation {
    margin-bottom: 12px;
}

.back-to-referees-link {
    color: #4d7d31;
    text-decoration: none;
    font-size: .77rem;
    font-weight: 900;
}

    .back-to-referees-link:hover {
        color: #365c23;
    }

.public-referee-header,
.public-section-card,
.public-sidebar-card {
    border: 1px solid #dfe7df;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 26, 51, .07);
}

.public-referee-header {
    overflow: hidden;
    margin-bottom: 22px;
    border-radius: 24px;
}

.public-referee-cover {
    position: relative;
    min-height: 310px;
    background: #0b284b;
}

.public-referee-cover-image {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
}

.public-referee-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(7, 26, 51, .02), rgba(7, 26, 51, .57));
}

.public-referee-cover-fallback {
    display: flex;
    height: 310px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient( circle at 20% 20%, rgba(91, 140, 59, .42), transparent 26%), linear-gradient( 135deg, #071a33, #0d365f 64%, #154c7a);
    color: #fff;
}

    .public-referee-cover-fallback span {
        font-size: .95rem;
        font-weight: 800;
    }

    .public-referee-cover-fallback strong {
        margin-top: 8px;
        font-size: clamp(1.8rem, 4vw, 3.2rem);
        font-weight: 900;
    }

.public-referee-header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: end;
    min-height: 150px;
    padding: 24px 28px 28px;
}

.public-referee-avatar-area {
    width: 152px;
    margin-top: -92px;
}

.public-referee-avatar {
    display: grid;
    width: 152px;
    height: 152px;
    place-items: center;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #eaf3e5;
    color: #4d7d31;
    box-shadow: 0 10px 30px rgba(7, 26, 51, .17);
    font-size: 3.6rem;
    font-weight: 900;
}

    .public-referee-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.public-referee-identity {
    min-width: 0;
}

.public-referee-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

    .public-referee-name-row h1 {
        margin: 0;
        color: #071a33;
        font-size: clamp(1.6rem, 3vw, 2.35rem);
        font-weight: 900;
    }

.public-verified-badge,
.public-available-badge,
.public-chip,
.public-career-status,
.public-verified-license {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 900;
    white-space: nowrap;
}

.public-verified-badge {
    padding: 6px 10px;
    background: #e7f6ec;
    color: #1f7a42;
}

.public-available-badge {
    padding: 6px 10px;
    background: #eaf3e5;
    color: #4d7d31;
}

.public-referee-name-en {
    margin-top: 5px;
    color: #7e8997;
    font-size: .9rem;
}

.public-referee-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
    color: #33465d;
    font-size: .92rem;
    font-weight: 700;
}

.public-connected-account {
    margin-top: 10px;
    color: #7d8997;
    font-size: .78rem;
}

.public-referee-alert {
    margin-bottom: 20px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(7, 26, 51, .07);
}

.public-referee-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.public-referee-main,
.public-referee-sidebar {
    display: grid;
    gap: 20px;
}

.public-referee-sidebar {
    position: sticky;
    top: 20px;
}

.public-referee-statistics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.public-stat-box {
    min-height: 122px;
    padding: 18px;
    border: 1px solid #dfe7df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(7, 26, 51, .06);
}

    .public-stat-box span {
        display: block;
        color: #81909e;
        font-size: .76rem;
        font-weight: 700;
    }

    .public-stat-box strong {
        display: block;
        margin-top: 12px;
        color: #071a33;
        font-size: 1.02rem;
        font-weight: 900;
        line-height: 1.55;
    }

.public-section-card,
.public-sidebar-card {
    border-radius: 20px;
}

.public-section-card {
    padding: 24px;
}

.public-sidebar-card {
    padding: 20px;
}

.public-section-heading,
.public-sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

    .public-section-heading h2,
    .public-sidebar-heading h2 {
        margin: 0;
        color: #071a33;
        font-size: 1.02rem;
        font-weight: 900;
    }

    .public-section-heading small {
        display: block;
        margin-top: 4px;
        color: #8793a0;
        font-size: .72rem;
    }

.public-referee-bio,
.public-career-content p,
.public-media-content p,
.public-content-summary {
    margin: 0;
    color: #5f6f80;
    line-height: 1.9;
}

.public-empty-section {
    padding: 24px;
    border: 1px dashed #cfdacb;
    border-radius: 14px;
    background: #fbfdfb;
    color: #8995a2;
    text-align: center;
    font-size: .83rem;
}

.public-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.public-philosophy-wide {
    grid-column: 1 / -1;
}

.public-philosophy-item {
    padding: 18px;
    border: 1px solid #e2e8e3;
    border-radius: 15px;
    background: #fafcf9;
}

    .public-philosophy-item span {
        display: block;
        margin-bottom: 9px;
        color: #7f8b98;
        font-size: .73rem;
        font-weight: 700;
    }

    .public-philosophy-item p {
        margin: 0;
        color: #40536a;
        font-size: .85rem;
        line-height: 1.85;
    }

    .public-philosophy-item strong {
        color: #102840;
        font-size: .92rem;
    }

.public-current-assignments,
.public-license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-assignment-card,
.public-license-card {
    padding: 18px;
    border: 1px solid #dfe7df;
    border-radius: 17px;
    background: linear-gradient( 180deg, #fff, #fbfdfb);
}

.public-assignment-badges,
.public-license-badges,
.public-content-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.public-chip {
    padding: 5px 8px;
}

    .public-chip.is-neutral {
        background: #eef1f3;
        color: #687685;
    }

    .public-chip.is-current,
    .public-chip.is-valid {
        background: #e7f6ec;
        color: #247545;
    }

    .public-chip.is-primary {
        background: #e9f0fb;
        color: #2d5f9e;
    }

    .public-chip.is-interim,
    .public-chip.is-pending {
        background: #fff2d8;
        color: #91600a;
    }

    .public-chip.is-national {
        background: #e8eefc;
        color: #334f9f;
    }

    .public-chip.is-highest {
        background: #fff4d9;
        color: #8d6308;
    }

    .public-chip.is-expired,
    .public-chip.is-danger {
        background: #fde9eb;
        color: #b52f40;
    }

.public-assignment-card h3,
.public-license-card h3,
.public-content-card h3 {
    margin: 14px 0 0;
    color: #071a33;
    font-size: 1rem;
    font-weight: 900;
}

.public-assignment-organization {
    display: block;
    margin-top: 7px;
    color: #4d7d31;
    font-size: .9rem;
}

.public-assignment-meta,
.public-career-meta,
.public-media-meta,
.public-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 12px;
    color: #7b8997;
    font-size: .72rem;
}

.public-assignment-period {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8ece9;
    color: #33485e;
    font-size: .76rem;
    font-weight: 700;
}

.public-career-timeline {
    position: relative;
    display: grid;
    gap: 15px;
}

    .public-career-timeline::before {
        position: absolute;
        top: 10px;
        right: 9px;
        bottom: 10px;
        width: 2px;
        content: "";
        background: #dfe8dc;
    }

.public-career-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
}

.public-career-marker {
    z-index: 1;
    width: 20px;
    height: 20px;
    margin-top: 18px;
    border: 5px solid #eaf3e5;
    border-radius: 50%;
    background: #5b8c3b;
}

.public-career-content {
    padding: 17px;
    border: 1px solid #e0e7e1;
    border-radius: 15px;
    background: #fff;
}

.public-career-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .public-career-heading h3 {
        margin: 0;
        color: #071a33;
        font-size: .95rem;
        font-weight: 900;
    }

    .public-career-heading strong {
        display: block;
        margin-top: 6px;
        color: #4d7d31;
        font-size: .83rem;
    }

.public-career-status {
    padding: 5px 9px;
    background: #eef1f3;
    color: #667485;
}

    .public-career-status.is-current {
        background: #e7f6ec;
        color: #247545;
    }

.public-career-content p {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf1ee;
    font-size: .8rem;
}

.public-license-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.public-verified-license {
    padding: 6px 9px;
    background: #e7f6ec;
    color: #247545;
}

.public-license-name-en {
    margin-top: 5px;
    color: #84909c;
    font-size: .78rem;
}

.public-license-details {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

    .public-license-details > div {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding-top: 8px;
        border-top: 1px solid #edf1ee;
    }

    .public-license-details dt {
        color: #84909d;
        font-size: .7rem;
        font-weight: 700;
    }

    .public-license-details dd {
        margin: 0;
        color: #33485e;
        font-size: .76rem;
        font-weight: 700;
    }

.public-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.public-image-card {
    overflow: hidden;
    border: 1px solid #e0e7e2;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

    .public-image-card:hover {
        color: inherit;
    }

    .public-image-card img {
        display: block;
        width: 100%;
        height: 190px;
        object-fit: cover;
        background: #eef2ef;
    }

    .public-image-card > div {
        padding: 14px;
    }

    .public-image-card strong {
        color: #102840;
        font-size: .84rem;
    }

    .public-image-card p {
        margin: 6px 0 0;
        color: #697887;
        font-size: .74rem;
        line-height: 1.6;
    }

    .public-image-card span {
        display: block;
        margin-top: 8px;
        color: #8b96a1;
        font-size: .66rem;
    }

.public-video-list,
.public-audio-list,
.public-document-list,
.public-content-list {
    display: grid;
    gap: 14px;
}

.public-video-card,
.public-audio-card,
.public-document-card,
.public-content-card {
    overflow: hidden;
    border: 1px solid #e0e7e2;
    border-radius: 16px;
    background: #fff;
}

.public-video-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
}

    .public-video-card video {
        width: 100%;
        height: 100%;
        min-height: 230px;
        object-fit: cover;
        background: #071a33;
    }

.public-audio-card,
.public-document-card,
.public-content-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.public-audio-icon,
.public-document-icon,
.public-content-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-right: 15px;
    place-items: center;
    border-radius: 16px;
    background: #eef4eb;
    color: #4d7d31;
    font-size: 1.35rem;
    font-weight: 900;
}

.public-media-content,
.public-content-body {
    padding: 15px;
}

    .public-media-content > strong {
        display: block;
        color: #102840;
        font-size: .86rem;
    }

    .public-media-content p {
        margin-top: 7px;
        font-size: .76rem;
    }

.public-audio-card audio {
    width: 100%;
    margin-top: 12px;
}

.public-document-card > a {
    margin-left: 15px;
}

.public-content-card {
    align-items: flex-start;
}

.public-content-icon {
    margin-top: 15px;
}

.public-content-body h3 {
    margin-top: 14px;
}

.public-content-summary {
    margin-top: 8px;
    font-size: .82rem;
}

.public-article-details {
    margin-top: 14px;
    border: 1px solid #e1e8e2;
    border-radius: 12px;
    background: #fafcf9;
}

    .public-article-details summary {
        padding: 12px 14px;
        cursor: pointer;
        color: #4d7d31;
        font-size: .78rem;
        font-weight: 900;
    }

.public-article-body {
    padding: 0 14px 15px;
    color: #45576c;
    line-height: 2;
    white-space: pre-wrap;
}

.public-external-link {
    margin-top: 14px;
}

.public-information-list {
    display: grid;
    gap: 0;
    margin: 0;
}

    .public-information-list > div {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 0;
        border-bottom: 1px solid #edf1ee;
    }

        .public-information-list > div:last-child {
            border-bottom: 0;
        }

    .public-information-list dt,
    .public-status-list span {
        color: #85919e;
        font-size: .7rem;
        font-weight: 700;
    }

    .public-information-list dd,
    .public-status-list strong {
        margin: 0;
        color: #263c53;
        font-size: .76rem;
        font-weight: 800;
        line-height: 1.6;
    }

.public-status-list {
    display: grid;
    gap: 10px;
}

    .public-status-list > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px solid #edf1ee;
    }

        .public-status-list > div:last-child {
            border-bottom: 0;
        }

.public-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .public-social-links a {
        padding: 8px 11px;
        border: 1px solid #dce5dc;
        border-radius: 10px;
        background: #fafcf9;
        color: #456c2e;
        text-decoration: none;
        font-size: .75rem;
        font-weight: 800;
    }

        .public-social-links a:hover {
            border-color: #5b8c3b;
            background: #eef5ea;
        }

.public-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

    .public-summary-grid div {
        padding: 12px 7px;
        border: 1px solid #e1e8e2;
        border-radius: 12px;
        background: #fafcf9;
        text-align: center;
    }

    .public-summary-grid strong {
        display: block;
        color: #071a33;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .public-summary-grid span {
        display: block;
        margin-top: 5px;
        color: #84909c;
        font-size: .63rem;
        line-height: 1.4;
    }

@media (max-width: 1199.98px) {
    .public-referee-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .public-referee-statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-philosophy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .public-referee-layout {
        grid-template-columns: 1fr;
    }

    .public-referee-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .public-referee-page {
        padding-top: 10px;
    }

    .public-referee-header {
        border-radius: 17px;
    }

    .public-referee-cover,
    .public-referee-cover-image,
    .public-referee-cover-fallback {
        min-height: 220px;
        height: 220px;
    }

    .public-referee-header-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 18px;
    }

    .public-referee-avatar-area {
        width: 118px;
        margin-top: -75px;
    }

    .public-referee-avatar {
        width: 118px;
        height: 118px;
        font-size: 2.7rem;
    }

    .public-referee-statistics,
    .public-current-assignments,
    .public-license-grid,
    .public-philosophy-grid,
    .public-referee-sidebar {
        grid-template-columns: 1fr;
    }

    .public-section-card,
    .public-sidebar-card {
        padding: 18px;
        border-radius: 16px;
    }

    .public-image-grid {
        grid-template-columns: 1fr;
    }

    .public-video-card,
    .public-audio-card,
    .public-document-card,
    .public-content-card {
        grid-template-columns: 1fr;
    }

    .public-audio-icon,
    .public-document-icon,
    .public-content-icon {
        margin: 15px 15px 0;
    }

    .public-video-card video {
        min-height: 210px;
    }

    .public-document-card > a {
        margin: 0 15px 15px;
    }

    .public-license-top,
    .public-career-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Referee-specific public profile additions */
.public-career-status.is-live,
.public-chip.is-live {
    background: #ffe8e8;
    color: #b52222;
}

.public-career-status.is-completed,
.public-chip.is-completed {
    background: #e7f6ec;
    color: #1f7a42;
}

.public-career-status.is-danger,
.public-chip.is-danger {
    background: #ffe8ea;
    color: #a51e2d;
}

.public-verified-license.is-unverified {
    background: #f0f2f3;
    color: #6f7b87;
}


/* =========================================================
   GEDIAN SOCIAL INTERACTIONS - FOLLOW + LIKE
   ========================================================= */

.referee-social-feedback {
    margin: 0 0 12px;
    padding: 10px 13px;
    border: 1px solid #cfe0c7;
    border-radius: 12px;
    background: #f4faef;
    color: #365c23;
    font-size: .74rem;
    font-weight: 800;
}

.referee-social-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
}

.referee-follow-form,
.referee-like-form {
    margin: 0;
}

.referee-followers-stat {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid #dce5dc;
    border-radius: 11px;
    background: #fafcf9;
    color: #071a33;
}

    .referee-followers-stat > span {
        font-size: .86rem;
        line-height: 1;
    }

    .referee-followers-stat > div {
        display: grid;
        line-height: 1.05;
    }

    .referee-followers-stat strong {
        color: #071a33;
        font-size: .75rem;
        font-weight: 950;
    }

    .referee-followers-stat small {
        margin-top: 2px;
        color: #7e8997;
        font-size: .5rem;
        font-weight: 850;
    }

.referee-follow-button,
.referee-like-button {
    appearance: none;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 11px;
    font-family: inherit;
    font-size: .67rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.referee-follow-button {
    border: 1px solid #5b8c3b;
    background: #5b8c3b;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(91, 140, 59, .15);
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .referee-follow-button:hover:not(:disabled) {
        border-color: #466f2d;
        background: #466f2d;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 13px rgba(65, 109, 41, .18);
    }

    .referee-follow-button.is-following {
        border-color: #c7d8bf;
        background: #edf5e8;
        color: #466f2d !important;
        box-shadow: none;
    }

        .referee-follow-button.is-following:hover {
            border-color: #d9bebe;
            background: #fff4f4;
            color: #a33f3f !important;
        }

    .referee-follow-button.is-self,
    .referee-like-button.is-self {
        border-color: #dfe4e6;
        background: #f1f3f4;
        color: #7e898f !important;
        box-shadow: none;
        cursor: not-allowed;
    }

.referee-like-button {
    border: 1px solid #ead9de;
    background: #fff;
    color: #7f5863 !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(150, 56, 80, .06);
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .referee-like-button:hover:not(:disabled) {
        border-color: #dfbcc6;
        background: #fff5f7;
        color: #ad3653 !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 13px rgba(150, 56, 80, .09);
    }

    .referee-like-button.is-liked {
        border-color: #e3b8c3;
        background: #fff0f3;
        color: #b52f4f !important;
        box-shadow: none;
    }

        .referee-like-button.is-liked:hover {
            border-color: #d7a4b1;
            background: #ffe8ee;
            color: #9d2643 !important;
        }

.referee-like-count {
    display: inline-grid;
    min-width: 23px;
    min-height: 20px;
    place-items: center;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(127, 88, 99, .08);
    color: currentColor;
    font-size: .51rem;
    font-weight: 950;
    line-height: 1;
}

.referee-like-button > span,
.referee-follow-button > span {
    font-family: Arial, sans-serif;
    font-size: .82rem;
    font-weight: 900;
}

.referee-follow-button:focus-visible,
.referee-like-button:focus-visible {
    outline: 3px solid rgba(91, 140, 59, .18);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .referee-social-actions {
        gap: 7px;
        margin-top: 11px;
    }

    .referee-followers-stat,
    .referee-follow-button,
    .referee-like-button {
        min-height: 40px;
    }
}

@media (max-width: 479.98px) {
    .referee-social-actions {
        align-items: stretch;
    }

    .referee-followers-stat {
        width: 100%;
    }

    .referee-follow-form,
    .referee-like-form {
        flex: 1 1 auto;
    }

    .referee-follow-button,
    .referee-like-button {
        width: 100%;
    }
}

@media (max-width: 1199.98px) {
    .public-referee-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .public-referee-statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-philosophy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .public-referee-layout {
        grid-template-columns: 1fr;
    }

    .public-referee-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .public-referee-page {
        padding-top: 10px;
    }

    .public-referee-header {
        border-radius: 17px;
    }

    .public-referee-cover,
    .public-referee-cover-image,
    .public-referee-cover-fallback {
        min-height: 220px;
        height: 220px;
    }

    .public-referee-header-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 18px;
    }

    .public-referee-avatar-area {
        width: 118px;
        margin-top: -75px;
    }

    .public-referee-avatar {
        width: 118px;
        height: 118px;
        font-size: 2.7rem;
    }

    .public-referee-statistics,
    .public-current-assignments,
    .public-license-grid,
    .public-philosophy-grid,
    .public-referee-sidebar {
        grid-template-columns: 1fr;
    }

    .public-section-card,
    .public-sidebar-card {
        padding: 18px;
        border-radius: 16px;
    }

    .public-image-grid {
        grid-template-columns: 1fr;
    }

    .public-video-card,
    .public-audio-card,
    .public-document-card,
    .public-content-card {
        grid-template-columns: 1fr;
    }

    .public-audio-icon,
    .public-document-icon,
    .public-content-icon {
        margin: 15px 15px 0;
    }

    .public-video-card video {
        min-height: 210px;
    }

    .public-document-card > a {
        margin: 0 15px 15px;
    }

    .public-license-top,
    .public-career-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* RefereeDetails: scoped mobile-first five-tab content card. */

.public-referee-page .rfd-content-card {
    --rfd-green: #5B8C3B;
    --rfd-green-dark: #416d29;
    --rfd-green-soft: #eef5ea;
    --rfd-navy: #071a33;
    --rfd-text: #24323f;
    --rfd-muted: #65736c;
    --rfd-border: #e1e7df;
    --rfd-bg: #f7f9f7;
    --rfd-danger: #d83c3c;
    --rfd-gold: #c99724;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--rfd-border);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(7,26,51,.045);
    padding: 0 9px 15px;
    font-family: "Tajawal", sans-serif;
    color: var(--rfd-text);
    direction: rtl;
    text-align: right;
}

.public-referee-page .rfd-main-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-bottom: 1px solid var(--rfd-border);
    scrollbar-width: thin;
}

.public-referee-page .rfd-tab-button {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: .79rem;
    font-weight: 850;
    color: #48594c;
    text-decoration: none;
    white-space: nowrap;
    background: #f5f8f3;
    border: 1px solid #e3e9e0;
}

    .public-referee-page .rfd-tab-button.is-active {
        background: var(--rfd-green);
        border-color: var(--rfd-green);
        color: #fff;
    }

    .public-referee-page .rfd-tab-button:hover:not(.is-active) {
        background: var(--rfd-green-soft);
    }

    .public-referee-page .rfd-tab-button:focus-visible, .public-referee-page .rfd-match-row:focus-visible {
        outline: 3px solid #5b8c3b;
        outline-offset: -3px;
    }

.public-referee-page .rfd-tab-panel {
    padding-top: 14px;
    min-width: 0;
}

    .public-referee-page .rfd-tab-panel[hidden], .public-referee-page .rfd-team-fallback[hidden] {
        display: none !important;
    }

    .public-referee-page .rfd-tab-panel h2 {
        color: var(--rfd-navy);
        font-size: 1.02rem;
        font-weight: 900;
        margin: 0 0 9px;
    }

.public-referee-page .rfd-bio {
    padding: 3px 4px 15px;
}

    .public-referee-page .rfd-bio p {
        margin: 0;
        white-space: pre-line;
        line-height: 1.9;
        overflow-wrap: anywhere;
        font-size: .88rem;
    }

.public-referee-page .rfd-muted {
    color: var(--rfd-muted);
    font-size: .75rem;
    line-height: 1.65;
    margin: 0 0 10px;
}

.public-referee-page .rfd-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    margin: 0 0 12px;
}

    .public-referee-page .rfd-facts > div {
        min-width: 0;
        border-radius: 10px;
        background: #f7faf5;
        border: 1px solid #e4ebdf;
        padding: 9px;
    }

    .public-referee-page .rfd-facts dt {
        color: var(--rfd-muted);
        font-size: .73rem;
        font-weight: 750;
        margin: 0 0 4px;
    }

    .public-referee-page .rfd-facts dd {
        color: var(--rfd-navy);
        font-size: .85rem;
        font-weight: 850;
        overflow-wrap: anywhere;
        margin: 0;
    }

.public-referee-page .rfd-block {
    margin-top: 12px;
    padding: 12px 4px;
    border: 0;
    border-top: 1px solid var(--rfd-border);
    box-shadow: none;
    border-radius: 0;
}

    .public-referee-page .rfd-block .public-section-heading, .public-referee-page .rfd-block .public-sidebar-heading {
        margin-bottom: 10px;
    }

.public-referee-page .rfd-metrics {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

    .public-referee-page .rfd-metrics > div {
        min-width: 0;
        display: grid;
        align-content: center;
        gap: 6px;
        padding: 10px;
        border: 1px solid var(--rfd-border);
        border-radius: 10px;
        background: #fcfdfb;
    }

        .public-referee-page .rfd-metrics > div > span {
            font-size: .73rem;
            font-weight: 800;
            color: var(--rfd-muted);
        }

    .public-referee-page .rfd-metrics strong {
        font-size: 1.6rem;
        font-weight: 950;
        line-height: 1.1;
        color: var(--rfd-navy);
        font-variant-numeric: tabular-nums;
    }

    .public-referee-page .rfd-metrics .rfd-yellow {
        border-inline-start: 4px solid #e0ae32;
    }

    .public-referee-page .rfd-metrics .rfd-red {
        border-inline-start: 4px solid #c94d4d;
    }

.public-referee-page .rfd-secondary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--rfd-muted);
    font-size: .72rem;
    margin: 11px 0 0;
}

    .public-referee-page .rfd-secondary-stats b {
        color: var(--rfd-navy);
    }

.public-referee-page .rfd-message, .public-referee-page .rfd-empty {
    border: 1px dashed #d9e4d3;
    background: #f8fbf6;
    color: #52654c;
    border-radius: 10px;
    padding: 15px;
    font-size: .82rem;
    text-align: center;
    margin: 8px 0;
}

.public-referee-page .rfd-message {
    border-style: solid;
    border-color: #e8d5a9;
    background: #fff9ea;
    color: #76571b;
}

.public-referee-page .rfd-match-filters {
    margin: 0 0 12px;
    display: grid;
    gap: 9px;
}

.public-referee-page .rfd-season-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .public-referee-page .rfd-season-row label, .public-referee-page .rfd-filter-row label {
        font-size: .75rem;
        color: var(--rfd-muted);
        font-weight: 800;
    }

    .public-referee-page .rfd-season-row select {
        flex: 1;
        min-width: 0;
        max-width: 280px;
        border-radius: 999px;
        background: #f0f7eb;
        color: var(--rfd-green-dark);
        border-color: #c9dac0;
        font-weight: 850;
    }

.public-referee-page .rfd-season-count {
    background: #eaf3e5;
    color: var(--rfd-green-dark);
    min-width: 44px;
    height: 36px;
    padding: 6px 9px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

.public-referee-page .rfd-filter-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 8px;
    align-items: end;
}

    .public-referee-page .rfd-filter-row > div {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

.public-referee-page .rfd-match-filters select, .public-referee-page .rfd-match-filters input[type=date] {
    box-sizing: border-box;
    min-height: 40px;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d8e2d5;
    border-radius: 9px;
    color: var(--rfd-navy);
    background: #fff;
    font: inherit;
    font-size: .8rem;
}

.public-referee-page .rfd-filter-row .rfd-filter-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
    grid-column: 1 / -1;
}

.public-referee-page .rfd-filter-actions button, .public-referee-page .rfd-filter-actions a {
    min-height: 39px;
    padding: 7px 16px;
    border: 1px solid var(--rfd-green);
    border-radius: 9px;
    background: var(--rfd-green);
    color: #fff;
    font: inherit;
    font-size: .79rem;
    font-weight: 850;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.public-referee-page .rfd-filter-actions a {
    background: #fff;
    color: var(--rfd-green-dark);
    border-color: #d8e2d5;
}

.public-referee-page .rfd-match-list {
    display: grid;
    gap: 6px;
}

.public-referee-page .rfd-match-row {
    display: grid;
    grid-template-columns: 19px minmax(0,1fr) minmax(72px,1fr) minmax(0,1fr) minmax(41px,.7fr);
    align-items: center;
    gap: 4px;
    min-height: 78px;
    padding: 7px 4px;
    border: 1px solid #e2e8df;
    border-radius: 10px;
    color: var(--rfd-navy);
    background: #fff;
    text-decoration: none;
    direction: rtl;
}

    .public-referee-page .rfd-match-row:hover {
        color: var(--rfd-navy);
        background: #f7fbf5;
        border-color: #c9d9c0;
    }

.public-referee-page .rfd-match-number {
    font-size: .73rem;
    color: #69786b;
    font-weight: 850;
    text-align: center;
}

.public-referee-page .rfd-match-team {
    display: grid;
    min-width: 0;
    justify-items: center;
    align-content: center;
    gap: 4px;
    text-align: center;
}

    .public-referee-page .rfd-match-team img, .public-referee-page .rfd-team-fallback {
        width: 30px;
        height: 30px;
        min-width: 0;
        max-width: 100%;
        object-fit: contain;
    }

.public-referee-page .rfd-team-fallback {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef4eb;
    color: var(--rfd-green-dark);
    font-weight: 900;
}

.public-referee-page .rfd-match-team strong {
    min-width: 0;
    font-size: .73rem;
    font-weight: 850;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.public-referee-page .rfd-match-center {
    min-width: 0;
    display: grid;
    gap: 3px;
    justify-items: center;
    align-content: center;
    text-align: center;
}

    .public-referee-page .rfd-match-center time, .public-referee-page .rfd-match-competition, .public-referee-page .rfd-match-venue, .public-referee-page .rfd-penalty-score {
        font-size: .65rem;
        color: #607064;
        line-height: 1.3;
        overflow-wrap: anywhere;
        text-align: center;
    }

.public-referee-page .rfd-match-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    direction: rtl;
    border-radius: 8px;
    padding: 3px 7px;
    background: #edf5e8;
    color: var(--rfd-green-dark);
    font-size: 1.1rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.public-referee-page .rfd-match-status {
    font-size: .69rem;
    font-weight: 850;
    color: var(--rfd-green-dark);
    line-height: 1.4;
}

    .public-referee-page .rfd-match-status.is-live, .public-referee-page .rfd-match-status.is-danger {
        color: #a52d36;
    }

    .public-referee-page .rfd-match-status.is-pending {
        color: #896212;
    }

.public-referee-page .rfd-content-card .public-content-card {
    min-width: 0;
}

.public-referee-page .rfd-content-card .public-article-body {
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .public-referee-page .rfd-content-card {
        padding: 0 18px 20px;
    }

    .public-referee-page .rfd-main-tabs {
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
    }

    .public-referee-page .rfd-tab-button {
        min-height: 46px;
        min-width: 0;
        padding-inline: 5px;
        white-space: normal;
        text-align: center;
        font-size: .9rem;
    }

    .public-referee-page .rfd-facts {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .public-referee-page .rfd-metrics {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .public-referee-page .rfd-filter-row {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    }

        .public-referee-page .rfd-filter-row .rfd-filter-actions {
            grid-column: auto;
        }

    .public-referee-page .rfd-match-row {
        grid-template-columns: 35px minmax(0,1fr) minmax(120px,1fr) minmax(0,1fr) minmax(95px,.8fr);
        min-height: 75px;
        padding: 9px 13px;
        gap: 10px;
    }

    .public-referee-page .rfd-match-team {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
    }

        .public-referee-page .rfd-match-team img, .public-referee-page .rfd-team-fallback {
            flex: 0 0 38px;
            width: 38px;
            height: 38px;
        }

        .public-referee-page .rfd-match-team strong {
            font-size: .9rem;
        }

    .public-referee-page .rfd-match-center time, .public-referee-page .rfd-match-competition, .public-referee-page .rfd-match-venue {
        font-size: .78rem;
    }

    .public-referee-page .rfd-match-score {
        font-size: 1.28rem;
    }
}

@media (max-width: 359px) {
    .public-referee-page .rfd-content-card {
        padding-inline: 5px;
    }

    .public-referee-page .rfd-match-row {
        gap: 3px;
        grid-template-columns: 15px minmax(0,1fr) minmax(65px,1fr) minmax(0,1fr) minmax(35px,.65fr);
    }

    .public-referee-page .rfd-match-team strong {
        font-size: .67rem;
    }

    .public-referee-page .rfd-match-venue {
        font-size: .59rem;
    }
}

/* Studio and awards adapted from the current PlayerDetails stylesheet; scoped to this page. */
.public-referee-page .rfd-content-card .rfd-panel-heading {
    display: flex;
    min-height: 76px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 15px 12px;
    border-bottom: 1px solid #edf0ed;
    background: #fff;
}

.public-referee-page .rfd-content-card .rfd-panel-kicker {
    display: block;
    margin-bottom: 1px;
    color: var(--rfd-green);
    font-size: .52rem;
    font-weight: 950;
    letter-spacing: .04em;
}

.public-referee-page .rfd-content-card .rfd-panel-heading h2 {
    margin: 0;
    color: var(--rfd-navy);
    font-size: 1.08rem;
    font-weight: 950;
}

.public-referee-page .rfd-content-card .rfd-panel-heading p {
    margin: 3px 0 0;
    color: var(--rfd-muted);
    font-size: .59rem;
    line-height: 1.55;
}

.public-referee-page .rfd-content-card .rfd-panel-count {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--rfd-green-soft);
    color: var(--rfd-green-dark);
    font-size: .53rem;
    font-weight: 900;
}

.public-referee-page .rfd-content-card .rfd-empty-state {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: #8a949d;
    text-align: center;
}

    .public-referee-page .rfd-content-card .rfd-empty-state.compact {
        min-height: 95px;
        padding: 16px;
        border-radius: 9px;
        background: #fafbf9;
        font-size: .61rem;
    }

    .public-referee-page .rfd-content-card .rfd-empty-state.large {
        min-height: 270px;
        padding: 30px;
    }

        .public-referee-page .rfd-content-card .rfd-empty-state.large > span {
            font-size: 2rem;
        }

        .public-referee-page .rfd-content-card .rfd-empty-state.large strong {
            color: #53606c;
            font-size: .8rem;
        }

        .public-referee-page .rfd-content-card .rfd-empty-state.large small {
            max-width: 460px;
            font-size: .59rem;
            line-height: 1.65;
        }

.public-referee-page .rfd-content-card .rfd-studio-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 6px;
    padding: 9px;
    border-bottom: 1px solid #edf0ed;
    background: #fafcfa;
}

.public-referee-page .rfd-content-card .rfd-studio-filter {
    appearance: none;
    display: grid;
    min-height: 57px;
    place-items: center;
    align-content: center;
    gap: 1px;
    border: 1px solid #e1e7df;
    border-radius: 9px;
    background: #fff;
    color: #66737d;
    font-family: inherit;
    cursor: pointer;
}

    .public-referee-page .rfd-content-card .rfd-studio-filter:hover,
    .public-referee-page .rfd-content-card .rfd-studio-filter.is-active {
        border-color: #c9dac0;
        background: var(--rfd-green-soft);
        color: var(--rfd-green-dark);
    }

    .public-referee-page .rfd-content-card .rfd-studio-filter > span {
        font-size: .82rem;
    }

    .public-referee-page .rfd-content-card .rfd-studio-filter strong {
        font-size: .55rem;
        font-weight: 950;
    }

    .public-referee-page .rfd-content-card .rfd-studio-filter small {
        color: #929aa0;
        font-size: .46rem;
    }

.public-referee-page .rfd-content-card .rfd-studio-group {
    padding: 10px;
    border-bottom: 1px solid #edf0ed;
}

    .public-referee-page .rfd-content-card .rfd-studio-group:last-child {
        border-bottom: 0;
    }

    .public-referee-page .rfd-content-card .rfd-studio-group.is-filtered-out {
        display: none;
    }

.public-referee-page .rfd-content-card .rfd-studio-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

    .public-referee-page .rfd-content-card .rfd-studio-section-heading > div {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .public-referee-page .rfd-content-card .rfd-studio-section-heading strong {
        color: var(--rfd-navy);
        font-size: .68rem;
        font-weight: 950;
    }

    .public-referee-page .rfd-content-card .rfd-studio-section-heading small {
        color: #929aa0;
        font-size: .5rem;
    }

.public-referee-page .rfd-content-card .rfd-studio-image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 7px;
}

.public-referee-page .rfd-content-card .rfd-studio-image-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 9px;
    background: #edf2ea;
    color: #fff;
}

    .public-referee-page .rfd-content-card .rfd-studio-image-card img {
        width: 100%;
        height: 100%;
        min-height: 150px;
        object-fit: cover;
        transition: transform .18s ease;
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card:hover img {
        transform: scale(1.025);
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card > div {
        position: absolute;
        inset: auto 0 0;
        padding: 20px 8px 7px;
        background: linear-gradient( transparent, rgba(5,18,29,.78));
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card strong,
    .public-referee-page .rfd-content-card .rfd-studio-image-card span {
        display: block;
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card strong {
        overflow: hidden;
        font-size: .55rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card span {
        margin-top: 2px;
        color: rgba(255,255,255,.72);
        font-size: .44rem;
    }

.public-referee-page .rfd-content-card .rfd-studio-file-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px;
}

.public-referee-page .rfd-content-card .rfd-studio-file-card {
    display: grid;
    grid-template-columns: 39px minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 58px;
    padding: 8px;
    border: 1px solid #e2e7e1;
    border-radius: 9px;
    background: #fff;
    color: inherit;
}

    .public-referee-page .rfd-content-card .rfd-studio-file-card:hover {
        border-color: #c9d8c1;
        background: #fbfdf9;
    }

.public-referee-page .rfd-content-card .rfd-studio-file-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: #eff3ed;
    color: var(--rfd-green-dark);
    font-size: .67rem;
    font-weight: 950;
}

    .public-referee-page .rfd-content-card .rfd-studio-file-icon.video {
        background: #edf1f5;
        color: #41566d;
    }

    .public-referee-page .rfd-content-card .rfd-studio-file-icon.audio {
        background: #f3edf7;
        color: #76528b;
    }

    .public-referee-page .rfd-content-card .rfd-studio-file-icon.document {
        background: #fff0ef;
        color: #a54a43;
        font-size: .47rem;
    }

.public-referee-page .rfd-content-card .rfd-studio-file-card strong,
.public-referee-page .rfd-content-card .rfd-studio-file-card small {
    display: block;
}

.public-referee-page .rfd-content-card .rfd-studio-file-card strong {
    overflow: hidden;
    color: #40505c;
    font-size: .58rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-referee-page .rfd-content-card .rfd-studio-file-card small {
    margin-top: 2px;
    color: #91999f;
    font-size: .45rem;
}

.public-referee-page .rfd-content-card .rfd-studio-file-card > b {
    color: var(--rfd-green-dark);
    font-size: .51rem;
}

.public-referee-page .rfd-content-card .rfd-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 9px;
    padding: 10px;
}

.public-referee-page .rfd-content-card .rfd-award-card {
    display: grid;
    grid-template-columns: 43px minmax(0,1fr);
    gap: 9px;
    min-height: 130px;
    align-items: start;
    padding: 11px;
    border: 1px solid #e8e2d4;
    border-radius: 11px;
    background: linear-gradient( 145deg, #fffaf0, #fff);
}

.public-referee-page .rfd-content-card .rfd-award-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #fff2c8;
    font-size: 1.05rem;
}

.public-referee-page .rfd-content-card .rfd-award-copy {
    min-width: 0;
}

    .public-referee-page .rfd-content-card .rfd-award-copy > span {
        display: block;
        color: #997522;
        font-size: .44rem;
        font-weight: 900;
    }

    .public-referee-page .rfd-content-card .rfd-award-copy h3 {
        margin: 3px 0 0;
        color: var(--rfd-navy);
        font-size: .65rem;
        font-weight: 950;
        line-height: 1.45;
    }

    .public-referee-page .rfd-content-card .rfd-award-copy p {
        margin: 4px 0 0;
        color: #77828b;
        font-size: .49rem;
    }

    .public-referee-page .rfd-content-card .rfd-award-copy > small {
        display: block;
        margin-top: 5px;
        color: #858e95;
        font-size: .46rem;
        line-height: 1.55;
    }

.public-referee-page .rfd-content-card .rfd-award-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 7px;
}

    .public-referee-page .rfd-content-card .rfd-award-meta b,
    .public-referee-page .rfd-content-card .rfd-award-meta span {
        padding: 3px 5px;
        border-radius: 5px;
        background: #f5f0e4;
        color: #81671f;
        font-size: .42rem;
    }

@media (max-width: 991.98px) {
    .public-referee-page .rfd-content-card .rfd-studio-image-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .public-referee-page .rfd-content-card .rfd-awards-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 767.98px) {
    .public-referee-page .rfd-content-card .rfd-panel-heading {
        padding: 11px;
    }

        .public-referee-page .rfd-content-card .rfd-panel-heading h2 {
            font-size: .96rem;
        }

    .public-referee-page .rfd-content-card .rfd-studio-summary-grid {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .public-referee-page .rfd-content-card .rfd-studio-summary-grid::-webkit-scrollbar {
            display: none;
        }

    .public-referee-page .rfd-content-card .rfd-studio-filter {
        flex: 0 0 90px;
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .public-referee-page .rfd-content-card .rfd-studio-file-grid {
        grid-template-columns: 1fr;
    }

    .public-referee-page .rfd-content-card .rfd-awards-grid {
        grid-template-columns: 1fr;
        padding: 8px;
    }
}

@media (max-width: 479.98px) {
    .public-referee-page .rfd-content-card .rfd-studio-image-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card,
    .public-referee-page .rfd-content-card .rfd-studio-image-card img {
        min-height: 120px;
    }
}

/* Gedian Posts card styling from the existing Index stylesheet; scoped to this page. */
.public-referee-page .rfd-content-card .gedian-posts-panel-head {
    background: linear-gradient( 145deg, #fbfdf9, #ffffff);
}

.public-referee-page .rfd-content-card .gedian-posts-list {
    display: grid;
    gap: 12px;
    padding: 12px;
    background: #f6f8f5;
}

.public-referee-page .rfd-content-card .gedian-community-post {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe6dc;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(25, 43, 30, .035);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

    .public-referee-page .rfd-content-card .gedian-community-post:hover {
        transform: translateY(-1px);
        border-color: #bfd1b4;
        box-shadow: 0 10px 25px rgba(68, 105, 46, .075);
    }

    .public-referee-page .rfd-content-card .gedian-community-post.is-special {
        border-color: #d9c685;
        box-shadow: inset 0 3px 0 #c9a443, 0 6px 18px rgba(118, 90, 22, .05);
    }

.public-referee-page .rfd-content-card .gedian-post-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.public-referee-page .rfd-content-card .gedian-post-head,
.public-referee-page .rfd-content-card .gedian-post-text,
.public-referee-page .rfd-content-card .gedian-repost-reference,
.public-referee-page .rfd-content-card .gedian-post-image-grid,
.public-referee-page .rfd-content-card .gedian-post-engagement {
    position: relative;
    z-index: 1;
}

.public-referee-page .rfd-content-card .gedian-post-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 12px 13px 8px;
}

.public-referee-page .rfd-content-card .gedian-post-author-avatar {
    position: relative;
    z-index: 4;
    display: grid;
    width: 48px;
    height: 48px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #dfe6dc;
    border-radius: 50%;
    background: #edf4e9;
    color: #416d29;
}

    .public-referee-page .rfd-content-card .gedian-post-author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.public-referee-page .rfd-content-card .gedian-post-avatar-fallback {
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient( 145deg, #eaf2e6, #f7faf5);
    color: #416d29;
    font-size: .82rem;
    font-weight: 950;
}

.public-referee-page .rfd-content-card .gedian-post-author-copy {
    min-width: 0;
}

.public-referee-page .rfd-content-card .gedian-post-author-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.public-referee-page .rfd-content-card .gedian-post-author-name {
    position: relative;
    z-index: 4;
    overflow: hidden;
    color: #172d22;
    font-size: .78rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-referee-page .rfd-content-card a.gedian-post-author-name:hover {
    color: #416d29;
}

.public-referee-page .rfd-content-card .gedian-post-verified {
    display: inline-grid;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #5B8C3B;
    color: #fff;
    font-size: .52rem;
    font-weight: 950;
}

.public-referee-page .rfd-content-card .gedian-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 2px;
    color: #88928a;
    font-size: .55rem;
}

    .public-referee-page .rfd-content-card .gedian-post-meta i {
        color: #c0c7bd;
        font-style: normal;
    }

.public-referee-page .rfd-content-card .gedian-post-head-badges {
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.public-referee-page .rfd-content-card .gedian-post-special-badge,
.public-referee-page .rfd-content-card .gedian-post-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .5rem;
    font-weight: 900;
    white-space: nowrap;
}

.public-referee-page .rfd-content-card .gedian-post-special-badge {
    background: #fff5d6;
    color: #8a6814;
}

.public-referee-page .rfd-content-card .gedian-post-type-badge.is-repost {
    background: #edf4ff;
    color: #426a96;
}

.public-referee-page .rfd-content-card .gedian-post-type-badge.is-external {
    background: #f0edf9;
    color: #685389;
}

.public-referee-page .rfd-content-card .gedian-post-text {
    padding: 3px 14px 12px;
    pointer-events: none;
}

    .public-referee-page .rfd-content-card .gedian-post-text p {
        margin: 0;
        color: #2c3931;
        font-size: .75rem;
        font-weight: 500;
        line-height: 1.9;
        white-space: pre-line;
        word-break: break-word;
    }

.public-referee-page .rfd-content-card .gedian-post-read-more {
    display: inline-block;
    margin-top: 5px;
    color: #5B8C3B;
    font-size: .55rem;
    font-weight: 900;
}

.public-referee-page .rfd-content-card .gedian-repost-reference {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 0 13px 11px;
    padding: 9px 10px;
    border: 1px solid #dce7f2;
    border-radius: 10px;
    background: #f7fbff;
}

    .public-referee-page .rfd-content-card .gedian-repost-reference > span {
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
        border-radius: 8px;
        background: #e8f1fb;
        color: #466d96;
        font-size: .9rem;
    }

    .public-referee-page .rfd-content-card .gedian-repost-reference strong {
        display: block;
        color: #3a536c;
        font-size: .61rem;
        font-weight: 900;
    }

    .public-referee-page .rfd-content-card .gedian-repost-reference p {
        display: -webkit-box;
        overflow: hidden;
        margin: 2px 0 0;
        color: #6d7e8e;
        font-size: .55rem;
        line-height: 1.55;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .public-referee-page .rfd-content-card .gedian-repost-reference a,
    .public-referee-page .rfd-content-card .gedian-post-external-source,
    .public-referee-page .rfd-content-card .gedian-post-links a,
    .public-referee-page .rfd-content-card .gedian-post-video-list,
    .public-referee-page .rfd-content-card .gedian-post-audio-list {
        position: relative;
        z-index: 4;
    }

    .public-referee-page .rfd-content-card .gedian-repost-reference a {
        padding: 4px 7px;
        border-radius: 7px;
        background: #fff;
        color: #466d96;
        font-size: .52rem;
        font-weight: 900;
    }

.public-referee-page .rfd-content-card .gedian-post-external-source {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 13px 11px;
    padding: 9px 10px;
    border: 1px solid #e3def1;
    border-radius: 10px;
    background: #faf8ff;
    color: #675185;
    font-size: .59rem;
}

.public-referee-page .rfd-content-card .gedian-post-image-grid {
    display: grid;
    gap: 2px;
    overflow: hidden;
    margin-top: 2px;
    background: #edf0eb;
    pointer-events: none;
}

    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-1 {
        grid-template-columns: 1fr;
    }

    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-3,
    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.public-referee-page .rfd-content-card .gedian-post-image-cell {
    position: relative;
    min-height: 175px;
    overflow: hidden;
    background: #e8ece6;
}

.public-referee-page .rfd-content-card .gedian-post-image-grid.images-1
.gedian-post-image-cell {
    min-height: 360px;
}

.public-referee-page .rfd-content-card .gedian-post-image-grid.images-3
.gedian-post-image-cell:first-child {
    grid-row: span 2;
    min-height: 352px;
}

.public-referee-page .rfd-content-card .gedian-post-image-cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-referee-page .rfd-content-card .gedian-post-more-images {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(7, 26, 51, .58);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 950;
}

.public-referee-page .rfd-content-card .gedian-post-video-list {
    display: grid;
    gap: 7px;
    padding: 0 12px 11px;
}

.public-referee-page .rfd-content-card .gedian-post-video {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 11px;
    background: #07121d;
}

.public-referee-page .rfd-content-card .gedian-post-audio-list {
    display: grid;
    gap: 6px;
    padding: 0 12px 11px;
}

.public-referee-page .rfd-content-card .gedian-post-audio {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    padding: 7px 9px;
    border: 1px solid #e2e8df;
    border-radius: 10px;
    background: #f8faf7;
}

    .public-referee-page .rfd-content-card .gedian-post-audio > span {
        display: grid;
        width: 31px;
        height: 31px;
        place-items: center;
        border-radius: 8px;
        background: #eaf2e6;
    }

    .public-referee-page .rfd-content-card .gedian-post-audio audio {
        width: 100%;
        min-width: 0;
        height: 34px;
    }

.public-referee-page .rfd-content-card .gedian-post-links {
    display: grid;
    gap: 5px;
    padding: 0 12px 11px;
}

    .public-referee-page .rfd-content-card .gedian-post-links a {
        display: grid;
        grid-template-columns: 25px minmax(0, 1fr) auto;
        gap: 7px;
        align-items: center;
        padding: 8px 9px;
        border: 1px solid #e2e8df;
        border-radius: 9px;
        background: #fbfcfa;
        color: #40503e;
    }

        .public-referee-page .rfd-content-card .gedian-post-links a:hover {
            border-color: #c8d9be;
            background: #f3f8f0;
        }

    .public-referee-page .rfd-content-card .gedian-post-links strong {
        overflow: hidden;
        font-size: .58rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-referee-page .rfd-content-card .gedian-post-links i {
        color: #5B8C3B;
        font-style: normal;
    }

.public-referee-page .rfd-content-card .gedian-post-engagement {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 13px;
    min-height: 43px;
    padding: 8px 13px;
    border-top: 1px solid #e9eee6;
    background: #fbfcfb;
    color: #79837a;
    pointer-events: none;
}

    .public-referee-page .rfd-content-card .gedian-post-engagement > span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: .56rem;
    }

    .public-referee-page .rfd-content-card .gedian-post-engagement b {
        color: #4a5749;
        font-weight: 900;
    }

.public-referee-page .rfd-content-card .gedian-post-open-details {
    margin-right: auto;
    color: #416d29;
    font-weight: 900;
}

    .public-referee-page .rfd-content-card .gedian-post-open-details b {
        color: inherit;
    }

.public-referee-page .rfd-content-card .gedian-posts-empty {
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 28px;
    color: #7d887e;
    text-align: center;
}

    .public-referee-page .rfd-content-card .gedian-posts-empty > span {
        display: grid;
        width: 50px;
        height: 50px;
        place-items: center;
        margin-bottom: 4px;
        border-radius: 50%;
        background: #edf5e9;
        color: #5B8C3B;
        font-size: 1.35rem;
    }

    .public-referee-page .rfd-content-card .gedian-posts-empty strong {
        color: #42503f;
        font-size: .8rem;
        font-weight: 950;
    }

    .public-referee-page .rfd-content-card .gedian-posts-empty small {
        max-width: 390px;
        font-size: .6rem;
        line-height: 1.7;
    }

@media (max-width: 767.98px) {
    .public-referee-page .rfd-content-card .gedian-posts-list {
        gap: 8px;
        padding: 8px;
    }

    .public-referee-page .rfd-content-card .gedian-community-post {
        border-radius: 12px;
    }

    .public-referee-page .rfd-content-card .gedian-post-head {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        padding: 10px 10px 7px;
    }

    .public-referee-page .rfd-content-card .gedian-post-author-avatar {
        width: 42px;
        height: 42px;
    }

    .public-referee-page .rfd-content-card .gedian-post-author-name {
        font-size: .68rem;
    }

    .public-referee-page .rfd-content-card .gedian-post-meta {
        font-size: .49rem;
    }

    .public-referee-page .rfd-content-card .gedian-post-text {
        padding: 3px 11px 10px;
    }

        .public-referee-page .rfd-content-card .gedian-post-text p {
            font-size: .67rem;
            line-height: 1.8;
        }

    .public-referee-page .rfd-content-card .gedian-post-image-cell {
        min-height: 145px;
    }

    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-1
    .gedian-post-image-cell {
        min-height: 285px;
    }

    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-3
    .gedian-post-image-cell:first-child {
        min-height: 292px;
    }
}

@media (max-width: 479.98px) {
    .public-referee-page .rfd-content-card .gedian-post-head {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .public-referee-page .rfd-content-card .gedian-post-author-avatar {
        width: 40px;
        height: 40px;
    }

    .public-referee-page .rfd-content-card .gedian-post-head-badges {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        padding-right: 49px;
    }

    .public-referee-page .rfd-content-card .gedian-post-image-cell {
        min-height: 120px;
    }

    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-1
    .gedian-post-image-cell {
        min-height: 235px;
    }

    .public-referee-page .rfd-content-card .gedian-post-image-grid.images-3
    .gedian-post-image-cell:first-child {
        min-height: 242px;
    }

    .public-referee-page .rfd-content-card .gedian-post-engagement {
        gap: 5px 9px;
    }

    .public-referee-page .rfd-content-card .gedian-post-open-details {
        width: 100%;
        margin-right: 0;
        padding-top: 3px;
        border-top: 1px dashed #e2e8df;
    }
}

.public-referee-page .rfd-content-card .gedian-posts-list {
    max-width: 760px;
    margin-inline: auto;
    padding: 6px;
}

.public-referee-page .rfd-content-card .gedian-post-author-avatar {
    grid-template: minmax(0,1fr) / minmax(0,1fr);
}

    .public-referee-page .rfd-content-card .gedian-post-author-avatar img {
        grid-area: 1/1;
        display: block;
        min-width: 0;
        min-height: 0;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.public-referee-page .rfd-content-card .gedian-post-avatar-fallback {
    grid-area: 1/1;
    display: grid;
}

.public-referee-page .rfd-content-card .gedian-post-text p {
    font-size: .86rem;
    line-height: 1.85;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.public-referee-page .rfd-content-card .gedian-post-author-name {
    font-size: .86rem;
}

.public-referee-page .rfd-content-card .gedian-post-meta, .public-referee-page .rfd-content-card .gedian-post-engagement {
    font-size: .7rem;
}

.public-referee-page .rfd-content-card .gedian-post-image-cell {
    min-height: 0;
    aspect-ratio: 1/1;
}

.public-referee-page .rfd-content-card .gedian-post-image-grid.images-1 .gedian-post-image-cell {
    min-height: 0;
    aspect-ratio: auto;
    display: grid;
    place-items: center;
}

.public-referee-page .rfd-content-card .gedian-post-image-grid.images-1 img {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(680px,72vh);
    object-fit: contain;
}

.public-referee-page .rfd-content-card .gedian-post-image-grid:not(.images-1) img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.public-referee-page .rfd-content-card .gedian-post-image-grid.images-3 .gedian-post-image-cell:first-child {
    min-height: 0;
    aspect-ratio: auto;
    grid-row: span 2;
}

.public-referee-page .rfd-content-card .gedian-repost-reference a,
.public-referee-page .rfd-content-card .gedian-post-author-name,
.public-referee-page .rfd-content-card .gedian-post-author-avatar,
.public-referee-page .rfd-content-card .gedian-post-external-source,
.public-referee-page .rfd-content-card .gedian-post-links a,
.public-referee-page .rfd-content-card .gedian-post-video-list,
.public-referee-page .rfd-content-card .gedian-post-audio-list {
    position: relative;
    z-index: 4;
}

.public-referee-page .rfd-content-card .gedian-post-head, .public-referee-page .rfd-content-card .gedian-repost-reference {
    z-index: auto;
}

.public-referee-page .rfd-content-card .gedian-post-video, .public-referee-page .rfd-content-card .gedian-post-audio audio {
    max-width: 100%;
}

.public-referee-page .rfd-content-card .rfd-studio-filter strong, .public-referee-page .rfd-content-card .rfd-studio-section-heading strong {
    font-size: .78rem;
}

.public-referee-page .rfd-content-card .rfd-studio-filter small, .public-referee-page .rfd-content-card .rfd-studio-section-heading small {
    font-size: .68rem;
}

.public-referee-page .rfd-content-card .rfd-studio-file-card strong, .public-referee-page .rfd-content-card .rfd-award-copy h3 {
    font-size: .85rem;
}

.public-referee-page .rfd-content-card .rfd-studio-file-card small, .public-referee-page .rfd-content-card .rfd-award-copy p, .public-referee-page .rfd-content-card .rfd-award-copy > small, .public-referee-page .rfd-content-card .rfd-award-meta span, .public-referee-page .rfd-content-card .rfd-award-meta b {
    font-size: .7rem;
}

.public-referee-page .rfd-content-card .rfd-studio-file-card, .public-referee-page .rfd-content-card .rfd-studio-image-card {
    text-decoration: none;
}

.public-referee-page .rfd-content-card .rfd-studio-image-card {
    min-height: 0;
    aspect-ratio: 1/1;
}

    .public-referee-page .rfd-content-card .rfd-studio-image-card img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card strong {
        font-size: .71rem;
    }

    .public-referee-page .rfd-content-card .rfd-studio-image-card span {
        font-size: .62rem;
    }

.public-referee-page .rfd-content-card .rfd-empty-state.compact, .public-referee-page .rfd-content-card .rfd-empty-state.large small {
    font-size: .78rem;
}

.public-referee-page .rfd-content-card .rfd-panel-heading {
    min-height: 0;
    padding: 4px 4px 12px;
}

    .public-referee-page .rfd-content-card .rfd-panel-heading p {
        font-size: .75rem;
    }

.public-referee-page .rfd-content-card .rfd-panel-count {
    font-size: .72rem;
}

.public-referee-page .rfd-content-card .rfd-studio-group[hidden] {
    display: none !important;
}

.public-referee-page .rfd-content-card .rfd-match-team strong {
    max-width: 100%;
}

.public-referee-page .rfd-content-card .rfd-match-center > * {
    max-width: 100%;
}

.public-referee-page .rfd-content-card .rfd-match-row {
    box-sizing: border-box;
    min-width: 0;
}

.public-referee-page .rfd-content-card .gedian-post-text {
    min-width: 0;
}
