/* ================================================================
   FOLD CERTIFICATION — RESEARCH NOTICE + LEADERBOARD CONTRAST v8

   Paste this entire block at the VERY BOTTOM of:
   WordPress > Appearance > Customize > Additional CSS

   Applies the approved black-and-white contrast treatment to:
   1. Start Certification — Record and research notice
   2. Public Leaderboard — header, score rows, and score details

   Presentation only. Scores, rankings, records, and test behavior
   are not changed.
   ================================================================ */

/* ------------------------------------------------
   START CERTIFICATION — RECORD AND RESEARCH NOTICE
   ------------------------------------------------ */

html body:not(.wp-admin) .fold-start-research-notice,
html body:not(.wp-admin) .fold-research-notice.fold-start-research-notice {
    display: block !important;
    max-width: 1120px !important;
    margin: 24px auto !important;
    padding: 20px clamp(18px, 3vw, 34px) !important;
    text-align: center !important;
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #315b87 !important;
    border-left: 1px solid #315b87 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body:not(.wp-admin) .fold-start-research-notice .fold-research-notice-title,
html body:not(.wp-admin) .fold-research-notice.fold-start-research-notice .fold-research-notice-title {
    display: block !important;
    margin: 0 0 10px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: clamp(19px, 2vw, 23px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    text-shadow: none !important;
}

html body:not(.wp-admin) .fold-start-research-notice .fold-research-notice-copy,
html body:not(.wp-admin) .fold-research-notice.fold-start-research-notice .fold-research-notice-copy {
    display: block !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 15.5px !important;
    line-height: 1.72 !important;
    text-align: center !important;
    text-shadow: none !important;
}

/* ------------------------------------------------
   PUBLIC LEADERBOARD — OUTER WELL AND TABLE HEADER
   ------------------------------------------------ */

html body:not(.wp-admin) .fold-leaderboard-results-well {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    border-color: #244b73 !important;
    box-shadow: none !important;
}

html body:not(.wp-admin) .fold-leaderboard-polished,
html body:not(.wp-admin) .fold-leaderboard-polished thead,
html body:not(.wp-admin) .fold-leaderboard-polished thead tr,
html body:not(.wp-admin) .fold-leaderboard-polished thead th {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #315b87 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* ------------------------------------------------
   LEADERBOARD RESULT ROWS — BLACK WITH WHITE TEXT
   ------------------------------------------------ */

html body:not(.wp-admin) .fold-leaderboard-polished tbody tr,
html body:not(.wp-admin) .fold-leaderboard-polished tbody tr.fold-top-entry {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    border-color: #244b73 !important;
    box-shadow: none !important;
    animation: none !important;
}

html body:not(.wp-admin) .fold-leaderboard-polished tbody td,
html body:not(.wp-admin) .fold-leaderboard-polished tbody td:first-child,
html body:not(.wp-admin) .fold-leaderboard-polished tbody td:last-child,
html body:not(.wp-admin) .fold-leaderboard-polished tbody tr.fold-top-entry td {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #244b73 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body:not(.wp-admin) .fold-leaderboard-polished tbody td *,
html body:not(.wp-admin) .fold-leaderboard-polished tbody tr.fold-top-entry td * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

/* Preserve the rounded score-row shape while using blue borders. */
html body:not(.wp-admin) .fold-leaderboard-polished tbody td:first-child {
    border-left: 1px solid #244b73 !important;
}

html body:not(.wp-admin) .fold-leaderboard-polished tbody td:last-child {
    border-right: 1px solid #244b73 !important;
}

html body:not(.wp-admin) .fold-leaderboard-polished tbody td {
    border-top: 1px solid #244b73 !important;
    border-bottom: 1px solid #244b73 !important;
}

/* Score tiles inside each leaderboard row. */
html body:not(.wp-admin) .fold-leader-score-list,
html body:not(.wp-admin) .fold-leader-score-item,
html body:not(.wp-admin) .fold-leaderboard-polished tr.fold-top-entry td:nth-child(6) strong,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-verified-result-seal {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #315b87 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
}

html body:not(.wp-admin) .fold-leader-score-item span,
html body:not(.wp-admin) .fold-leader-score-item strong,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-rank,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-rank-label,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-score-number,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-cert-link,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-verified-result-seal {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

/* Links remain white and become pale blue only during interaction. */
html body:not(.wp-admin) .fold-leaderboard-polished a,
html body:not(.wp-admin) .fold-leaderboard-polished a:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

html body:not(.wp-admin) .fold-leaderboard-polished a:hover,
html body:not(.wp-admin) .fold-leaderboard-polished a:focus,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-cert-link:hover,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-cert-link:focus {
    color: #bfdbfe !important;
    -webkit-text-fill-color: #bfdbfe !important;
    text-shadow: none !important;
}

/* Status badges keep their meaning but use white wording. */
html body:not(.wp-admin) .fold-leaderboard-polished .fold-status,
html body:not(.wp-admin) .fold-leaderboard-polished .fold-badge,
html body:not(.wp-admin) .fold-leaderboard-polished [class*="status"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

@media (max-width: 800px) {
    html body:not(.wp-admin) .fold-leaderboard-polished tbody tr,
    html body:not(.wp-admin) .fold-leaderboard-polished tbody tr.fold-top-entry {
        background: #000000 !important;
        border: 1px solid #244b73 !important;
        box-shadow: none !important;
    }
}

/* END — FOLD RESEARCH NOTICE + LEADERBOARD CONTRAST v8 */
