/* ═══════════════════════════════════════════════
   JUDGE SCORING (voting + results pages)
   Builds on .sol-form-* / .awd-* / .container utilities.
═══════════════════════════════════════════════ */

.judge-vote-body { max-width: 860px; margin: 0 auto; padding-top: 32px; padding-bottom: 96px; }

.judge-hero-sub { font-weight: 700; font-size: 19px; }

.judge-gate-card {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.judge-gate-intro { font-size: 15px; color: var(--dark-slate); margin-bottom: 18px; line-height: 1.6; }

.judge-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding: 12px 16px; margin-bottom: 24px;
    background: #F4F6F5; border-radius: 8px; font-size: 14px; color: var(--dark-slate);
}
.judge-toolbar p { margin: 0; }
.judge-link-btn {
    background: none; border: none; color: var(--bright-blue); text-decoration: underline;
    font-size: 13px; cursor: pointer; padding: 0;
}

.judge-category { margin-top: 44px; }
.judge-category:first-of-type { margin-top: 8px; }
.judge-category-title {
    font-size: 22px; font-weight: 700; color: #00174C;
    border-bottom: 2px solid #00174C; padding-bottom: 8px; margin-bottom: 16px;
}

.judge-nom-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px;
    margin-bottom: 12px; overflow: hidden;
}
.judge-nom-summary {
    padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
    list-style: none;
}
.judge-nom-summary::-webkit-details-marker { display: none; }
.judge-nom-summary::before {
    content: '▸'; float: right; color: var(--mid-gray); transition: transform .15s;
}
details[open] > .judge-nom-summary::before { transform: rotate(90deg); }
.judge-nom-title { font-weight: 700; font-size: 16.5px; color: #00174C; }
.judge-nom-sub { font-size: 13px; color: var(--mid-gray); }

.judge-nom-body { padding: 4px 18px 22px; border-top: 1px solid rgba(0,0,0,0.06); }
.judge-field-label {
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--bright-blue); margin: 18px 0 6px;
}
.judge-desc p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--dark-slate); }
.judge-links-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.judge-links-row .linkbtn {
    font-weight: 600; font-size: 13.5px; color: var(--bright-blue); text-decoration: none;
    border: 1px solid var(--bright-blue); border-radius: 7px; padding: 6px 12px; display: inline-flex;
}

.judge-score-form { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(0,0,0,0.1); }
.judge-criterion { margin-bottom: 16px; }
.judge-criterion-label { font-weight: 700; font-size: 14.5px; color: #00174C; margin: 0 0 2px; }
.judge-criterion-help { display: block; font-weight: 400; font-size: 13px; color: var(--mid-gray); margin-top: 2px; }

.judge-score-chips { display: flex; gap: 8px; margin-top: 8px; }
.judge-chip {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(0,0,0,0.15); border-radius: 8px; font-weight: 600; font-size: 14px;
    color: var(--dark-slate); cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.judge-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.judge-chip:hover { border-color: var(--bright-blue); }
.judge-chip.is-selected { background: #00174C; border-color: #00174C; color: #fff; }

.judge-save-btn { margin-top: 4px; }
.judge-save-status { margin-left: 14px; font-size: 13.5px; font-weight: 600; color: var(--mid-gray); }
.judge-save-status.is-success { color: #1a7f4a; }
.judge-save-status.is-error   { color: #c0392b; }

/* ---- results table ---- */
.judge-results-table-wrap { overflow-x: auto; }
.judge-results-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.judge-results-table th, .judge-results-table td {
    padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.judge-results-table th { font-size: 11.5px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mid-gray); vertical-align: bottom; }
/* Nomination titles wrap; score columns stay narrow and centered */
.judge-results-table .judge-col-name { min-width: 220px; line-height: 1.4; }
.judge-results-table .judge-col-num  { width: 1%; min-width: 72px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.judge-results-table th.judge-col-num { white-space: normal; }
.judge-results-table tbody tr:hover { background: rgba(0,23,76,0.03); }
.judge-overall-cell { font-weight: 700; color: #00174C; }

/* Phones: each nomination becomes a card, scores listed as label / value rows */
@media (max-width: 700px) {
    .judge-results-table thead { display: none; }
    .judge-results-table, .judge-results-table tbody, .judge-results-table tr, .judge-results-table td { display: block; width: 100%; }
    .judge-results-table tr { border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 6px 14px; margin-bottom: 12px; }
    .judge-results-table td { border-bottom: 1px solid rgba(0,0,0,0.05); padding: 8px 0; }
    .judge-results-table tr td:last-child { border-bottom: 0; }
    .judge-results-table .judge-col-name { min-width: 0; font-weight: 700; font-size: 15px; padding-top: 10px; }
    .judge-results-table .judge-col-num { display: flex; justify-content: space-between; gap: 16px; width: 100%; text-align: right; min-width: 0; }
    .judge-results-table .judge-col-num::before { content: attr(data-label); font-weight: 600; color: var(--mid-gray); text-align: left; }
}

@media (max-width: 600px) {
    .judge-score-chips { flex-wrap: wrap; }
}
