/* VeriSpec — Company standards (on top of admin.css) */
.std-intro{margin:-1.25rem 0 2rem;max-width:640px;line-height:1.5}
.std-file{display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap}
.std-file-name{font-size:0.8rem;color:#64748b;overflow-wrap:anywhere}
.std-empty{font-size:0.85rem;color:#64748b}
.std-table-wrap{overflow-x:auto}
.std-name{font-weight:600;overflow-wrap:break-word}
.std-file-sub{display:block;font-size:0.75rem;color:#94a3b8;font-weight:400;overflow-wrap:break-word}
.std-status{font-size:0.7rem;font-weight:600;padding:0.15rem 0.5rem;border-radius:8px;white-space:nowrap}
.std-status.ready{background:#dcfce7;color:#166534}
.std-status.compiling,.std-status.uploading,.std-status.deleting{background:#fef9c3;color:#854d0e}
.std-status.failed{background:#fee2e2;color:#991b1b}
.std-error{display:block;font-size:0.75rem;color:#991b1b;margin-top:0.25rem;max-width:280px}
.std-warn{display:block;font-size:0.75rem;color:#854d0e;margin-top:0.25rem;max-width:280px}
.std-status.ready.partial{background:#fef9c3;color:#854d0e}
.std-actions{display:flex;gap:0.4rem;justify-content:flex-end}
.std-actions .btn{white-space:nowrap}
.std-rules-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.std-rules-head h2{margin:0}
.std-rules{list-style:none;display:flex;flex-direction:column;gap:0.6rem}
.std-rule{background:#fff;border:1px solid #e2e6ea;border-radius:8px;padding:0.7rem 0.9rem}
.std-rule-meta{display:flex;gap:0.5rem;flex-wrap:wrap;align-items:center;font-size:0.7rem;color:#64748b;margin-bottom:0.3rem}
.std-rule-key{font-family:'IBM Plex Mono',monospace;font-weight:600;color:#1a1a2e}
.std-rule-tag{background:#f1f5f9;border-radius:6px;padding:0.05rem 0.4rem}
.std-rule-text{font-size:0.88rem;line-height:1.45}
.std-rule details{margin-top:0.35rem;font-size:0.78rem;color:#64748b}
.std-rule summary{cursor:pointer}
.std-rule blockquote{margin-top:0.3rem;padding-left:0.6rem;border-left:2px solid #e2e6ea;font-style:italic}
.std-rule-term{font-weight:600;color:#1a1a2e}
.std-crit-line{font-size:0.8rem;color:#475569;margin-top:0.25rem;line-height:1.4}
.std-crit-line b{font-weight:600;color:#334155}
.std-crit-look{color:#64748b}
.std-subject-check{font-size:0.7rem;font-weight:600;color:#854d0e;background:#fef9c3;border-radius:999px;padding:0.1rem 0.5rem;margin-left:auto}
.std-crit-check{color:#854d0e;background:#fefce8;border-left:3px solid #eab308;padding:0.3rem 0.5rem;border-radius:0 4px 4px 0}
.std-subjects{list-style:none;display:flex;flex-direction:column;gap:0.5rem}
.std-subject>details{background:#f8fafc;border:1px solid #e2e6ea;border-radius:8px}
.std-subject>details>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.65rem 0.9rem;font-size:0.9rem}
.std-subject-name{display:inline-block;font-weight:600;color:#1a1a2e;overflow-wrap:anywhere}
.std-subject-name::first-letter{text-transform:uppercase}
.std-subject-count{font-size:0.7rem;font-weight:600;color:#64748b;background:#e2e8f0;border-radius:8px;padding:0.1rem 0.5rem}
.std-subject .std-rules{padding:0 0.6rem 0.6rem}
.std-defs-head{font-size:1rem;margin:1.75rem 0 0.5rem}
#defsSection .admin-sub{margin-bottom:0.75rem}
@media (max-width:600px){
  .nav{padding:0.75rem 1rem;flex-wrap:wrap}
  .nav-links{margin-left:1rem;gap:1rem}
  .std-intro{margin-top:-1.25rem}
  /* one stacked row per standard: name, then status and actions */
  #stdTable thead{display:none}
  #stdTable tr{display:grid;grid-template-columns:1fr auto;gap:0.5rem 0.75rem;align-items:center;padding:0.8rem 0;border-bottom:1px solid #e2e6ea}
  #stdTable td{padding:0;border:0}
  #stdTable td:nth-child(1){grid-column:1 / -1}
  #stdTable td:nth-child(3){display:none}
}
