/* Second-level tags, empty-search help and resource profiles. Uses the directory's theme tokens. */
.fd-subtags { display:flex; flex-wrap:wrap; gap:8px; padding:2px 0 12px; margin:0 0 4px; }
.fd-subtags[hidden] { display:none; }
.fd-subtags button { flex:none; display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:var(--panel); color:var(--text); font-size:12px; line-height:1.2; white-space:nowrap; }
.fd-subtags button small { color:var(--sub); font-size:11px; }
.fd-subtags button:hover { border-color:var(--blue); }
.fd-subtags button[aria-pressed=true] { background:var(--blue); border-color:var(--blue); color:#fff; }
.fd-subtags button[aria-pressed=true] small { color:rgba(255,255,255,.8); }
.ops-card-meta .fd-tag { color:var(--blue); }

.empty .fd-empty { text-align:left; margin:0; }
.fd-empty strong { display:block; font-size:15px; color:var(--text); margin-bottom:4px; }
.fd-empty p { margin:0 0 10px; color:var(--sub); }
.fd-chips { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 4px; }
.fd-chips button { padding:6px 12px; border:1px solid var(--line); border-radius:999px; background:var(--panel); color:var(--text); font-size:12px; }
.fd-chips button:hover { border-color:var(--blue); color:var(--blue); }
.fd-empty-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; align-items:center; }
.fd-empty-actions button, .fd-empty-actions a { padding:8px 14px; border-radius:8px; border:1px solid var(--line); background:var(--panel); color:var(--text); font-size:12px; }
.fd-empty-actions .fd-primary { background:var(--blue); border-color:var(--blue); color:#fff; font-weight:600; }

.fd-profile h3 { font-size:13px; margin:14px 0 6px; }
.fd-profile ul { margin:0 0 6px; padding-left:18px; }
.fd-profile li { margin:2px 0; }
.fd-profile dd small { display:block; color:var(--sub); font-size:11px; margin-top:2px; }
.fd-profile dd small a { color:var(--blue); }
.ops-detail-actions .ops-detail-page { border:1px solid var(--line); background:var(--panel); color:var(--text); }

/* Footer mixes links and buttons; align them on one baseline row that wraps evenly. */
.footer-links { flex-wrap:wrap; align-items:center; row-gap:8px; justify-content:flex-end; }
.footer-links a, .footer-links button { display:inline-flex; align-items:center; line-height:1.6; padding:0; font:inherit; color:inherit; background:none; border:0; }
.footer-links .fd-footer { display:contents; }

@media (max-width:600px) {
  .fd-subtags { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; margin-inline:-2px; padding-bottom:10px; }
  .fd-subtags::-webkit-scrollbar { display:none; }
  .footer-links { justify-content:flex-start; }
  .fd-subtags button { padding:7px 11px; }
  .fd-empty-actions button, .fd-empty-actions a { flex:1 1 auto; text-align:center; }
}
