﻿/* ==========================================================================
   FindPaidFocusGroup — Directory hubs (States, Cities)
   Loaded after home.css (design tokens, buttons, chips, header, footer).
   ========================================================================== */

.fp [hidden] { display: none !important; }

/* ---------- Header band ---------- */
.fp .hub-head { padding: var(--space-8) 0 40px; background: var(--surface-100); border-bottom: 1px solid var(--line); }
.fp .hub-head h1 { margin-top: 18px; font-size: 40px; line-height: 46px; max-width: 820px; }
.fp .hub-intro { margin-top: 12px; max-width: 720px; }
.fp .hub-intro p + p { margin-top: 10px; }
.fp .hub-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-6); }
.fp .hub-filter { flex: 0 1 420px; background: var(--surface); border: 1px solid var(--line); }
.fp .hub-stats { display: flex; gap: 28px; }
.fp .hub-stats strong { display: block; font-size: 22px; line-height: 28px; font-weight: 800; }
.fp .hub-empty { margin-top: var(--space-4); }

/* ---------- Shared bits ---------- */
.fp .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.fp .crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-muted); }
.fp .crumbs a:hover { color: var(--brand); text-decoration: underline; }
.fp .crumbs span { color: var(--ink); }
.fp .card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color .15s;
}
.fp .card:hover { border-color: var(--brand); }
.fp .pay--sm { font-size: 15px; height: 26px; padding: 0 10px; }
.fp button.chip { font: 600 14px var(--font-sans); color: var(--ink); cursor: pointer; }
.fp .chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ---------- Sections ---------- */
.fp .hub-sec { padding: 48px 0 0; }
.fp .hub-sec:last-child { padding-bottom: var(--space-20); }
.fp .hub-sec--tight { padding-top: 32px; }
.fp .hub-h2 { font-size: 24px; line-height: 32px; margin-bottom: var(--space-4); }
.fp .hub-group-head { margin-bottom: var(--space-4); align-items: center; }
.fp .hub-group-head .hub-h2 { margin: 0; }
.fp .hub-jump { padding-top: var(--space-6); }

/* ---------- Cards (most active cities) ---------- */
.fp .hub-cards { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.fp .hub-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fp .hub-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color .15s;
}
.fp .hub-card:hover { border-color: var(--brand); }
.fp .hub-card h3 { font-size: 17px; }
.fp .hub-open { color: var(--brand-strong); }
.fp .hub-pay { color: var(--pay); }

/* ---------- State tiles ---------- */
.fp .hub-tile {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color .15s;
}
.fp .hub-tile:hover { border-color: var(--brand); }
.fp .hub-tile__name { font-weight: 700; }
.fp .hub-tile__count { white-space: nowrap; }
.fp .hub-tiles { list-style: none; padding: 0; margin: 0; }

/* ---------- A–Z bar (cities) ---------- */
.fp .az-bar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px;
  padding: 12px 0; margin-bottom: var(--space-6);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.fp .az-bar a, .fp .az-bar span {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--radius-sm); font-weight: 700;
}
.fp .az-bar a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.fp .az-bar span { color: var(--line); }

/* ---------- A–Z columns grid ---------- */
.fp .az-cols { columns: 4; column-gap: 32px; }
.fp .az-group { break-inside: avoid; margin-bottom: var(--space-6); scroll-margin-top: 72px; }
.fp .az-letter {
  font-size: 22px; line-height: 30px; font-weight: 800; color: var(--brand);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 8px;
}
.fp .az-group ul { list-style: none; padding: 0; margin: 0; }
.fp .az-group a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 4px 0; font-weight: 600; font-size: 15px;
}
.fp .az-group a:hover span:first-child { color: var(--brand); text-decoration: underline; }

/* ---------- 70/30 split (facilities page) ---------- */
.fp .hub-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); align-items: start; }
.fp .hub-split__aside { position: sticky; top: 24px; text-align: center; }
.fp .hub-split__aside > * + * { margin-top: var(--space-6); }

/* ---------- Facility chips ---------- */
.fp .hub-chips { margin-bottom: 20px; }

/* ---------- Facility table ---------- */
.fp .hub-table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
}
.fp .hub-table thead th {
  background: var(--surface-100); text-align: left; padding: 12px 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted);
}
.fp .hub-table tbody th, .fp .hub-table td { padding: 16px 20px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.fp .hub-table tbody th a { font-weight: 700; }
.fp .hub-table tbody th a:hover { color: var(--brand); text-decoration: underline; }
.fp .hub-table tbody tr:hover { background: var(--surface-100); }
.fp .hub-table__go { text-align: right !important; }
.fp .hub-table .more { font-size: 14px; }

/* ---------- Ads + explainer ---------- */
.fp .hub .ad-slot { margin-top: var(--space-8); }
.fp .hub-explain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); margin-top: var(--space-12); }
.fp .hub-explain--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.fp .hub-explain p { color: var(--ink-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .fp .hub-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp .az-cols { columns: 3; }
  .fp .hub-explain { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .fp .hub-split { grid-template-columns: minmax(0, 1fr); }
  .fp .hub-split__aside { position: static; display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .fp .hub-head h1 { font-size: 30px; line-height: 36px; }
  .fp .hub-filter { flex-basis: 100%; }
  .fp .hub-cards--4 { grid-template-columns: minmax(0, 1fr); }
  .fp .az-cols { columns: 2; column-gap: 20px; }
  .fp .az-bar { gap: 0; }
  .fp .az-bar a, .fp .az-bar span { width: 28px; height: 30px; font-size: 14px; }
  .fp .az-bar span { display: none; }

  /* Facility table → stacked card rows */
  .fp .hub-table thead { display: none; }
  .fp .hub-table, .fp .hub-table tbody, .fp .hub-table tr { display: block; }
  .fp .hub-table tr { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .fp .hub-table tbody tr:first-child { border-top: 0; }
  .fp .hub-table tbody th, .fp .hub-table td { display: block; padding: 0; border: 0; }
  .fp .hub-table tbody th { grid-column: 1; font-size: 16px; }
  .fp .hub-table td[data-label="Where"] { grid-column: 1; }
  .fp .hub-table td[data-label="Open studies"] { grid-column: 1; font-size: 14px; }
  .fp .hub-table td[data-label="Open studies"]::after { content: " open studies"; color: var(--ink-muted); font-weight: 400; }
  .fp .hub-table td[data-label="Top pay"] { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .fp .hub-table__go { display: none !important; }
}
