/* Crime Analysis Programs (/programs). The page uses the Resource Library's
   styles (/resource-library/resources.css); these are the few extra rules:
   the filter rows, the state tile map (as on the Career Explorer's Where
   screen), the Regions and "Study from anywhere" boxes, and the row's extra
   columns. Uses the NACA theme tokens from /shared/naca-wa.css. */

/* Filters */
.pg-more { flex-direction: column; gap: 12px; }
.pg-filterrow { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; }
.pg-state { display: inline-flex; align-items: center; gap: 8px; }
.pg-state .rl-label { display: inline; margin: 0; }
.naca-scope .pg-state select { min-height: 36px; padding: 0 10px; border: 1px solid var(--naca-border-strong); border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--naca-navy); background: #fff; }

/* The map and the boxes beside it */
.pg-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.pg-mapcard { flex: 999 1 560px; min-width: 0; padding: 20px; border: 1px solid var(--naca-border); border-radius: 12px; background: #fff; }
.pg-p { margin: 0 0 14px; font-size: 14px; color: var(--naca-text-secondary); }
.pg-mapwrap { overflow-x: auto; }
.pg-map { display: grid; grid-template-columns: repeat(12, minmax(44px, 1fr)); grid-template-rows: repeat(8, 52px); gap: 4px; min-width: 560px; }
.rl-main .pg-tile { border-radius: 6px; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; }
.rl-main a.pg-tile:hover { outline: 2px solid var(--naca-navy); outline-offset: 1px; }
.pg-tv { font-size: 11px; font-weight: 500; }
.pg-sel { outline: 3px solid var(--naca-gold); outline-offset: 1px; }
.pg-dim { opacity: .35; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12px; color: var(--naca-text-secondary); align-items: center; }
.pg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pg-legend i { display: inline-block; width: 16px; height: 11px; border-radius: 2px; }
.pg-legend .pg-none { background: #eef1f6; border: 1px solid var(--naca-border-strong); }
.pg-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.pg-box { padding: 20px; border: 1px solid var(--naca-border); border-radius: 12px; background: #fff; }
.naca-scope .pg-box h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: var(--naca-heading); }
.pg-regions { margin: 0; padding: 0; list-style: none; }
.pg-regions li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; border-bottom: 1px solid var(--naca-tint-200); font-size: 14px; }
.rl-main .pg-rlink { font-weight: 700; text-decoration: none; }
.rl-main .pg-rlink:hover, .rl-main .pg-rlink.rl-on { text-decoration: underline; }
.pg-regions span { color: var(--naca-text-meta); font-variant-numeric: tabular-nums; }
.pg-online { padding: 20px; border-radius: 12px; background: var(--naca-navy-deep); color: #fff; }
.pg-online p { margin: 0; font-size: 14px; color: var(--naca-tint-300); }
.pg-online .pg-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--naca-gold); }
.pg-online .pg-big { margin: 6px 0 2px; font-size: 32px; font-weight: 800; color: #fff; }
.rl-main .pg-gold { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 16px; border-radius: 6px; background: var(--naca-gold); color: var(--naca-on-gold); font-size: 14px; font-weight: 700; text-decoration: none; }
.rl-main .pg-gold:hover { background: var(--naca-gold-hover); color: var(--naca-on-gold); }

/* The list's rows */
.pg-cred { flex-basis: 110px; }
.pg-note { display: block; font-size: 13px; color: var(--naca-text-meta); }
.pg-how { flex: 0 0 150px; font-size: 13px; font-weight: 700; color: var(--naca-text-meta); }
.pg-how span { display: block; font-weight: 500; color: var(--naca-muted); }
.pg-place { flex-basis: 150px; }
.pg-also { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--naca-muted); }

@media (max-width: 700px) {
  .pg-filterrow { justify-content: flex-start; }
  .pg-cred { flex-basis: auto; }
  .pg-how { flex: 1 1 100%; }
}
