/* Readiness KPI dashboard — radial pulsing ring + detail panel */

.readiness-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    padding: 24px 8px 40px;
}

.readiness-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}

/* Square container the nodes are positioned within (percent-based) */
.readiness-ring {
    position: relative;
    width: 460px;
    height: 460px;
    max-width: 78vw;
    max-height: 78vw;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--rz-base-background-color, #fff) 0 33%, transparent 34%),
        conic-gradient(from 0deg, rgba(128,128,128,0.10), rgba(128,128,128,0.03), rgba(128,128,128,0.10));
    box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.18);
}

/* Dashed guide circle the nodes sit on */
.readiness-ring::before {
    content: "";
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    border: 1px dashed rgba(128, 128, 128, 0.30);
}

.readiness-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    height: 42%;
    border-radius: 50%;
    border: 3px solid #099E32;
    background: var(--rz-base-background-color, #fff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
}

.readiness-score {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.readiness-score-sep {
    opacity: 0.45;
    margin: 0 2px;
    font-weight: 400;
}

.readiness-score-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rz-text-secondary-color, #888);
    margin-top: 4px;
}

.readiness-overall {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 6px;
}

/* Positioned nodes */
.readiness-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 96px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4;
}

.readiness-dot {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--rz-base-background-color, #fff), 0 0 0 4px rgba(0, 0, 0, 0.10);
    transition: transform 0.15s ease;
}

.readiness-dot.pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--pulse);
    z-index: -1;
    animation: readiness-pulse 2.2s ease-out infinite;
}

@keyframes readiness-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0; }
}

.readiness-node-label {
    font-size: 0.74rem;
    line-height: 1.15;
    text-align: center;
    color: var(--rz-text-color, #333);
    text-shadow: 0 0 3px var(--rz-base-background-color, #fff);
}

.readiness-node:hover .readiness-dot { transform: scale(1.25); }

.readiness-node.selected .readiness-dot {
    box-shadow: 0 0 0 3px var(--rz-base-background-color, #fff), 0 0 0 5px currentColor;
}
.readiness-node.selected .readiness-node-label { font-weight: 700; }

/* Legend */
.readiness-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color, #888);
}
.readiness-legend span { display: inline-flex; align-items: center; gap: 6px; }
.readiness-swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Detail panel */
.readiness-detail {
    flex: 1 1 320px;
    min-width: 300px;
    max-width: 520px;
    border: 1px solid rgba(128, 128, 128, 0.20);
    border-radius: 10px;
    padding: 20px 24px;
    background: var(--rz-base-background-color, #fff);
}

.readiness-hr { border: none; border-top: 1px solid rgba(128, 128, 128, 0.18); margin: 16px 0; }

.readiness-group { margin-bottom: 14px; }
.readiness-group-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rz-text-secondary-color, #888);
    margin-bottom: 4px;
}

.readiness-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    color: inherit;
}
.readiness-row:hover { background: rgba(128, 128, 128, 0.10); }
.readiness-row-title { flex: 1 1 auto; font-size: 0.9rem; }
.readiness-row-status { font-size: 0.78rem; font-weight: 600; }

.readiness-dot-sm { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }

.readiness-detail-head { display: flex; align-items: center; gap: 10px; }
.readiness-detail-group {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rz-text-secondary-color, #888);
    margin-top: 2px;
}
.readiness-pill {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 600;
}

/* CRL Currency page */
.crl-page { padding: 16px 8px 32px; max-width: 1000px; }
.crl-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.crl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    border: 1px solid var(--c);
    color: var(--c);
}
.crl-chip b { font-size: 1rem; }
.crl-table { max-width: 1000px; }
.crl-days { white-space: nowrap; font-weight: 600; }
.endpoint-url {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--rz-code-font-family, monospace);
    font-size: 0.8rem;
}

/* Indicator reference table */
.readiness-ref-wrap {
    padding: 8px 8px 24px;
    max-width: 1100px;
}
.readiness-ref-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0 12px;
}
.readiness-ref {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.readiness-ref th,
.readiness-ref td {
    text-align: left;
    padding: 8px 12px;
    vertical-align: top;
    border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}
.readiness-ref th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rz-text-secondary-color, #888);
    border-bottom: 1px solid rgba(128, 128, 128, 0.30);
    white-space: nowrap;
}
.readiness-ref-name {
    white-space: nowrap;
    font-weight: 600;
}
.readiness-ref-name .readiness-dot-sm {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.readiness-ref-muted { color: var(--rz-text-secondary-color, #888); }
.readiness-ref a { color: var(--rz-primary, #2F6FB8); text-decoration: none; }
.readiness-ref a:hover { text-decoration: underline; }
