/* ==========================================================================
   AGENCY DIRECTORY HUBS (country and state pages)
   Loaded after toplist.css on pages carrying _ss_hub. New blocks only.
   ========================================================================== */

.ssp .hub-stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.ssp .hub-stats div {
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  min-width: 120px;
}
.ssp .hub-stats strong { display: block; font-size: 26px; line-height: 1.1; color: var(--navy); }
.ssp .hub-stats span { font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }

.ssp .hub-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: 36px; text-align: left;
}
.ssp .hub-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 112px; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; color: var(--navy); text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ssp a.hub-card:hover {
  border-color: var(--orange); box-shadow: 0 10px 28px rgba(15,23,42,.08); transform: translateY(-2px);
}
.ssp .hub-card h3 { font-size: 16px; line-height: 1.3; margin: 0; color: var(--navy); }
.ssp .hub-card .hub-n { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.ssp .hub-card .hub-n b { font-size: 22px; color: var(--orange); margin-right: 4px; font-weight: 700; }
.ssp .hub-card .hub-go {
  position: absolute; top: 18px; right: 18px; font-size: 16px; color: var(--orange); opacity: .7;
}
.ssp .hub-card.is-soon { background: transparent; border-style: dashed; color: var(--muted); min-height: 0; }
.ssp .hub-card.is-soon h3 { color: var(--muted); font-weight: 600; }
.ssp .hub-card.is-soon .hub-n { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.ssp .hub-soon-title { margin: 56px 0 0; font-size: 18px; color: var(--navy); text-align: left; }
.ssp .hub-soon-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); text-align: left; }
.ssp .hub-grid.is-soon { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ssp .hub-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ssp .hub-crumbs a { color: var(--muted); text-decoration: none; }
.ssp .hub-crumbs a:hover { color: var(--orange); }

@media (max-width: 1024px) {
  .ssp .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ssp .hub-grid.is-soon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ssp .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ssp .hub-grid.is-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ssp .hub-card { min-height: 96px; padding: 16px; }
  .ssp .hub-stats div { min-width: 0; flex: 1 1 30%; }
}
/* State icons */
.ssp .hub-ico { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; margin-bottom:14px; border-radius:12px; background:rgba(249,115,22,.10); color:var(--orange); }
.ssp .hub-ico svg { width:26px; height:26px; }
.ssp a.hub-card:hover .hub-ico { background:var(--orange); color:#fff; }
.ssp .hub-card.is-soon .hub-ico { width:34px; height:34px; margin-bottom:10px; background:rgba(15,23,42,.05); color:var(--muted); }
.ssp .hub-card.is-soon .hub-ico svg { width:20px; height:20px; }
@media (max-width:720px){ .ssp .hub-ico { width:38px; height:38px; margin-bottom:10px; } .ssp .hub-ico svg { width:22px; height:22px; } }

/* --- Card hover + call to action ----------------------------------------- */
.ssp a.hub-card { cursor: pointer; }
.ssp a.hub-card:hover { border-color: var(--orange); box-shadow: 0 14px 34px rgba(249,115,22,.16); transform: translateY(-4px); }
.ssp a.hub-card:hover h3 { color: var(--orange); }
.ssp a.hub-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.ssp .hub-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line); font-size: 13px; font-weight: 600; color: var(--orange);
}
.ssp .hub-more span { transition: transform .18s ease; }
.ssp a.hub-card:hover .hub-more span { transform: translateX(4px); }
.ssp .hub-card .hub-go { display: none; }
.ssp .hub-sub { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ssp .hub-date { font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 8px; }
.ssp .hub-grid.is-few { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }

/* --- Breadcrumbs ---------------------------------------------------------- */
.ssp .hub-crumbs .sep { margin: 0 6px; opacity: .6; }
.ssp .hub-crumbs span[aria-current] { color: var(--navy); font-weight: 600; }

/* --- Finder --------------------------------------------------------------- */
.ssp .hub-finder { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; max-width: 820px; margin: 34px auto 0; text-align: left; }
.ssp .hub-field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: .3px; }
.ssp .hub-field input, .ssp .hub-field select {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; font: inherit; font-size: 15px; color: var(--navy);
}
.ssp .hub-field input:focus, .ssp .hub-field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.ssp .hub-count { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.ssp .hub-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1000px; margin: 14px auto 0; text-align: left; }
.ssp .hub-res {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ssp .hub-res:hover { border-color: var(--orange); box-shadow: 0 10px 24px rgba(249,115,22,.14); transform: translateY(-2px); }
.ssp .hub-res strong { color: var(--navy); font-size: 15px; }
.ssp .hub-res span { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.ssp .hub-res em { grid-column: 2; grid-row: 1; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--orange); text-align: right; }
.ssp .hub-res i { grid-column: 2; grid-row: 2; font-style: normal; font-size: 12px; color: var(--muted); text-align: right; }
.ssp .hub-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; }
.ssp .hub-popular span { font-size: 13px; font-weight: 600; color: var(--navy); margin-right: 4px; }
.ssp .hub-popular a, .ssp .hub-chips a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px;
  color: var(--navy); text-decoration: none; transition: border-color .18s, color .18s, background .18s;
}
.ssp .hub-popular a:hover, .ssp .hub-chips a:hover { border-color: var(--orange); color: var(--orange); background: rgba(249,115,22,.06); }
.ssp .hub-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.ssp .hub-chips em { font-style: normal; font-weight: 700; color: var(--orange); margin-left: 4px; }
.ssp .hub-back { margin-top: 22px; font-size: 14px; }
.ssp .hub-back a { color: var(--orange); font-weight: 600; text-decoration: none; }

/* --- Tile map --------------------------------------------------------------- */
.ssp .hub-map-wrap { max-width: 640px; margin: 34px auto 0; }
.ssp .hub-map { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(9, auto); gap: 6px; }
.ssp .hub-tile {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px;
  text-decoration: none; color: #fff; line-height: 1.05; transition: transform .16s, box-shadow .16s;
}
.ssp .hub-tile b { font-size: 13px; letter-spacing: .5px; }
.ssp .hub-tile small { font-size: 11px; opacity: .9; margin-top: 2px; }
.ssp .hub-tile.l1 { background: #FDBA74; color: #7C2D12; }
.ssp .hub-tile.l2 { background: #FB923C; }
.ssp .hub-tile.l3 { background: #F97316; }
.ssp .hub-tile.l4 { background: #C2410C; }
.ssp .hub-tile.is-soon { background: #E2E8F0; color: #94A3B8; }
.ssp a.hub-tile:hover { transform: scale(1.12); box-shadow: 0 8px 20px rgba(15,23,42,.22); position: relative; z-index: 2; }
.ssp .hub-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.ssp .hub-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ssp .hub-legend .l1 { background: #FDBA74; } .ssp .hub-legend .l2 { background: #FB923C; } .ssp .hub-legend .l3 { background: #F97316; } .ssp .hub-legend .l4 { background: #C2410C; } .ssp .hub-legend .soon { background: #E2E8F0; }

/* --- Prose intro -------------------------------------------------------------- */
.ssp .hub-prose { max-width: 820px; margin: 26px auto 0; text-align: left; }
.ssp .hub-prose p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
.ssp .hub-prose strong { color: var(--navy); }
.ssp .hub-prose .hub-sources { font-size: 12.5px; line-height: 1.6; margin-top: 22px; }
.ssp .hub-prose .hub-sources a { color: var(--muted); text-decoration: underline; }

/* --- Service bars ---------------------------------------------------------- */
.ssp .hub-bars { max-width: 720px; margin: 30px auto 0; text-align: left; }
.ssp .hub-bar { display: grid; grid-template-columns: 190px 1fr 70px; align-items: center; gap: 14px; padding: 10px 0; }
.ssp .hub-bar-l { font-size: 14px; font-weight: 600; color: var(--navy); }
.ssp .hub-bar-t { height: 10px; border-radius: 99px; background: #E2E8F0; overflow: hidden; }
.ssp .hub-bar-t i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FB923C, #F97316); }
.ssp .hub-bar-n { font-size: 13px; color: var(--muted); text-align: right; }

@media (max-width: 1024px) {
  .ssp .hub-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ssp .hub-finder { grid-template-columns: 1fr; }
  .ssp .hub-results { grid-template-columns: 1fr; }
  .ssp .hub-map { gap: 4px; }
  .ssp .hub-tile { border-radius: 7px; }
  .ssp .hub-tile b { font-size: 10.5px; }
  .ssp .hub-tile small { font-size: 9px; }
  .ssp .hub-bar { grid-template-columns: 120px 1fr 56px; gap: 10px; }
  .ssp .hub-grid.is-few { grid-template-columns: 1fr; }
  .ssp .hub-more { font-size: 12px; }
}