/* JCC Phase 6.9.6 — narrowly scoped live results polish. */

/* Compact Basic Search assessment. Comparison mode retains its current header. */
.live-assessment-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 1px solid #b9dfca;
  border-radius: 8px;
  background: #eaf8f0;
  color: #155724;
  box-shadow: 0 3px 10px rgba(15, 32, 75, .06);
}

.live-assessment-hero.status-warning {
  border-color: #ead68d;
  background: #fff8df;
  color: #664d03;
}

.live-assessment-hero.status-info {
  border-color: #b8dce6;
  background: #eef9fc;
  color: #0c5460;
}

.live-assessment-hero.status-danger {
  border-color: #e7bbc1;
  background: #fcedef;
  color: #721c24;
}

/* Deliberately straight accent treatment: no curved/vertical status stripe. */
.live-assessment-hero.status-verified,
.live-assessment-hero.status-warning,
.live-assessment-hero.status-info,
.live-assessment-hero.status-danger {
  border-left-width: 1px;
}

.live-assessment-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #15935a;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.status-warning .live-assessment-icon { background: #b98500; }
.status-info .live-assessment-icon { background: #16778c; }
.status-danger .live-assessment-icon { background: #b52c3b; }

.live-assessment-copy { min-width: 0; }
.live-assessment-eyebrow {
  margin: 0 0 3px;
  color: #08743e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-assessment-copy h3 {
  margin: 0;
  padding: 0 0 6px;
  border-bottom: 2px solid var(--ufs-yellow);
  color: var(--ufs-blue);
  font-size: 1.25rem;
  line-height: 1.3;
}
.live-assessment-copy p {
  margin: 7px 0 0;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.live-assessment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.live-assessment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border: 1px solid #aebfd4;
  border-radius: 999px;
  background: #f6f9fc;
  color: #405674;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.live-assessment-badge.badge-success { border-color: #82d7aa; background: #effbf4; color: #08743e; }
.live-assessment-badge.badge-info { border-color: #8fcaf0; background: #f0f8fe; color: #0969a8; }
.live-assessment-badge.badge-warning { border-color: #e0c266; background: #fff9e8; color: #765800; }
.live-assessment-badge.badge-danger { border-color: #dfa4ac; background: #fff2f4; color: #8a2330; }
.live-assessment-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 170px;
}
.live-assessment-actions .checked-inline { max-width: 220px; line-height: 1.4; }
.live-assessment-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Adopt the clean test-site information control treatment across all live icons. */
.inline-info-icon {
  border-color: #9fb9d5;
  background: #fff;
  color: #123b70;
  font: 800 12px/1 system-ui, sans-serif;
}
.inline-info-icon:hover,
.inline-info-icon:focus-visible,
.inline-info-icon.is-open,
.inline-info-icon[aria-expanded="true"] {
  border-color: #164a82;
  background: #164a82;
  color: #fff;
  outline: 2px solid rgba(35, 145, 225, .24);
  outline-offset: 2px;
  box-shadow: none;
}
.global-info-popover {
  border: 1px solid #bed1e4;
  border-top: 4px solid #16366b;
  border-radius: 14px;
  color: #16345c;
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 38, 69, .22);
}

/* Useful Links is emitted after Advisory Note and remains content-height. */
.final-advisory-card,
.useful-links-card { height: auto; }

@media (max-width: 900px) {
  .live-assessment-hero { grid-template-columns: 46px minmax(0, 1fr); }
  .live-assessment-actions {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-items: start;
  }
  .live-assessment-buttons { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .live-assessment-hero { grid-template-columns: 1fr; padding: 14px; }
  .live-assessment-icon { width: 40px; height: 40px; font-size: 24px; }
  .live-assessment-buttons { width: 100%; }
  .live-assessment-buttons .action-btn { flex: 1 1 100%; justify-content: center; }
}

/* JCC PHASE 6.9.7A4 — OFFICIAL JOURNAL LINK */
#resultsContainer .official-journal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #075ec7;
  font-weight: 700;
  text-decoration: none;
}

#resultsContainer .official-journal-link:hover,
#resultsContainer .official-journal-link:focus-visible {
  color: #003366;
  text-decoration: underline;
}

#resultsContainer .official-journal-link i {
  font-size: .88em;
}
/* END JCC PHASE 6.9.7A4 */

