/* The IMB Network — Phase A3 Connection and Opportunity Matching */
.phase-a3-matching-shell { margin-bottom: 28px; }
.phase-a3-matching-shell[aria-busy="true"] { opacity: .82; }
.a3-shell-header, .a3-section-header, .a3-match-card-head, .a3-card-actions, .a3-modal-head, .a3-modal-actions { display: flex; align-items: center; gap: 12px; }
.a3-shell-header, .a3-section-header, .a3-modal-head { justify-content: space-between; }
.a3-shell-header { align-items: flex-start; margin-bottom: 12px; }
.a3-shell-header h2, .a3-section-header h3, .a3-match-card h3 { margin: 0; }
.a3-shell-header p, .a3-section-header p { margin: 4px 0 0; }
.a3-privacy-note { padding: 10px 12px; border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 12px; margin: 0 0 14px; }
.a3-setup-note { padding: 12px; border-radius: 12px; background: rgba(255, 183, 77, .10); margin-bottom: 14px; }
.a3-status { min-height: 22px; margin: 0 0 8px; }
.a3-status[data-tone="warn"] { color: var(--danger, #e79b9b); }
.a3-result-section { margin-top: 24px; }
.a3-count, .a3-score { white-space: nowrap; border-radius: 999px; padding: 4px 9px; font-size: .78rem; border: 1px solid var(--border, rgba(255,255,255,.16)); }
.a3-match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.a3-match-card { min-width: 0; padding: 16px; border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 16px; background: var(--card, rgba(255,255,255,.035)); }
.a3-match-card-head { align-items: flex-start; }
.a3-match-card-head > div:nth-child(2), .a3-content-card .a3-match-card-head > div:first-child { min-width: 0; flex: 1; }
.a3-match-card h3 { overflow-wrap: anywhere; }
.a3-eyebrow { margin: 0 0 3px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .72; }
.a3-avatar { width: 46px; height: 46px; flex: 0 0 46px; overflow: hidden; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.a3-avatar img, .a3-content-image img { width: 100%; height: 100%; object-fit: cover; }
.a3-avatar-fallback { font-weight: 700; font-size: 1.1rem; }
.a3-content-image { height: 150px; overflow: hidden; border-radius: 12px; margin-bottom: 12px; background: rgba(255,255,255,.05); }
.a3-card-copy { margin: 12px 0 0; line-height: 1.45; }
.a3-location { margin: 8px 0 0; font-size: .88rem; opacity: .82; }
.a3-reasons { margin-top: 14px; font-size: .86rem; }
.a3-reasons ul { margin: 6px 0 0; padding-left: 19px; }
.a3-reasons li + li { margin-top: 4px; }
.a3-card-actions { flex-wrap: wrap; margin-top: 14px; align-items: center; }
.a3-card-actions .a3-feedback-link { font-size: .78rem; }
.a3-opportunity-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.a3-opportunity-meta span { border-radius: 999px; padding: 4px 8px; background: rgba(255,255,255,.06); font-size: .76rem; text-transform: capitalize; }
.a3-empty { padding: 24px; text-align: center; border: 1px dashed var(--border, rgba(255,255,255,.18)); border-radius: 16px; }
.a3-empty h3 { margin-top: 0; }
.a3-modal-card { max-width: 680px; width: min(680px, calc(100vw - 28px)); max-height: min(86vh, 760px); overflow: auto; }
.a3-modal-head { align-items: flex-start; }
.a3-modal-close { border: 0; background: transparent; color: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.a3-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 10px 0 18px; }
.a3-inline-check { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; }
.a3-modal-actions { justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 980px) { .a3-match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .a3-shell-header, .a3-section-header { align-items: stretch; flex-direction: column; }
  .a3-match-grid { grid-template-columns: 1fr; }
  .a3-check-grid { grid-template-columns: 1fr; }
  .a3-card-actions .btn, .a3-card-actions a.btn { flex: 1 1 auto; }
  .a3-modal-actions { flex-direction: column-reverse; align-items: stretch; }
}
