/* ─── Judge page: reuses /css/admin.css for login/nav/stats + photo popup ─── */

/* Top stats: 3 boxes desktop, stack on phones */
.judge-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.judge-stats-row .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card--btn {
  background: var(--bg-card);
  border: 1px solid var(--primary-border);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.15s, transform 0.1s;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
}
.stat-card--btn:hover { border-color: var(--accent); }
.stat-card--btn:active { transform: scale(0.98); }
.stat-card--btn:focus { outline: 2px solid rgba(249, 115, 22, 0.4); outline-offset: 2px; }

.stat-card--top-classes {
  text-align: left;
  padding: 1rem 1.25rem;
}

.stat-label--top {
  margin-bottom: 0.5rem;
  text-align: center;
}

.top-class-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.top-class-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.top-class-rank {
  font-family: 'Saira', sans-serif;
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 1.5rem;
}

.top-class-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-class-count {
  font-family: 'Saira', sans-serif;
  color: var(--text-secondary);
  background: rgba(249, 115, 22, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.top-class-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 720px) {
  .judge-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card--top-classes { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .judge-stats-row { grid-template-columns: 1fr; }
  .stat-card--top-classes { grid-column: auto; }
}

.judge-card {
  background: var(--bg-card);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  transition: transform 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}
.judge-card:active { cursor: grabbing; }
.judge-card.dragging {
  opacity: 0.92;
  border-color: var(--primary, var(--accent));
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.35);
  position: relative;
  z-index: 100;
  transition: none;
  user-select: none;
  touch-action: none;
}
/* Inputs / selects / buttons inside a card shouldn't inherit the grab cursor */
.judge-card input,
.judge-card select,
.judge-card button,
.judge-card a,
.judge-card textarea {
  cursor: auto;
}
.judge-card button,
.judge-card a { cursor: pointer; }
.judge-card,
.judge-card-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.judge-card-label {
  font-family: 'Saira', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.judge-card-body { color: var(--text-primary); }

.judge-empty {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.roster-section-label {
  font-family: 'Saira', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
}

/* ─── Roster table (mirrors the /admin table styling) ─────── */
.roster-table .col-num {
  width: 3rem;
  color: var(--accent);
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  white-space: nowrap;
  padding-right: 0.35rem;
}

.roster-table .col-photo {
  width: 88px;
  padding: 0.4rem 0.6rem;
}

.roster-table .col-name {
  font-family: 'Saira', sans-serif;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.roster-table .col-car { color: var(--text-secondary); white-space: nowrap; }
.roster-table .col-club { color: var(--text-muted); white-space: nowrap; }
.roster-table .col-class-text {
  color: var(--accent);
  font-family: 'Saira', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.col-class { min-width: 180px; }

.class-select {
  width: 100%;
  background: var(--bg-inset);
  color: var(--text-primary);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}
.class-select:hover { border-color: var(--accent); }
.class-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}
.class-select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.class-save-status {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.2rem;
  min-height: 0.9rem;
  letter-spacing: 0.05em;
}
.class-save-status.saving { color: var(--warning); }
.class-save-status.saved  { color: var(--accent); }
.class-save-status.error  { color: var(--error); }

.roster-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-inset);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, border-color 0.15s;
}

.roster-thumb:hover,
.roster-thumb:focus {
  transform: scale(1.06);
  border-color: var(--accent);
  outline: none;
}

.roster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roster-thumb--empty {
  color: var(--text-muted);
  cursor: default;
  font-family: 'Saira', sans-serif;
  font-size: 0.98rem;
}
.roster-thumb--empty:hover {
  transform: none;
  border-color: rgba(249, 115, 22, 0.3);
}

/* Floating popup image fills the JS-sized box at natural aspect ratio */
.vehicle-photo-popup img {
  height: 100% !important;
  object-fit: contain;
}

/* Whole row is now a tap target; keep the pointer cursor and stop the thumb
 * from capturing clicks so the row handler runs on any part of the row. */
.roster-row { cursor: pointer; }
.roster-row:focus { outline: 2px solid rgba(249, 115, 22, 0.4); outline-offset: -2px; }
.roster-row .roster-thumb { pointer-events: none; }

/* ─── Judge modal (phone-first full-screen card) ─────── */
.judge-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.judge-modal.hidden { display: none; }

.judge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.judge-modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 14px;
  padding: 1.75rem 1.25rem 1.5rem;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.judge-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.judge-modal-close:hover { color: var(--text-primary); background: rgba(0,0,0,0.05); }

.judge-modal-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  padding: 12px;
  border-radius: 10px;
  margin: 0 auto 1rem;
  width: fit-content;
}
.judge-modal-qr canvas,
.judge-modal-qr img { display: block; }

.judge-modal-photo {
  margin: 0 0 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: var(--bg-inset);
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.judge-modal-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
}

.judge-modal-info { color: var(--text-primary); }
.judge-modal-name {
  font-family: 'Saira', sans-serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem 0;
}
.judge-modal-car {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
}
.judge-modal-class {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent);
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin: 0;
}

.manual-lookup {
  max-width: 380px;
  margin: 0 auto 1.5rem;
}
.manual-lookup-label {
  display: block;
  font-family: 'Saira', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.manual-lookup-row {
  display: flex;
  gap: 0.5rem;
}
.manual-lookup-row input {
  flex: 1;
  background: var(--bg-inset);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--text-primary);
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.manual-lookup-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.manual-lookup-btn {
  background: var(--accent);
  color: #0D0D12;
  border: none;
  border-radius: 6px;
  padding: 0 1.1rem;
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.manual-lookup-btn:hover  { filter: brightness(1.08); }
.manual-lookup-btn:active { transform: scale(0.98); }
.manual-lookup-error {
  color: var(--error);
  font-size: 0.92rem;
  margin: 0.45rem 0 0;
}

.judge-modal-open-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: #0D0D12;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.judge-modal-open-btn:hover  { filter: brightness(1.08); }
.judge-modal-open-btn:active { transform: scale(0.98); }

.judge-modal-open-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Saira', sans-serif;
  letter-spacing: 0.05em;
}

/* On small phones the QR gets a touch smaller so everything fits above the fold */
@media (max-width: 400px) {
  .judge-modal-card { padding: 1.5rem 1rem 1.25rem; }
  .judge-modal-qr { padding: 10px; }
  .judge-modal-photo { max-height: 200px; }
  .judge-modal-photo img { max-height: 200px; }
}

/* Narrow phones: keep just Class Num + Car so judges can find the right
 * car at a glance from a QR-scan-driven workflow. Photo, Name, and Class
 * columns drop off; the outer .table-wrap still allows horizontal scroll
 * if anything overflows. */
@media (max-width: 520px) {
  .roster-table th.col-photo,
  .roster-table td.col-photo,
  .roster-table th.col-name,
  .roster-table td.col-name,
  .roster-table th.col-class,
  .roster-table td.col-class-text { display: none; }
}

/* ─── Shared award cards (used by /admin to show farthest + top clubs) ─── */
.judge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .judge-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.farthest-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.farthest-row.has-photo {
  flex-direction: row;
  align-items: flex-start;
}
.farthest-photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
}
.farthest-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.farthest-info { flex: 1 1 auto; min-width: 0; }
@media (max-width: 520px) {
  .farthest-row.has-photo { flex-direction: row; align-items: center; }
  .farthest-photo { width: 80px; height: 80px; }
}

.farthest-name {
  font-family: 'Saira', sans-serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}
.farthest-vehicle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0 0 0.45rem 0;
}
.farthest-distance {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}
.farthest-origin {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

.club-list { list-style: none; padding: 0; margin: 0; }
.club-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.club-item:last-child { border-bottom: none; }
.club-rank {
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  color: var(--accent);
  width: 1.75rem;
  flex-shrink: 0;
}
.club-name {
  flex: 1;
  color: var(--text-primary);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-count {
  font-family: 'Saira', sans-serif;
  font-size: 0.98rem;
  color: var(--text-secondary);
  background: rgba(249, 115, 22, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.club-item--clickable {
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 4px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.club-item--clickable:hover {
  background: rgba(249, 115, 22, 0.07);
}

.club-modal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
  font-family: 'Saira', sans-serif;
}
.club-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}
.club-member-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.club-member-row:last-child { border-bottom: none; }
.club-member-name {
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.club-member-car {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-align: right;
}
.club-member-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
  padding: 0.5rem 0.25rem;
}

/* ─── Registration heatmap (Mapbox GL JS) ─── */
.heatmap-card { grid-column: span 1; }

.heatmap-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: var(--bg-card);
}
.heatmap-map { width: 100%; height: 100%; display: block; object-fit: cover; }

.heatmap-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heatmap-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: auto;
  cursor: default;
}
.heatmap-dot-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.4), 0 0 10px rgba(249, 115, 22, 0.6);
  z-index: 2;
}
.heatmap-dot::before,
.heatmap-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.35);
  animation: heatmap-pulse 2.2s ease-out infinite;
}
.heatmap-dot::after { animation-delay: 1.1s; }
@keyframes heatmap-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(3.2); opacity: 0;   }
  100% { transform: scale(3.2); opacity: 0;   }
}

.heatmap-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.heatmap-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: var(--bg-card);
  color: var(--accent);
  font-family: 'Saira', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.heatmap-btn:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--accent);
}
.heatmap-btn--fit { font-size: 1.4rem; }

.heatmap-zoom-badge {
  margin-left: auto;
  padding: 0.1rem 0.4rem;
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.78rem;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Saira', sans-serif;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 0;
}
.heatmap-dot-legend {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.35);
  display: inline-block;
}

/* ─── Registrations over time card ─── */
.timeline-body { padding: 0; }
.timeline-svg {
  width: 100%;
  height: 190px;
  display: block;
}
.timeline-grid {
  stroke: rgba(0,0,0,0.06);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.timeline-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.55));
}
.timeline-dot {
  fill: var(--accent);
  stroke: var(--bg-card-alt);
  stroke-width: 1.5;
}
.timeline-axis-label {
  fill: var(--text-muted);
  font-family: 'Saira', sans-serif;
  font-size: 8px;
  letter-spacing: 0.04em;
}
.timeline-summary {
  display: flex;
  justify-content: space-around;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(249, 115, 22, 0.12);
}
.timeline-stat { text-align: center; }
.timeline-stat-num {
  display: block;
  font-family: 'Saira', sans-serif;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.1;
}
.timeline-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Saira', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ─── People's Choice card ─── */
.peoples-choice-body .pc-row-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pc-row-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pc-row-item:last-child { border-bottom: none; }
.pc-row-item--leader .pc-row-name { color: var(--accent); }
.pc-row-rank {
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: right;
}
.pc-row-main { display: block; min-width: 0; }
.pc-row-name {
  display: block;
  color: var(--text-primary);
  font-size: 0.98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-row-sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-row-votes {
  font-family: 'Saira', sans-serif;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}
.pc-row-total {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Saira', sans-serif;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ─── Specialty Awards dashboard card ─── */
.specialty-awards-body {
  /* Shows ~5 rows comfortably; anything beyond scrolls inside the tile.
     Custom teal scrollbar so it's obvious there's more to see. */
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.6) rgba(0, 0, 0, 0.25);
}
.specialty-awards-body::-webkit-scrollbar {
  width: 8px;
}
.specialty-awards-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.specialty-awards-body::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.55);
  border-radius: 4px;
}
.specialty-awards-body::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.85);
}
.sa-list { list-style: none; padding: 0; margin: 0; }
.sa-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sa-item:last-child { border-bottom: none; }
.sa-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  padding: 0.55rem 0.25rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s ease;
}
.sa-btn:hover { background: rgba(249, 115, 22, 0.05); }
.sa-winner {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.25;
}
.sa-winner--empty {
  color: var(--text-muted);
  font-style: italic;
  font-family: inherit;
  font-size: 0.92rem;
}
.sa-name {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  font-family: 'Saira', sans-serif;
  letter-spacing: 0.05em;
}

/* ─── Hardship awards card ─── */
.hardship-list-body {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.hardship-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hardship-list-item {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hardship-list-item:last-child { border-bottom: none; }
.hardship-list-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.55rem 0.25rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.hardship-list-btn:hover { background: rgba(249, 115, 22, 0.05); }
.hardship-list-item--winner .hardship-list-name {
  color: var(--accent);
}
.hardship-list-item--winner .hardship-list-btn {
  background: rgba(249, 115, 22, 0.06);
}
.hardship-list-name {
  display: block;
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.hardship-list-snippet {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hardship-modal-vehicle {
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}
.hardship-modal-text {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--bg-inset);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0 0 0.75rem;
}
.hardship-modal-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: right;
  margin: 0;
}

/* ─── Nav link back to /admin ──────────────────────────── */
.admin-nav-link {
  color: rgba(249, 115, 22, 0.75);
  font-family: 'Saira', sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 4px;
  transition: all 0.2s;
}
.admin-nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
