/* The stock photo rejection reasons hub and its reason pages (backend/core/rejections.py, drawn
   into static/guides/rejections/shell.html). The article column, tip boxes, tables and
   .ag-actions come from public.css and agency-guides.css; this file adds only the agency cards,
   the check box, the hub cards and the FAQ. Every selector starts with .rj, the class on the
   page's <main>, so nothing here can restyle another page.

   Follows DESIGN.md: spacing 4/8/12/16/24/32, radii 12/14, no colour-only state. */
.rj .rj-lead { font-size: 1.05rem; line-height: 1.65; }

.rj .rj-agencies { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 24px; }
.rj .rj-agency { padding: 16px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--s1); }
.rj .rj-agency p { margin: 0 0 8px; font-size: .92rem; line-height: 1.6; }
.rj .rj-agency p:last-child { margin-bottom: 0; }
.rj .rj-agency .rj-agency-name { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--dim); }
.rj .rj-agency .rj-label { font-size: 1rem; font-weight: 600; color: var(--text); }
.rj .rj-agency .rj-src a { font-size: .85rem; }

.rj .rj-check { margin: 32px 0; padding: 24px; border: 1px solid var(--gold); border-radius: 14px; background: var(--gold-bg); }
.rj .rj-check h2 { margin-top: 0; }
.rj .rj-check p { margin: 0; }
.rj .rj-check .ag-actions { margin: 16px 0 0; }

.rj ul.rj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 16px 0 32px; padding: 0; list-style: none; }
.rj ul.rj-cards li { margin: 0; }
.rj a.rj-card { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 16px 24px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--s1); color: var(--text); text-decoration: none; }
.rj a.rj-card:hover { border-color: var(--gold); }
.rj a.rj-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rj .rj-card-name { font-weight: 600; }
.rj .rj-card-text { font-size: .9rem; line-height: 1.55; color: var(--dim); }

.rj .rj-faq details { margin: 0 0 8px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--s1); }
.rj .rj-faq summary { font-weight: 600; cursor: pointer; }
.rj .rj-faq details p { margin: 8px 0 0; }

.rj ul.rj-related { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.rj ul.rj-related li { margin: 0; }
.rj ul.rj-related a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--s1); font-size: .88rem; text-decoration: none; }
.rj ul.rj-related a:hover { border-color: var(--gold); }

@media (max-width: 640px) {
  .rj .rj-agency, .rj a.rj-card { padding: 16px; }
  .rj .rj-check { padding: 16px; }
  .rj .rj-check .ag-actions a.pk-btn { width: 100%; justify-content: center; }
}
