/*! © 2026 VertexStudio, Inc. — All rights reserved. Proprietary and confidential. */
/* Agent readiness scorecard (scorecard.html). Uses shared tokens only. */

.sc-privacy {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  color: var(--muted); font-size: var(--fs-sm, .875rem);
}
.sc-privacy .vx-ic { width: 16px; height: 16px; color: var(--brand); }

.sc-section { padding-block: clamp(28px, 4vw, 56px); }
.sc-section:first-of-type { padding-top: 12px; }
.sc-wrap { max-width: 920px; margin-inline: auto; }
.sc-intro { margin-bottom: 32px; }
.sc-intro .section-h, .sc-method .section-h { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.sc-intro .section-p { max-width: 68ch; }

.sc .card:hover { transform: none; }
.sc-noscript { padding: 24px; color: var(--text-2); }
.sc-noscript a { color: var(--brand); text-decoration: underline; }

/* ── Areas and questions ── */
.sc-area { margin-bottom: 36px; }
.sc-area-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.sc-area-head .icon-tile { flex-shrink: 0; }
.sc-area-head h3 { font-size: 1.35rem; margin: 2px 0 4px; color: var(--text); }
.sc-area-head p { color: var(--text-2); margin: 0; line-height: 1.55; }

.sc-q {
  margin: 0 0 12px; padding: 18px 20px 20px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--glass-strong);
  box-shadow: var(--shadow-sm);
}
.sc-q legend {
  float: left; width: 100%; padding: 0;
  font: 600 1.02rem/1.45 var(--font-sans); color: var(--text); letter-spacing: -.005em;
}
.sc-q legend + * { clear: both; }
.sc-q-num { color: var(--brand); font-family: var(--font-mono); font-size: .9em; margin-right: 4px; }
.sc-hint { margin: 6px 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.sc-q-missing { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }

.sc-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-choice { position: relative; display: inline-flex; }
.sc-choice input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.sc-choice span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 44px;
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .95rem;
  transition: background .2s, border-color .2s, color .2s;
}
.sc-choice:hover span { border-color: var(--line-strong); background: var(--surface-3); }
.sc-choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.sc-choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }

.sc-submit { padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sc-progress { margin: 0; color: var(--text-2); font-family: var(--font-mono); font-size: .85rem; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sc-actions .btn-lg { font-size: .95rem; }
button.btn-lg { font: inherit; font-weight: 600; cursor: pointer; }
.sc-error { flex-basis: 100%; margin: 0; color: var(--rose); font-weight: 600; }
.sc-error[hidden] { display: none; }

/* ── Results ── */
.sc-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sc-results-section { padding-top: 0; }
.sc-result { padding: clamp(22px, 4vw, 40px); }
.sc-result-head h2 {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8rem); line-height: 1.1;
}
.sc-result-head h2 .vx-ic { width: 32px; height: 32px; color: var(--brand); flex-shrink: 0; }
.sc-result-head h2:focus-visible { outline-offset: 6px; }
.sc-total { margin: 10px 0 0; color: var(--text-2); font-family: var(--font-mono); }
.sc-total strong { color: var(--text); font-size: 1.2em; }
.sc-summary { margin: 14px 0 0; color: var(--text-2); line-height: 1.65; max-width: 68ch; }
.sc-cap { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--amber); background: var(--surface-2); border-radius: var(--r-xs); color: var(--text-2); }

.sc-result-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 36px; margin-top: 32px; }
.sc-result-grid h3 { font-size: 1.1rem; margin: 0 0 14px; color: var(--text); }

.sc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sc-bar-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.sc-bar-num { font-family: var(--font-mono); font-weight: 500; color: var(--text-2); font-size: .85rem; white-space: nowrap; }
.sc-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.sc-bar span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--grad-brand); }

.sc-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.sc-steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 52px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.sc-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font: 600 .8rem var(--font-mono);
}
.sc-steps p { margin: 0 0 8px; color: var(--text); line-height: 1.55; }
.sc-lesson { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.sc-lesson .vx-ic { width: 16px; height: 16px; flex-shrink: 0; }
.sc-step-area { display: block; margin-top: 6px; color: var(--muted); font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }

.sc-result-cta { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sc-result-cta p { margin: 0; color: var(--text-2); max-width: 44ch; }

/* ── Method ── */
.sc-method-list { margin: 18px 0 0; padding-left: 1.2em; color: var(--text-2); line-height: 1.7; display: grid; gap: 8px; max-width: 72ch; }
.sc-method-list strong { color: var(--text); }

/* ── Dark theme: brand blue on dark needs the lighter tone for text ── */
[data-theme="dark"] .sc-lesson, [data-theme="dark"] .sc-q-num { color: var(--brand-2); }

@media (max-width: 760px) {
  .sc-result-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sc-q { padding: 16px; }
  .sc-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sc-choice span { min-width: 0; width: 100%; padding-inline: 8px; }
  .sc-actions, .sc-actions .btn-lg { width: 100%; justify-content: center; }
  .sc-submit, .sc-result-cta { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-choice span { transition: none; }
}
