/* PGRSC Member Dashboard Widgets */

/* Optional wrapper class for a Gutenberg Group block.
   Add the class "pgrsc-mdw-grid" to the parent Group to get an automatic responsive grid. */
.pgrsc-mdw-grid,
.pgrsc-mdw-grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 20px;
    align-items: stretch;
}

.pgrsc-mdw-widget {
    box-sizing: border-box;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    min-height: 150px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-top: 5px solid #06B6D4;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pgrsc-mdw-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}

/* When widgets are placed in the responsive grid, allow them to fill the cell. */
.pgrsc-mdw-grid .pgrsc-mdw-widget,
.pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-widget {
    max-width: none;
}

.pgrsc-mdw-title {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 1.05vw, 12px);
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: #64748B;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.pgrsc-mdw-value {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
    font-weight: 850;
    color: #0F172A;
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.pgrsc-mdw-note {
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 1.05vw, 13px);
    line-height: 1.35;
    color: #64748B;
    max-width: 95%;
    overflow-wrap: anywhere;
}

.pgrsc-mdw-link {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: #F8FAFC;
    color: #0f172a;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 750;
    max-width: 100%;
    text-align: center;
}

.pgrsc-mdw-link:hover {
    background: #E2E8F0;
    color: #0f172a;
}

/* Branding + functional color coding (PGRSC 1.1.17) */
.pgrsc-mdw-members {
    border-top-color: #06B6D4;
    background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
}
.pgrsc-mdw-members .pgrsc-mdw-value { color: #06B6D4; }

.pgrsc-mdw-jobs {
    border-top-color: #2563EB;
    background: linear-gradient(180deg, #ffffff 0%, #EFF6FF 100%);
}
.pgrsc-mdw-jobs .pgrsc-mdw-value { color: #2563EB; }

.pgrsc-mdw-consultants {
    border-top-color: #10B981;
    background: linear-gradient(180deg, #ffffff 0%, #ECFDF5 100%);
}
.pgrsc-mdw-consultants .pgrsc-mdw-value { color: #047857; }

.pgrsc-mdw-presentations {
    border-top-color: #2563EB;
    background: linear-gradient(180deg, #ffffff 0%, #EFF6FF 100%);
}
.pgrsc-mdw-presentations .pgrsc-mdw-value { color: #2563EB; }

.pgrsc-mdw-roster {
    border-top-color: #64748b;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.pgrsc-mdw-roster .pgrsc-mdw-value {
    font-size: clamp(21px, 3.1vw, 34px);
    line-height: 1.04;
    color: #0F172A;
}

/* Roster status states */
.pgrsc-mdw-roster-empty,
.pgrsc-mdw-roster-draft {
    border-top-color: #F59E0B;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}
.pgrsc-mdw-roster-empty .pgrsc-mdw-value,
.pgrsc-mdw-roster-draft .pgrsc-mdw-value { color: #B45309; }

.pgrsc-mdw-roster-pcr_pending,
.pgrsc-mdw-roster-pcr_review,
.pgrsc-mdw-roster-pending {
    border-top-color: #06B6D4;
    background: linear-gradient(180deg, #ffffff 0%, #ECFEFF 100%);
}
.pgrsc-mdw-roster-pcr_pending .pgrsc-mdw-value,
.pgrsc-mdw-roster-pcr_review .pgrsc-mdw-value,
.pgrsc-mdw-roster-pending .pgrsc-mdw-value { color: #0284C7; }

.pgrsc-mdw-roster-publish {
    border-top-color: #10B981;
    background: linear-gradient(180deg, #ffffff 0%, #ECFDF5 100%);
}
.pgrsc-mdw-roster-publish .pgrsc-mdw-value { color: #047857; }

.pgrsc-mdw-roster-pcr_more_info {
    border-top-color: #F97316;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}
.pgrsc-mdw-roster-pcr_more_info .pgrsc-mdw-value { color: #C2410C; }

.pgrsc-mdw-roster-pcr_rejected,
.pgrsc-mdw-roster-pcr_withdrawn,
.pgrsc-mdw-roster-pcr_archived {
    border-top-color: #EF4444;
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}
.pgrsc-mdw-roster-pcr_rejected .pgrsc-mdw-value,
.pgrsc-mdw-roster-pcr_withdrawn .pgrsc-mdw-value,
.pgrsc-mdw-roster-pcr_archived .pgrsc-mdw-value { color: #B91C1C; }

/* My submitted job opportunities widget */
.pgrsc-mdw-my-jobs {
    border-top-color: #06B6D4;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
    gap: 10px;
}
.pgrsc-mdw-my-jobs .pgrsc-mdw-value { color: #06B6D4; }

.pgrsc-mdw-my-jobs-empty {
    border-top-color: #CBD5E1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.pgrsc-mdw-my-jobs-empty .pgrsc-mdw-value { color: #64748B; }

.pgrsc-mdw-breakdown {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: -2px;
}

.pgrsc-mdw-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 24px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
    border: 1px solid transparent;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgrsc-mdw-pill strong {
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.pgrsc-mdw-breakdown-pending {
    color: #0284C7;
    background: #ECFEFF;
    border-color: #A5F3FC;
}
.pgrsc-mdw-breakdown-published {
    color: #047857;
    background: #ECFDF5;
    border-color: #A7F3D0;
}
.pgrsc-mdw-breakdown-rejected {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}
.pgrsc-mdw-breakdown-expired {
    color: #B45309;
    background: #fef3c7;
    border-color: #fde68a;
}

/* Profile completeness widget */
.pgrsc-mdw-profile-widget {
    max-width: 530px;
    border-top-color: #64748b;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    gap: 10px;
    justify-content: flex-start;
    min-height: 220px;
    aspect-ratio: auto;
    padding: 20px;
}

/* True wide behavior when the widgets are inside the dashboard grid. */
.pgrsc-mdw-grid .pgrsc-mdw-profile-widget,
.pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-profile-widget {
    grid-column: span 2;
}

.pgrsc-mdw-profile-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    color: #0f172a;
    width: 100%;
}

.pgrsc-mdw-profile-value strong {
    font-size: clamp(32px, 3.6vw, 44px);
    line-height: 1;
    font-weight: 900;
}

.pgrsc-mdw-profile-value span {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pgrsc-mdw-progress {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: #E2E8F0;
}

.pgrsc-mdw-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #64748b;
    transition: width 220ms ease;
}

.pgrsc-mdw-profile-low {
    border-top-color: #EF4444;
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}
.pgrsc-mdw-profile-low .pgrsc-mdw-profile-value strong { color: #B91C1C; }
.pgrsc-mdw-profile-low .pgrsc-mdw-progress span { background: #EF4444; }

.pgrsc-mdw-profile-medium {
    border-top-color: #F59E0B;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}
.pgrsc-mdw-profile-medium .pgrsc-mdw-profile-value strong { color: #B45309; }
.pgrsc-mdw-profile-medium .pgrsc-mdw-progress span { background: #F59E0B; }

.pgrsc-mdw-profile-high {
    border-top-color: #10B981;
    background: linear-gradient(180deg, #ffffff 0%, #ECFDF5 100%);
}
.pgrsc-mdw-profile-high .pgrsc-mdw-profile-value strong { color: #047857; }
.pgrsc-mdw-profile-high .pgrsc-mdw-progress span { background: #10B981; }

.pgrsc-mdw-profile-empty {
    border-top-color: #CBD5E1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.pgrsc-mdw-profile-empty .pgrsc-mdw-profile-value strong { color: #64748B; }

.pgrsc-mdw-profile-checklist {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 2px;
}

.pgrsc-mdw-profile-check {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 750;
    text-align: left;
    background: #F8FAFC;
    color: #64748B;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pgrsc-mdw-profile-check-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 15px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.pgrsc-mdw-profile-check.is-complete {
    color: #047857;
    background: #ECFDF5;
}
.pgrsc-mdw-profile-check.is-complete .pgrsc-mdw-profile-check-icon {
    color: #ffffff;
    background: #10B981;
}

.pgrsc-mdw-profile-check.is-missing {
    color: #B45309;
    background: #fef3c7;
}
.pgrsc-mdw-profile-check.is-missing .pgrsc-mdw-profile-check-icon {
    color: #ffffff;
    background: #F59E0B;
}

/* Tablet: two columns, readable cards. */
@media (max-width: 900px) {
    .pgrsc-mdw-grid,
    .pgrsc-mdw-grid > .wp-block-group__inner-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .pgrsc-mdw-widget {
        max-width: none;
        aspect-ratio: auto;
        min-height: 145px;
        padding: 18px;
    }

    .pgrsc-mdw-title,
    .pgrsc-mdw-note {
        min-height: auto;
    }

    .pgrsc-mdw-profile-widget {
        min-height: 220px;
    }
}

/* Narrow tablet / small containers: keep wide widget readable without forcing two columns. */
@media (max-width: 760px) {
    .pgrsc-mdw-grid .pgrsc-mdw-profile-widget,
    .pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-profile-widget {
        grid-column: span 1;
    }

    .pgrsc-mdw-profile-checklist {
        grid-template-columns: 1fr;
    }
}

/* Mobile: one clean column, compact and centered. */
@media (max-width: 600px) {
    .pgrsc-mdw-grid,
    .pgrsc-mdw-grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pgrsc-mdw-widget {
        max-width: none;
        width: 100%;
        aspect-ratio: auto;
        min-height: 126px;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .pgrsc-mdw-widget:hover {
        transform: none;
    }

    .pgrsc-mdw-value {
        font-size: clamp(30px, 9vw, 40px);
    }

    .pgrsc-mdw-roster .pgrsc-mdw-value {
        font-size: clamp(25px, 8vw, 34px);
    }

    .pgrsc-mdw-link {
        width: 100%;
        min-height: 38px;
        padding: 9px 12px;
    }

    .pgrsc-mdw-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 280px;
    }

    .pgrsc-mdw-profile-widget {
        min-height: auto;
        padding: 18px 16px;
    }

    .pgrsc-mdw-profile-value strong {
        font-size: clamp(32px, 11vw, 42px);
    }
}

/* Very small phones and very narrow Gutenberg columns. */
@media (max-width: 420px) {
    .pgrsc-mdw-title {
        font-size: 10px;
        letter-spacing: 0.045em;
    }

    .pgrsc-mdw-note {
        font-size: 12px;
    }

    .pgrsc-mdw-breakdown {
        grid-template-columns: 1fr;
        max-width: 220px;
    }

    .pgrsc-mdw-pill {
        white-space: normal;
        min-height: 25px;
    }

    .pgrsc-mdw-profile-check {
        font-size: 10.5px;
        border-radius: 14px;
    }
}

/* Submitted abstracts table widget */
.pgrsc-mdw-table-widget {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    border-top: 3px solid #2563EB;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.pgrsc-mdw-grid .pgrsc-mdw-table-widget,
.pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-table-widget {
    grid-column: 1 / -1;
}

.pgrsc-mdw-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pgrsc-mdw-table-title {
    margin: 0;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.pgrsc-mdw-table-subtitle {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748B;
}

.pgrsc-mdw-table-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid #BFDBFE;
}

.pgrsc-mdw-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pgrsc-mdw-abstracts-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #0F172A;
}

.pgrsc-mdw-abstracts-table th,
.pgrsc-mdw-abstracts-table td {
    padding: 13px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #F8FAFC;
}

.pgrsc-mdw-abstracts-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .055em;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
}

.pgrsc-mdw-abstracts-table th:first-child {
    border-top-left-radius: 15px;
}

.pgrsc-mdw-abstracts-table th:last-child {
    border-top-right-radius: 15px;
}

.pgrsc-mdw-abstracts-table tbody tr {
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.pgrsc-mdw-abstracts-table tbody tr:nth-child(even) td {
    background: #F8FAFC;
}

.pgrsc-mdw-abstracts-table tbody tr:hover td {
    background: #EFF6FF;
}

.pgrsc-mdw-abstracts-table tbody tr:last-child td {
    border-bottom: 0;
}

.pgrsc-mdw-abstract-title {
    color: #0f172a;
    font-weight: 700;
    min-width: 280px;
    line-height: 1.35;
}

.pgrsc-mdw-status-pill,
.pgrsc-mdw-archive-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}

.pgrsc-mdw-status-pending {
    color: #0284C7;
    background: #ECFEFF;
    border-color: #A5F3FC;
}
.pgrsc-mdw-status-review {
    color: #C2410C;
    background: #fff7ed;
    border-color: #fed7aa;
}
.pgrsc-mdw-status-accepted {
    color: #047857;
    background: #ECFDF5;
    border-color: #A7F3D0;
}
.pgrsc-mdw-status-rejected {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}
.pgrsc-mdw-status-withdrawn {
    color: #64748B;
    background: #F8FAFC;
    border-color: #cbd5e1;
}

.pgrsc-mdw-archive-current {
    color: #06B6D4;
    background: #f0fdfa;
    border-color: #A5F3FC;
}
.pgrsc-mdw-archive-archived {
    color: #64748B;
    background: #f8fafc;
    border-color: #E2E8F0;
}

.pgrsc-mdw-table-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 760px) {
    .pgrsc-mdw-table-widget {
        padding: 18px 14px;
        border-radius: 18px;
        border-top-width: 3px;
    }

    .pgrsc-mdw-table-head {
        align-items: stretch;
        margin-bottom: 14px;
    }

    .pgrsc-mdw-table-scroll {
        overflow-x: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .pgrsc-mdw-abstracts-table {
        display: block;
        min-width: 0;
        width: 100%;
        border-collapse: collapse;
    }

    .pgrsc-mdw-abstracts-table thead {
        display: none;
    }

    .pgrsc-mdw-abstracts-table tbody,
    .pgrsc-mdw-abstracts-table tr,
    .pgrsc-mdw-abstracts-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .pgrsc-mdw-abstracts-table tr {
        margin-bottom: 12px;
        border: 1px solid #E2E8F0;
        border-radius: 16px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
    }

    .pgrsc-mdw-abstracts-table td {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 11px 13px;
        border-bottom: 1px solid #F8FAFC;
        background: #ffffff !important;
    }

    .pgrsc-mdw-abstracts-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .pgrsc-mdw-abstracts-table tr td:last-child {
        border-bottom: 0;
    }

    .pgrsc-mdw-abstract-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .pgrsc-mdw-table-head {
        flex-direction: column;
        gap: 10px;
    }

    .pgrsc-mdw-table-count {
        align-self: flex-start;
    }

    .pgrsc-mdw-abstracts-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Dashboard metric breakdown variants added in v1.0.10 */
.pgrsc-mdw-breakdown-expiring-soon {
    color: #B45309;
    background: #fffbeb;
    border-color: #fde68a;
}
.pgrsc-mdw-breakdown-featured {
    color: #2563EB;
    background: #EFF6FF;
    border-color: #BFDBFE;
}
.pgrsc-mdw-breakdown-current {
    color: #047857;
    background: #ECFDF5;
    border-color: #A7F3D0;
}
.pgrsc-mdw-breakdown-archived {
    color: #64748B;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pgrsc-mdw-action-col,
.pgrsc-mdw-action-cell {
    width: 96px;
    text-align: right;
    white-space: nowrap;
}

.pgrsc-mdw-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    border: 1px solid #0f172a;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pgrsc-mdw-action-button:hover,
.pgrsc-mdw-action-button:focus {
    background: #0F172A;
    border-color: #0F172A;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 9px 18px rgba(15, 23, 42, 0.16);
}

.pgrsc-mdw-action-muted {
    color: #CBD5E1;
    font-weight: 800;
}

@media (max-width: 760px) {
    .pgrsc-mdw-action-col,
    .pgrsc-mdw-action-cell {
        width: 100%;
        text-align: left;
        white-space: normal;
    }

    .pgrsc-mdw-action-button {
        width: max-content;
        min-width: 86px;
    }
}

/* New shared renderer improvements added in v1.0.16 */
.pgrsc-mdw-widget {
    min-height: 190px;
    text-decoration: none !important;
    color: inherit;
}

.pgrsc-mdw-widget:focus-visible {
    outline: 3px solid rgba(31, 111, 150, 0.28);
    outline-offset: 3px;
}

.pgrsc-mdw-icon {
    width: 24px;
    height: 24px;
    color: #0F172A;
    opacity: .88;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pgrsc-mdw-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.pgrsc-mdw-badges {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 24px;
}

.pgrsc-mdw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
    color: #0F172A;
    background: #F8FAFC;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pgrsc-mdw-note,
.pgrsc-mdw-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pgrsc-mdw-grid,
.pgrsc-mdw-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.pgrsc-mdw-grid .pgrsc-mdw-widget,
.pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-widget {
    height: 100%;
}

.pgrsc-mdw-news {
    border-top-color: #06B6D4;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}
.pgrsc-mdw-news .pgrsc-mdw-value { color: #06B6D4; }
.pgrsc-mdw-badge-new { color: #B45309; background: #fffbeb; border-color: #fde68a; }

.pgrsc-mdw-events {
    border-top-color: #2563EB;
    background: linear-gradient(180deg, #ffffff 0%, #EFF6FF 100%);
}
.pgrsc-mdw-events .pgrsc-mdw-value { color: #2563EB; }
.pgrsc-mdw-events-empty .pgrsc-mdw-value { color: #64748b; }

.pgrsc-mdw-countdown {
    border-top-color: #19648E !important;
    background: linear-gradient(180deg, #ffffff 0%, #d6f0ff 100%) !important;
}
.pgrsc-mdw-countdown .pgrsc-mdw-value { color: #2563EB !important; font-size: clamp(25px, 3.4vw, 38px); }

/* Conference countdown phase colors - v1.1.18 */
.pgrsc-mdw-countdown-upcoming,
.pgrsc-mdw-countdown-comingsoon {
    border-top-color: #19648E !important;
    background: linear-gradient(180deg, #ffffff 0%, #d6f0ff 100%) !important;
}
.pgrsc-mdw-countdown-upcoming .pgrsc-mdw-value,
.pgrsc-mdw-countdown-comingsoon .pgrsc-mdw-value {
    color: #2563EB !important;
}

.pgrsc-mdw-countdown-cfp {
    border-top-color: #19648E !important;
    background: linear-gradient(180deg, #ffffff 0%, #d6f0ff 100%) !important;
}
.pgrsc-mdw-countdown-cfp .pgrsc-mdw-value { color: #06B6D4 !important; }

.pgrsc-mdw-countdown-review {
    border-top-color: #047857 !important;
    background: linear-gradient(180deg, #ffffff 0%, #EEF7F3 100%) !important;
}
.pgrsc-mdw-countdown-review .pgrsc-mdw-value { color: #047857 !important; }

.pgrsc-mdw-countdown-registration {
    border-top-color: #19648E !important;
    background: linear-gradient(180deg, #ffffff 0%, #d6f0ff 100%) !important;
}
.pgrsc-mdw-countdown-registration .pgrsc-mdw-value { color: #C2410C !important; }

.pgrsc-mdw-countdown-earlybird {
    border-top-color: #19648E !important;
    background: linear-gradient(180deg, #ffffff 0%, #d6f0ff 100%) !important;
}
.pgrsc-mdw-countdown-earlybird .pgrsc-mdw-value { color: #2563EB !important; }

.pgrsc-mdw-countdown-live {
    border-top-color: #EF4444 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%) !important;
}
.pgrsc-mdw-countdown-live .pgrsc-mdw-value { color: #EF4444 !important; }

.pgrsc-mdw-countdown-completed {
    border-top-color: #64748b !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}
.pgrsc-mdw-countdown-completed .pgrsc-mdw-value { color: #64748B !important; }

.pgrsc-mdw-badge-upcoming,
.pgrsc-mdw-badge-comingsoon,
.pgrsc-mdw-badge-setup {
    color: #64748B !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.pgrsc-mdw-badge-cfp {
    color: #06B6D4 !important;
    background: #ECFEFF !important;
    border-color: #A5F3FC !important;
}
.pgrsc-mdw-badge-review {
    color: #047857 !important;
    background: #F8FAFC !important;
    border-color: #EEF7F3 !important;
}
.pgrsc-mdw-badge-registration {
    color: #C2410C !important;
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}
.pgrsc-mdw-badge-earlybird {
    color: #2563EB !important;
    background: #F8FAFC !important;
    border-color: #EFF6FF !important;
}
.pgrsc-mdw-badge-live {
    color: #B91C1C !important;
    background: #fef2f2 !important;
    border-color: #FECACA !important;
}
.pgrsc-mdw-badge-completed {
    color: #64748B !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.pgrsc-mdw-score {
    border-top-color: #0F172A;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.pgrsc-mdw-score .pgrsc-mdw-value { color: #0f172a; }
.pgrsc-mdw-score-active,
.pgrsc-mdw-score-strong,
.pgrsc-mdw-score-leading { border-top-color: #10B981; background: linear-gradient(180deg, #ffffff 0%, #ECFDF5 100%); }
.pgrsc-mdw-score-active .pgrsc-mdw-value,
.pgrsc-mdw-score-strong .pgrsc-mdw-value,
.pgrsc-mdw-score-leading .pgrsc-mdw-value { color: #047857; }
.pgrsc-mdw-score-starting { border-top-color: #CBD5E1; }
.pgrsc-mdw-score-member { border-top-color: #2563EB; }
.pgrsc-mdw-badge-score-raw { color: #64748B; background: #f8fafc; border-color: #cbd5e1; }

@media (max-width: 560px) {
    .pgrsc-mdw-widget {
        min-height: 170px;
        padding: 16px;
        gap: 9px;
    }
    .pgrsc-mdw-icon {
        width: 21px;
        height: 21px;
    }
}

/* v1.0.19 - readable countdown phase badges */
.pgrsc-mdw-badge-stacked {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 10px;
    border-radius: 12px;
    line-height: 1.12;
    white-space: normal;
    text-align: center;
    min-width: min(100%, 150px);
}

.pgrsc-mdw-badge-stacked .pgrsc-mdw-badge-main {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgrsc-mdw-badge-stacked .pgrsc-mdw-badge-meta {
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .025em;
    opacity: .82;
    text-transform: none;
}


/* v1.0.19 - conference countdown phase badges: readable rectangular blocks */
.pgrsc-mdw-countdown .pgrsc-mdw-badges {
    margin-top: 1px;
    gap: 7px;
    align-items: stretch;
}

.pgrsc-mdw-countdown .pgrsc-mdw-badge-stacked {
    width: 100%;
    max-width: 230px;
    min-width: 0;
    padding: 8px 11px;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.18;
}

.pgrsc-mdw-countdown .pgrsc-mdw-badge-stacked .pgrsc-mdw-badge-main {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.pgrsc-mdw-countdown .pgrsc-mdw-badge-stacked .pgrsc-mdw-badge-meta {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .035em;
    opacity: .78;
}

.pgrsc-mdw-badge-upcoming { color: #64748B !important; background: #f8fafc !important; border-color: #cbd5e1 !important; }
.pgrsc-mdw-badge-completed { color: #64748B !important; background: #f8fafc !important; border-color: #cbd5e1 !important; }
.pgrsc-mdw-badge-comingsoon,
.pgrsc-mdw-badge-setup { color: #64748B !important; background: #f8fafc !important; border-color: #cbd5e1 !important; }

@media (max-width: 560px) {
    .pgrsc-mdw-countdown .pgrsc-mdw-badge-stacked {
        max-width: 100%;
    }
}

/* v1.1.0 - Community Score stars, progress bar and explanatory hover tooltip */
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip] {
    position: relative;
    overflow: visible;
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]::after {
    content: attr(data-pgrsc-mdw-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    width: min(280px, 88vw);
    padding: 11px 13px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 20;
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    transform: translateX(-50%) translateY(4px);
    border: 7px solid transparent;
    border-top-color: #0f172a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 21;
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]:hover::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]:focus::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]:focus-visible::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]:hover::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]:focus::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pgrsc-mdw-score {
    gap: 10px;
}

.pgrsc-mdw-score-stars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 24px;
    margin-bottom: -2px;
}

.pgrsc-mdw-score-star {
    width: 22px;
    height: 22px;
    display: block;
}

.pgrsc-mdw-score-star-outline {
    color: #0F172A;
}

.pgrsc-mdw-score-star-filled {
    color: #facc15;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12));
}

.pgrsc-mdw-score-progress {
    width: min(132px, 78%);
    height: 8px;
    margin: -2px auto 0;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.pgrsc-mdw-score-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563EB;
}

.pgrsc-mdw-score-starting .pgrsc-mdw-score-progress span { background: #CBD5E1; }
.pgrsc-mdw-score-member .pgrsc-mdw-score-progress span { background: #2563EB; }
.pgrsc-mdw-score-active .pgrsc-mdw-score-progress span { background: #10B981; }
.pgrsc-mdw-score-strong .pgrsc-mdw-score-progress span { background: #B45309; }
.pgrsc-mdw-score-leading .pgrsc-mdw-score-progress span { background: #facc15; }

.pgrsc-mdw-score .pgrsc-mdw-note {
    min-height: 1.6em;
    text-transform: none;
    font-weight: 500;
}

@media (max-width: 560px) {
    .pgrsc-mdw-widget[data-pgrsc-mdw-tooltip]::after {
        bottom: calc(100% + 10px);
        width: min(260px, 84vw);
        font-size: 11.5px;
    }
    .pgrsc-mdw-score-star {
        width: 20px;
        height: 20px;
    }
}

/* v1.1.1 - Adaptive tooltip placement */
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]::after {
    top: calc(100% + 12px);
    bottom: auto;
    transform: translateX(-50%) translateY(-4px);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]::before {
    top: calc(100% + 5px);
    bottom: auto;
    transform: translateX(-50%) translateY(-4px);
    border-top-color: transparent;
    border-bottom-color: #0f172a;
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]:hover::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]:focus::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]:focus-visible::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]:hover::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]:focus::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"]:focus-visible::before {
    transform: translateX(-50%) translateY(0);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]::after {
    left: 12px;
    right: auto;
    transform: translateY(4px);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]::before {
    left: 28px;
    right: auto;
    transform: translateY(4px);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"][data-pgrsc-mdw-tooltip-align="left"]::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"][data-pgrsc-mdw-tooltip-align="left"]::before {
    transform: translateY(-4px);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]:hover::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]:focus::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]:focus-visible::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]:hover::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]:focus::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="left"]:focus-visible::before {
    transform: translateY(0);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]::after {
    left: auto;
    right: 12px;
    transform: translateY(4px);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]::before {
    left: auto;
    right: 28px;
    transform: translateY(4px);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"][data-pgrsc-mdw-tooltip-align="right"]::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-position="bottom"][data-pgrsc-mdw-tooltip-align="right"]::before {
    transform: translateY(-4px);
}

.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]:hover::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]:focus::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]:focus-visible::after,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]:hover::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]:focus::before,
.pgrsc-mdw-widget[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="right"]:focus-visible::before {
    transform: translateY(0);
}

/* v1.1.2 - Conference countdown responsive height fix
   The countdown card contains a title, a large value, a phase badge and a note.
   It needs more vertical space than the compact KPI widgets, especially in narrow columns. */
.pgrsc-mdw-countdown {
    aspect-ratio: auto;
    min-height: 260px;
    height: auto;
    justify-content: flex-start;
    gap: 11px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.pgrsc-mdw-countdown .pgrsc-mdw-title,
.pgrsc-mdw-countdown .pgrsc-mdw-note {
    display: flex;
    -webkit-line-clamp: initial;
    -webkit-box-orient: initial;
    overflow: visible;
    min-height: auto;
}

.pgrsc-mdw-countdown .pgrsc-mdw-title {
    flex: 0 0 auto;
}

.pgrsc-mdw-countdown .pgrsc-mdw-value {
    flex: 0 0 auto;
}

.pgrsc-mdw-countdown .pgrsc-mdw-badges {
    flex: 0 0 auto;
}

.pgrsc-mdw-countdown .pgrsc-mdw-note {
    flex: 1 1 auto;
    align-items: flex-start;
    max-width: 100%;
}

.pgrsc-mdw-grid .pgrsc-mdw-countdown,
.pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-countdown {
    height: auto;
    align-self: stretch;
}

@media (max-width: 900px) {
    .pgrsc-mdw-countdown {
        min-height: 245px;
    }
}

@media (max-width: 600px) {
    .pgrsc-mdw-countdown {
        min-height: 230px;
        padding: 18px 16px;
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .pgrsc-mdw-countdown {
        min-height: 245px;
    }

    .pgrsc-mdw-countdown .pgrsc-mdw-value {
        font-size: clamp(24px, 8vw, 34px);
    }
}


/* =========================================================
   v1.1.10 - Member Live Ticker refinements
   Slightly wider/thicker ticker, slower scroll, wider item gaps,
   urgency colors and dynamic message classes.
========================================================= */
.pgrsc-mdw-live-ticker{
    display:flex;
    align-items:center;
    width:calc(100% + 40px);
    max-width:calc(100% + 40px);
    margin-left:-20px;
    min-height:34px;
    border:1px solid rgba(13,110,159,.22);
    border-radius:999px;
    overflow:hidden;
    background:#F8FAFC;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.pgrsc-mdw-live-ticker-label{
    flex:0 0 auto;
    align-self:stretch;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    background:#2563EB;
    color:#fff;
    font-size:11px;
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.02em;
    white-space:nowrap;
    position:relative;
    z-index:3;
}

.pgrsc-mdw-live-ticker-viewport{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    position:relative;
}

.pgrsc-mdw-live-ticker-track{
    display:flex;
    width:max-content;
    white-space:nowrap;
    will-change:transform;
    animation:pgrsc-mdw-live-ticker-scroll var(--pgrsc-mdw-ticker-duration,157s) linear infinite;
}

.pgrsc-mdw-live-ticker:hover .pgrsc-mdw-live-ticker-track,
.pgrsc-mdw-live-ticker:focus-within .pgrsc-mdw-live-ticker-track{
    animation-play-state:paused;
}

.pgrsc-mdw-live-ticker-set{
    display:flex;
    align-items:center;
    flex:0 0 auto;
    white-space:nowrap;
}

.pgrsc-mdw-live-ticker-item{
    display:inline-flex;
    align-items:center;
    color:#06B6D4;
    font-size:13px;
    line-height:1;
    font-weight:700;
    white-space:nowrap;
    padding:0 26px;
}

.pgrsc-mdw-live-ticker-separator{
    color:#06B6D4;
    opacity:.9;
    font-weight:900;
    padding:0 8px;
}

.pgrsc-mdw-live-ticker-item-notice{
    color:#F59E0B;
    font-weight:800;
}

.pgrsc-mdw-live-ticker-item-warning{
    color:#F97316;
    font-weight:850;
}

.pgrsc-mdw-live-ticker-item-urgent{
    color:#EF4444;
    font-weight:900;
}

.pgrsc-mdw-live-ticker-item-action{
    color:#2563EB;
    font-weight:850;
}

.pgrsc-mdw-live-ticker-item-success{
    color:#047857;
    font-weight:850;
}

.pgrsc-mdw-live-ticker-item-job{
    color:#B45309;
    font-weight:800;
}

.pgrsc-mdw-live-ticker-item-news,
.pgrsc-mdw-live-ticker-item-event,
.pgrsc-mdw-live-ticker-item-dynamics{
    color:#2563EB;
    font-weight:800;
}

@keyframes pgrsc-mdw-live-ticker-scroll{
    from{ transform:translateX(0); }
    to{ transform:translateX(-50%); }
}

@media(max-width:768px){
    .pgrsc-mdw-live-ticker{
        width:100%;
        max-width:100%;
        margin-left:0;
        min-height:36px;
    }
    .pgrsc-mdw-live-ticker-label{
        padding:0 12px;
        font-size:10px;
    }
    .pgrsc-mdw-live-ticker-item{
        font-size:12px;
        padding:0 22px;
    }
}


/* v1.1.11 - Force Community Score tooltip to open on the right side of the widget */
.pgrsc-mdw-grid,
.pgrsc-mdw-grid > .wp-block-group__inner-container {
    overflow: visible !important;
}

.pgrsc-mdw-score[data-pgrsc-mdw-tooltip] {
    position: relative !important;
    overflow: visible !important;
    z-index: 1000 !important;
}

.pgrsc-mdw-score[data-pgrsc-mdw-tooltip]:hover,
.pgrsc-mdw-score[data-pgrsc-mdw-tooltip]:focus,
.pgrsc-mdw-score[data-pgrsc-mdw-tooltip]:focus-visible {
    z-index: 999999 !important;
}

.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]::after {
    left: calc(100% + 16px) !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: min(310px, 44vw) !important;
    max-width: 310px !important;
    transform: translateX(-4px) translateY(-50%) !important;
    z-index: 999999 !important;
}

.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]::before {
    left: calc(100% + 3px) !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    border: 7px solid transparent !important;
    border-right-color: #0f172a !important;
    transform: translateX(-4px) translateY(-50%) !important;
    z-index: 1000000 !important;
}

.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:hover::after,
.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus::after,
.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus-visible::after,
.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:hover::before,
.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus::before,
.pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus-visible::before {
    transform: translateX(0) translateY(-50%) !important;
}

/* Mobile fallback: keep the tooltip readable when there is not enough room on the right. */
@media (max-width: 768px) {
    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]::after {
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: calc(100% + 12px) !important;
        width: min(280px, 86vw) !important;
        max-width: 280px !important;
        transform: translateX(-50%) translateY(4px) !important;
    }

    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]::before {
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: calc(100% + 5px) !important;
        border: 7px solid transparent !important;
        border-top-color: #0f172a !important;
        transform: translateX(-50%) translateY(4px) !important;
    }

    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:hover::after,
    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus::after,
    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus-visible::after,
    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:hover::before,
    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus::before,
    .pgrsc-mdw-score[data-pgrsc-mdw-tooltip][data-pgrsc-mdw-tooltip-align="side-right"]:focus-visible::before {
        transform: translateX(-50%) translateY(0) !important;
    }
}


/* Connected members: live online counter */
.pgrsc-mdw-online-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #047857;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 750;
    max-width: 100%;
}

.pgrsc-mdw-online-count strong {
    font-weight: 850;
}

.pgrsc-mdw-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
    flex: 0 0 auto;
}


/* Connected members: AJAX live presence indicator */
.pgrsc-mdw-members-live .pgrsc-mdw-presence-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    min-height: 0;
}

.pgrsc-mdw-members-live .pgrsc-mdw-presence-wrap:empty {
    display: none;
}

.pgrsc-mdw-members-live .pgrsc-mdw-online-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ECFDF5 0%, #A7F3D0 100%);
    color: #047857;
    border: 1px solid rgba(18, 183, 106, 0.22);
    box-shadow: 0 8px 18px rgba(18, 183, 106, 0.10);
    font-size: 12px;
    line-height: 1.15;
    font-weight: 750;
    max-width: 100%;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.pgrsc-mdw-members-live .pgrsc-mdw-online-count:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(18, 183, 106, 0.14);
}

.pgrsc-mdw-members-live .pgrsc-mdw-online-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
    flex: 0 0 auto;
}

.pgrsc-mdw-members-live .pgrsc-mdw-online-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1px solid rgba(18, 183, 106, 0.45);
    animation: pgrscMdwPresencePulse 1.8s ease-out infinite;
}

@keyframes pgrscMdwPresencePulse {
    0% {
        transform: scale(0.55);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pgrsc-mdw-members-live .pgrsc-mdw-online-dot::after {
        animation: none;
    }

    .pgrsc-mdw-members-live .pgrsc-mdw-online-count {
        transition: none;
    }
}


/* =========================================================
   v1.1.18 - FINAL countdown phase palette override
   Scoped to the conference countdown widget and loaded last.
========================================================= */
.pgrsc-mdw-widget.pgrsc-mdw-countdown { border-top-color:#19648E !important; background:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-value { color:#2563EB !important; }

.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-upcoming,
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-comingsoon { border-top-color:#19648E !important; background:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-upcoming .pgrsc-mdw-value,
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-comingsoon .pgrsc-mdw-value { color:#2563EB !important; }

.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-cfp { border-top-color:#19648E !important; background:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-cfp .pgrsc-mdw-value { color:#06B6D4 !important; }

.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-review { border-top-color:#047857 !important; background:linear-gradient(180deg,#ffffff 0%,#EEF7F3 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-review .pgrsc-mdw-value { color:#047857 !important; }

.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-registration { border-top-color:#19648E !important; background:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-registration .pgrsc-mdw-value { color:#C2410C !important; }

.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-earlybird { border-top-color:#19648E !important; background:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-earlybird .pgrsc-mdw-value { color:#2563EB !important; }

.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-live { border-top-color:#EF4444 !important; background:linear-gradient(180deg,#ffffff 0%,#fef2f2 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-live .pgrsc-mdw-value { color:#EF4444 !important; }

.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-completed { border-top-color:#64748b !important; background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown.pgrsc-mdw-countdown-completed .pgrsc-mdw-value { color:#64748B !important; }

.pgrsc-mdw-countdown .pgrsc-mdw-badge-upcoming,
.pgrsc-mdw-countdown .pgrsc-mdw-badge-comingsoon,
.pgrsc-mdw-countdown .pgrsc-mdw-badge-setup { color:#64748B !important; background:#f8fafc !important; border-color:#cbd5e1 !important; }
.pgrsc-mdw-countdown .pgrsc-mdw-badge-cfp { color:#06B6D4 !important; background:#ECFEFF !important; border-color:#A5F3FC !important; }
.pgrsc-mdw-countdown .pgrsc-mdw-badge-review { color:#047857 !important; background:#F8FAFC !important; border-color:#EEF7F3 !important; }
.pgrsc-mdw-countdown .pgrsc-mdw-badge-registration { color:#C2410C !important; background:#fff7ed !important; border-color:#fed7aa !important; }
.pgrsc-mdw-countdown .pgrsc-mdw-badge-earlybird { color:#2563EB !important; background:#F8FAFC !important; border-color:#EFF6FF !important; }
.pgrsc-mdw-countdown .pgrsc-mdw-badge-live { color:#B91C1C !important; background:#fef2f2 !important; border-color:#FECACA !important; }
.pgrsc-mdw-countdown .pgrsc-mdw-badge-completed { color:#64748B !important; background:#f8fafc !important; border-color:#cbd5e1 !important; }


/* =========================================================
   v1.1.19 - Countdown phase palette: desktop/mobile unified
   Direct rules loaded last in widgets.css.
========================================================= */
.pgrsc-mdw-widget.pgrsc-mdw-countdown,
.pgrsc-mdw-widget.pgrsc-mdw-countdown-upcoming,
.pgrsc-mdw-widget.pgrsc-mdw-countdown-comingsoon {
    border-top-color:#19648E !important;
    background:#ffffff !important;
    background-image:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important;
}
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-value,
.pgrsc-mdw-widget.pgrsc-mdw-countdown-upcoming .pgrsc-mdw-value,
.pgrsc-mdw-widget.pgrsc-mdw-countdown-comingsoon .pgrsc-mdw-value { color:#2563EB !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-cfp { border-top-color:#19648E !important; background:#ffffff !important; background-image:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-cfp .pgrsc-mdw-value { color:#06B6D4 !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-review { border-top-color:#047857 !important; background:#ffffff !important; background-image:linear-gradient(180deg,#ffffff 0%,#EEF7F3 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-review .pgrsc-mdw-value { color:#047857 !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-registration { border-top-color:#19648E !important; background:#ffffff !important; background-image:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-registration .pgrsc-mdw-value { color:#C2410C !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-earlybird { border-top-color:#19648E !important; background:#ffffff !important; background-image:linear-gradient(180deg,#ffffff 0%,#d6f0ff 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-earlybird .pgrsc-mdw-value { color:#2563EB !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-live { border-top-color:#EF4444 !important; background:#ffffff !important; background-image:linear-gradient(180deg,#ffffff 0%,#fef2f2 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-live .pgrsc-mdw-value { color:#EF4444 !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-completed { border-top-color:#64748b !important; background:#ffffff !important; background-image:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown-completed .pgrsc-mdw-value { color:#64748B !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-upcoming,
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-comingsoon,
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-setup { color:#64748B !important; background:#f8fafc !important; border-color:#cbd5e1 !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-cfp { color:#06B6D4 !important; background:#ECFEFF !important; border-color:#A5F3FC !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-review { color:#047857 !important; background:#F8FAFC !important; border-color:#EEF7F3 !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-registration { color:#C2410C !important; background:#fff7ed !important; border-color:#fed7aa !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-earlybird { color:#2563EB !important; background:#F8FAFC !important; border-color:#EFF6FF !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-live { color:#B91C1C !important; background:#fef2f2 !important; border-color:#FECACA !important; }
.pgrsc-mdw-widget.pgrsc-mdw-countdown .pgrsc-mdw-badge-completed { color:#64748B !important; background:#f8fafc !important; border-color:#cbd5e1 !important; }


/* =========================================================
   v1.2.5 - Flexible KPI widget sizing
   Applies to the compact dashboard KPI widgets only.
   Excludes: conference countdown, profile completeness, live ticker.
   Goal: keep a near-square visual rhythm while allowing cards to expand,
   contract and use available grid width more intelligently.
========================================================= */
.pgrsc-mdw-grid,
.pgrsc-mdw-grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(168px, 22vw, 260px)), 1fr));
    align-items: stretch;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) {
    width: 100%;
    max-width: none;
    min-width: 0;
    aspect-ratio: auto;
    min-height: clamp(148px, 82cqw, 215px);
    height: auto;
    padding: clamp(13px, 6.5cqw, 18px);
    gap: clamp(7px, 3.2cqw, 12px);
    container-type: inline-size;
    container-name: pgrsc-mdw-card;
}

.pgrsc-mdw-grid .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget),
.pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) {
    height: auto;
    align-self: stretch;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-title {
    min-height: auto;
    font-size: clamp(10px, 5.1cqw, 12px);
    line-height: 1.16;
    letter-spacing: clamp(0.035em, 0.22cqw, 0.055em);
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-value {
    font-size: clamp(27px, 18cqw, 43px);
    line-height: .98;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget).pgrsc-mdw-roster .pgrsc-mdw-value {
    font-size: clamp(20px, 13cqw, 34px);
    line-height: 1.02;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-note {
    min-height: auto;
    font-size: clamp(11px, 5.2cqw, 13px);
    line-height: 1.28;
    max-width: 100%;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-icon {
    width: clamp(18px, 9cqw, 24px);
    height: clamp(18px, 9cqw, 24px);
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-icon svg {
    width: clamp(17px, 8.2cqw, 22px);
    height: clamp(17px, 8.2cqw, 22px);
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-breakdown {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 82px), 1fr));
    gap: clamp(5px, 2.4cqw, 7px);
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-pill {
    min-width: 0;
    min-height: clamp(22px, 10cqw, 26px);
    padding: clamp(4px, 2.2cqw, 5px) clamp(6px, 3.2cqw, 8px);
    font-size: clamp(9.5px, 4.6cqw, 10.8px);
    white-space: normal;
    line-height: 1.08;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-pill strong {
    font-size: clamp(10.5px, 5.2cqw, 12px);
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-badges {
    min-height: 0;
    gap: clamp(5px, 2.5cqw, 7px);
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-badge {
    padding: clamp(4px, 2.2cqw, 5px) clamp(7px, 3.6cqw, 9px);
    font-size: clamp(9px, 4.4cqw, 10px);
    white-space: normal;
    line-height: 1.08;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-link {
    padding: clamp(7px, 3.2cqw, 9px) clamp(10px, 5cqw, 13px);
    font-size: clamp(10.5px, 4.8cqw, 12px);
    line-height: 1.12;
}

.pgrsc-mdw-members-live:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-presence-wrap {
    margin-top: clamp(2px, 1.8cqw, 8px);
}

.pgrsc-mdw-members-live:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-online-count {
    padding: clamp(5px, 2.4cqw, 7px) clamp(9px, 4.5cqw, 12px);
    font-size: clamp(10.5px, 4.8cqw, 12px);
    white-space: normal;
}

@container pgrsc-mdw-card (max-width: 190px) {
    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) {
        min-height: 142px;
        justify-content: center;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-title,
    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-note {
        -webkit-line-clamp: 2;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-breakdown {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@container pgrsc-mdw-card (min-width: 300px) {
    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) {
        min-height: 176px;
        justify-content: center;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-title,
    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-note {
        -webkit-line-clamp: 3;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-breakdown {
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    }
}

@media (max-width: 900px) {
    .pgrsc-mdw-grid,
    .pgrsc-mdw-grid > .wp-block-group__inner-container {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr));
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) {
        min-height: clamp(138px, 68cqw, 185px);
    }
}

@media (max-width: 600px) {
    .pgrsc-mdw-grid,
    .pgrsc-mdw-grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) {
        min-height: auto;
        padding: 16px;
        gap: 9px;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-breakdown {
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
}

@media (max-width: 420px) {
    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown):not(.pgrsc-mdw-profile-widget) .pgrsc-mdw-breakdown {
        grid-template-columns: 1fr;
    }
}

/* v1.2.7 - featured complete member profile messages in the live ticker. */
.pgrsc-mdw-live-ticker-item-member{
    color:#047857;
    font-weight:850;
}

/* v1.3.3 - Conference countdown hard fix: non-anchor root + isolated inner layout.
   This protects [pgrsc_widget_conference_countdown] from external block/theme CSS that
   decomposes linked shortcode content into independent grid/flex items. */
.pgrsc-mdw-countdown-isolated,
.pgrsc-mdw-grid .pgrsc-mdw-countdown-isolated,
.pgrsc-mdw-grid > .wp-block-group__inner-container .pgrsc-mdw-countdown-isolated {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 260px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    text-align: center !important;
    position: relative !important;
}

.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-inner {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
}

.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-icon,
.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-title,
.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-value,
.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-badges,
.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-note,
.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-link {
    position: static !important;
    float: none !important;
    clear: none !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
}

.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-title,
.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-note {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    white-space: normal !important;
}

.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-badges {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
}

.pgrsc-mdw-countdown-isolated .pgrsc-mdw-badge-stacked {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(100%, 230px) !important;
}

.pgrsc-mdw-countdown-isolated .pgrsc-mdw-countdown-link {
    display: inline-flex !important;
    text-decoration: none !important;
}


/* v1.3.5 - Safe compact text fix.
   Reverts the aggressive v1.3.4 approach and only prevents arbitrary mid-word cuts
   on narrow Gutenberg columns. Long secondary text is clipped cleanly instead of
   breaking words such as Published / consultant / opportunities. */
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-title,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-note,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-link,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-pill,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-badge,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-online-count {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-title,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-note {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-title {
    -webkit-line-clamp: 2 !important;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-note {
    -webkit-line-clamp: 3 !important;
}

.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-pill,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-badge,
.pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-online-count {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* The roster status value is the only long value string in the top cards. */
.pgrsc-mdw-widget.pgrsc-mdw-roster .pgrsc-mdw-value {
    font-size: clamp(22px, 11cqw, 30px) !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

@container pgrsc-mdw-card (max-width: 160px) {
    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) {
        padding: 13px !important;
        gap: 7px !important;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-title {
        font-size: 10px !important;
        line-height: 1.12 !important;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-note {
        font-size: 11px !important;
        line-height: 1.22 !important;
    }

    .pgrsc-mdw-widget.pgrsc-mdw-roster .pgrsc-mdw-value {
        font-size: 23px !important;
    }

    .pgrsc-mdw-widget:not(.pgrsc-mdw-countdown) .pgrsc-mdw-breakdown {
        gap: 5px !important;
    }
}
