/* Directory page only: state filter and text-only service cards. */

/* Where you live */
.state-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 20px; }
.state-pick span { color: #64748b; font-size: .9rem; margin-right: 4px; }
.state-pick button { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: var(--accent-wash); color: var(--accent-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.state-pick button:hover { border-color: var(--accent-line, var(--accent)); }
.state-pick button[aria-pressed="true"] { background: var(--accent-ink); color: #fff; }
.state-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.state-note { margin: -8px 0 18px; color: #475569; font-size: .92rem; min-height: 1.4em; }
.state-note:empty { display: none; }

/* Filtered out */
.site-card[hidden], .site-group[hidden], .site-grid[hidden], .topic-jump a[hidden] { display: none; }
/* A chosen state's own services come first, Australia-wide ones after */
.site-grid .site-card.is-local { order: -1; }

/* Screenshot cards: calm wash while the picture loads, never a blank white box */
.site-card > img { background: var(--gray-50); }

/* Text-only cards (no screenshot): topic icon, domain, where it serves */
.site-card:not(:has(> img)) > div { flex: 1; align-content: start; }
.site-card:not(:has(> img)) .site-go { margin-top: auto; padding-top: 6px; }
.link-top > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-state { flex: none; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--gray-150); color: var(--gray-600); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }

@media (max-width: 600px) {
  .state-pick { gap: 6px; }
  .state-pick span { width: 100%; }
  .state-pick button { padding: 0 12px; font-size: .85rem; }
  .site-card:not(:has(> img)) > .link-top { padding: 14px 16px 0; background: none; border-bottom: 0; gap: 8px; }
  .site-card:not(:has(> img)) > .link-top svg { width: 18px; height: 18px; }
  .site-card:not(:has(> img)) > div { padding: 4px 16px 4px; gap: 4px; }
  .site-card:not(:has(> img)) .site-go { padding-top: 0; }
  .card-state { background: var(--accent-wash); border-color: transparent; color: var(--accent-ink); }
}
