/* BLS ORS Skills Scorecard — myndQ tokens */
:root {
  --ors-ink: #14181C;
  --ors-muted: rgba(20, 24, 28, 0.62);
  --ors-line: rgba(20, 24, 28, 0.1);
  --ors-bg: #FDFCFB;
  --ors-card: #fff;
  --ors-orange: #FF7900;
  --ors-teal: #07A3D1;
  --ors-green: #16A34A;
  --ors-red: #DC2626;
  --ors-amber: #D97706;
  --ors-soft: #F4F6F8;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ors-bg); color: var(--ors-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ors-teal); text-decoration: none; }
a:hover { color: #0690BB; }
button { font: inherit; }

.ors-site-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 252, 251, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ors-line); }
.ors-header-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ors-brand { font-size: 22px; font-weight: 800; color: var(--ors-ink); letter-spacing: -0.02em; }
.ors-brand-q { color: var(--ors-orange); }
.ors-back { font-size: 14px; font-weight: 700; color: var(--ors-ink); }
.ors-back:hover { color: var(--ors-teal); }

.ors-page { max-width: 1280px; margin: 0 auto; padding: 40px 24px 80px; }
.ors-hero { margin-bottom: 28px; }
.ors-kicker { font-size: 12px; font-weight: 700; color: var(--ors-orange); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.ors-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.ors-hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--ors-orange), var(--ors-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ors-dek { font-size: 16.5px; line-height: 1.55; color: var(--ors-muted); font-weight: 500; max-width: 68ch; margin: 0 0 18px; }
.ors-hero-figure { margin: 0 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--ors-line); background: #0B1220; }
.ors-hero-figure img { display: block; width: 100%; height: auto; }
.ors-source { font-size: 13px; color: var(--ors-muted); margin: 0; }

.ors-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.ors-step { min-height: 40px; border: 1.5px solid var(--ors-line); background: var(--ors-card); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--ors-muted); cursor: pointer; }
.ors-step.on { border-color: var(--ors-orange); color: var(--ors-orange); background: rgba(255, 121, 0, 0.08); }
.ors-step:disabled { opacity: 0.4; cursor: not-allowed; }
.ors-step:focus-visible { outline: 3px solid var(--ors-teal); outline-offset: 2px; }

.ors-loading { padding: 28px; background: var(--ors-card); border: 1px solid var(--ors-line); border-radius: 14px; color: var(--ors-muted); }
.ors-error { padding: 20px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px; color: #991B1B; }

.ors-panel { background: var(--ors-card); border: 1px solid var(--ors-line); border-radius: 16px; padding: 22px; }
.ors-panel h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.ors-panel .ors-lead { font-size: 14.5px; color: var(--ors-muted); line-height: 1.55; margin: 0 0 18px; }

.ors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ors-group-btn {
  text-align: left; background: var(--ors-soft); border: 1.5px solid transparent; border-radius: 12px;
  padding: 14px 14px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 92px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.ors-group-btn:hover { border-color: rgba(7, 163, 209, 0.45); background: #fff; }
.ors-group-btn:focus-visible { outline: 3px solid var(--ors-orange); outline-offset: 2px; }
.ors-group-btn[aria-pressed="true"] { border-color: var(--ors-teal); background: rgba(7, 163, 209, 0.08); }
.ors-group-btn .ors-code { font-size: 11px; font-weight: 700; color: var(--ors-teal); letter-spacing: 0.04em; }
.ors-group-btn .ors-title { font-size: 13.5px; font-weight: 700; color: var(--ors-ink); line-height: 1.35; }
.ors-group-btn .ors-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.ors-chip { font-size: 10px; font-weight: 700; border-radius: 5px; padding: 2px 6px; border: 1px solid currentColor; }
.ors-chip.deep { color: var(--ors-orange); }
.ors-chip.unpub { color: var(--ors-amber); }

.ors-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.ors-btn {
  min-height: 44px; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; border: none;
}
.ors-btn-primary { background: linear-gradient(135deg, var(--ors-orange), var(--ors-teal)); color: #fff; }
.ors-btn-primary:hover { opacity: 0.92; }
.ors-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.ors-btn-ghost { background: transparent; border: 1.5px solid var(--ors-line); color: var(--ors-ink); }
.ors-btn-ghost:hover { border-color: var(--ors-teal); color: var(--ors-teal); }
.ors-btn:focus-visible { outline: 3px solid var(--ors-orange); outline-offset: 2px; }

.ors-req-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.ors-req-head h2 { margin: 0; }
.ors-meta-line { font-size: 13px; color: var(--ors-muted); margin: 0 0 16px; }

.ors-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ors-metric {
  background: var(--ors-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.ors-metric .ors-mlabel { font-size: 12px; font-weight: 700; color: var(--ors-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ors-metric .ors-mval { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ors-ink); }
.ors-metric .ors-mval .ors-unit { font-size: 14px; font-weight: 600; color: var(--ors-muted); }
.ors-bar { height: 8px; background: rgba(20, 24, 28, 0.08); border-radius: 4px; overflow: hidden; }
.ors-bar > span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ors-orange), var(--ors-teal)); width: 0; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.ors-bench { font-size: 12px; color: var(--ors-muted); }
.ors-bench strong { color: var(--ors-ink); font-weight: 700; }

/* Requirements view: col1 = SOC sub-levels, cols 2–3 = dashboard */
.ors-split {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
  margin-top: 4px;
}
.ors-col-nav {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--ors-line);
  border-radius: 14px;
  background: var(--ors-soft);
}
.ors-col-nav h3 { font-size: 14px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.ors-col-nav .ors-nav-lead { font-size: 12.5px; color: var(--ors-muted); line-height: 1.45; margin: 0 0 12px; }
.ors-col-dash {
  min-width: 0;
  padding: 4px 0 0;
}
.ors-col-dash .ors-metric-grid { margin-bottom: 8px; }
.ors-col-dash .ors-search { max-width: none; }

.ors-deep { margin-top: 0; padding-top: 0; border-top: none; }
.ors-deep h3 { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.ors-deep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ors-deep-btn {
  min-height: 40px; border-radius: 8px; border: 1.5px solid var(--ors-line); background: #fff;
  padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ors-ink);
}
.ors-deep-btn[aria-pressed="true"] { border-color: var(--ors-orange); background: rgba(255, 121, 0, 0.08); color: var(--ors-orange); }
.ors-deep-btn:focus-visible { outline: 3px solid var(--ors-teal); outline-offset: 2px; }

.ors-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ors-muted); margin: 0 0 14px; }
.ors-crumb button { all: unset; cursor: pointer; color: var(--ors-teal); font-weight: 700; }
.ors-crumb button:hover { text-decoration: underline; }
.ors-crumb button:focus-visible { outline: 3px solid var(--ors-orange); outline-offset: 2px; border-radius: 4px; }
.ors-crumb-sep { opacity: 0.45; }
.ors-crumb-current { font-weight: 700; color: var(--ors-ink); }

.ors-search { width: 100%; min-height: 44px; border: 1.5px solid var(--ors-line); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; background: #fff; }
.ors-search:focus-visible { outline: 3px solid var(--ors-teal); outline-offset: 1px; }

.ors-level-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ors-minor {
  border: 1px solid var(--ors-line); border-radius: 12px; background: #fff; overflow: hidden;
}
.ors-minor-head {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  text-align: left; min-height: 48px; padding: 10px 12px; border: none; background: #fff;
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ors-ink); line-height: 1.35;
}
.ors-minor-head:hover { background: #F8FAFB; }
.ors-minor-head:focus-visible { outline: 3px solid var(--ors-orange); outline-offset: -3px; }
.ors-minor-head .ors-minor-meta { font-size: 11px; font-weight: 600; color: var(--ors-muted); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.ors-minor-body { display: none; padding: 6px; border-top: 1px solid var(--ors-line); background: #FAFBFC; }
.ors-minor.open .ors-minor-body { display: block; }
.ors-occ-list { display: flex; flex-direction: column; gap: 5px; }
.ors-occ-btn {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-align: left;
  min-height: 40px; width: 100%; border-radius: 8px; border: 1.5px solid transparent;
  background: #fff; padding: 8px 10px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ors-ink);
}
.ors-occ-btn:hover { border-color: rgba(7, 163, 209, 0.4); }
.ors-occ-btn[aria-pressed="true"] { border-color: var(--ors-orange); background: rgba(255, 121, 0, 0.08); }
.ors-occ-btn:focus-visible { outline: 3px solid var(--ors-teal); outline-offset: 2px; }
.ors-occ-btn .ors-code { font-size: 11px; font-weight: 700; color: var(--ors-teal); }
.ors-occ-btn .ors-feat { font-size: 10px; font-weight: 700; color: var(--ors-orange); border: 1px solid var(--ors-orange); border-radius: 4px; padding: 1px 5px; }

.ors-note { font-size: 13.5px; line-height: 1.55; color: var(--ors-amber); background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }

@media (max-width: 900px) {
  .ors-split { grid-template-columns: 1fr; }
  .ors-col-nav { position: static; max-height: none; }
  .ors-metric-grid { grid-template-columns: 1fr; }
}

.ors-qlist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ors-q {
  border: 1px solid var(--ors-line); border-radius: 12px; padding: 14px; background: #fff;
}
.ors-q legend { font-size: 14.5px; font-weight: 700; padding: 0; margin-bottom: 10px; line-height: 1.45; }
.ors-q .ors-qhint { display: block; font-size: 12.5px; font-weight: 500; color: var(--ors-muted); margin-top: 4px; }
.ors-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ors-opt {
  flex: 1 1 140px; min-height: 44px; border-radius: 8px; border: 1.5px solid var(--ors-line);
  background: var(--ors-soft); padding: 8px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ors-ink);
}
.ors-opt[aria-pressed="true"] { border-color: var(--ors-teal); background: rgba(7, 163, 209, 0.12); }
.ors-opt:focus-visible { outline: 3px solid var(--ors-orange); outline-offset: 2px; }
.ors-progress { font-size: 13px; color: var(--ors-muted); margin: 0 0 12px; }

/* Scorecard */
.ors-scorecard {
  border: 1px solid var(--ors-line); border-radius: 16px; background: #fff; overflow: hidden;
}
.ors-sc-top {
  padding: 22px 22px 18px; background: linear-gradient(135deg, rgba(255, 121, 0, 0.08), rgba(7, 163, 209, 0.1));
  border-bottom: 1px solid var(--ors-line);
}
.ors-sc-brand { font-size: 13px; font-weight: 800; margin: 0 0 8px; }
.ors-sc-brand span { color: var(--ors-orange); }
.ors-sc-role { font-size: 22px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.ors-sc-soc { font-size: 13px; color: var(--ors-muted); margin: 0 0 14px; }
.ors-sc-band-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: baseline; }
.ors-sc-score { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ors-sc-band { font-size: 18px; font-weight: 800; }
.ors-sc-body { padding: 20px 22px; }
.ors-sc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 16px; }
.ors-sc-table th, .ors-sc-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ors-line); vertical-align: top; }
.ors-sc-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ors-muted); font-weight: 700; }
.ors-pass { color: var(--ors-green); font-weight: 800; }
.ors-fail { color: var(--ors-red); font-weight: 800; }
.ors-partial { color: var(--ors-amber); font-weight: 800; }
.ors-sc-foot { font-size: 12px; color: var(--ors-muted); line-height: 1.55; margin: 0; }
.ors-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.ors-lead { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ors-line); }
.ors-lead-label { display: block; font-size: 13.5px; color: var(--ors-muted); margin-bottom: 10px; line-height: 1.5; }
.ors-lead-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ors-lead-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.ors-lead-field label { font-size: 12px; font-weight: 600; color: var(--ors-muted); }
.ors-lead input, .ors-lead select {
  min-height: 44px; border: 1px solid var(--ors-line); border-radius: 8px; padding: 8px 12px; font-size: 14px; background: #fff;
}
.ors-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ors-muted); line-height: 1.5; margin: 8px 0 12px; }
.ors-consent input { margin-top: 3px; min-width: 18px; min-height: 18px; }
.ors-lead-msg { font-size: 13px; min-height: 1.2em; margin-top: 8px; }
.ors-lead-msg[data-state="error"] { color: var(--ors-red); }
.ors-lead-msg[data-state="success"] { color: var(--ors-green); }
.ors-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ors-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ors-disclaimer { margin-top: 28px; font-size: 12.5px; line-height: 1.55; color: var(--ors-muted); max-width: 80ch; }
.ors-site-footer { text-align: center; padding: 28px 20px; font-size: 12px; color: rgba(20, 24, 28, 0.45); border-top: 1px solid var(--ors-line); }

@media (prefers-reduced-motion: reduce) {
  .ors-bar > span, .ors-group-btn { transition: none; }
}

@media print {
  .ors-site-header, .ors-steps, .ors-actions, .ors-lead, .ors-disclaimer, .ors-site-footer, .ors-cta-row, .ors-source, .ors-toolbar { display: none !important; }
  .ors-page { padding: 0; max-width: none; }
  .ors-hero { margin-bottom: 12px; }
  .ors-hero h1 { font-size: 22px; }
  .ors-dek { font-size: 12px; }
  .ors-scorecard { border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; }
}
