/* Hub pages and the /categories and /locations indexes (src/render/hub.js). Loaded after
   listing.css, whose hero, eyebrow, chip, badge and band components these pages reuse.
   Mobile is the base. Not from a Claude Design template yet. */

.hub { padding-top: 24px; padding-bottom: 48px; }
.hub__facets { margin-bottom: 28px; }
.hub__h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.hub__n { font-size: 12px; color: var(--gray-500); margin-left: 4px; }
.hub__list { display: grid; gap: 12px; }

.hc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px; border: 1px solid var(--gray-200); border-radius: 16px; background: #fff; text-decoration: none; color: var(--brand-navy); }
.hc:hover { border-color: var(--brand-cyan); color: var(--brand-navy); }
.hc--q { box-shadow: var(--shadow-xs); }
.hc__tile { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--fg-2); font-size: 16px; font-weight: 900; }
.hc--q .hc__tile { background: var(--bg-tint); color: var(--accent-pressed); }
.hc__body { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc__name { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hc__meta { font-size: 14px; color: var(--fg-2); }
.hc__desc { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin-top: 4px; }

.hub__pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.hub__page { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--gray-300); border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--brand-navy); }
.hub__page:hover { border-color: var(--brand-cyan); }
.hub__pageno { font-size: 14px; color: var(--gray-500); }

/* indexes */
.idx { padding-top: 24px; padding-bottom: 56px; }
.idx__jump { margin-bottom: 32px; }
.idx__sec { padding: 20px 0; border-top: 1px solid var(--gray-200); scroll-margin-top: calc(var(--header-h) + 12px); }
.idx__h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.015em; margin: 0 0 12px; }
.idx__h2 a { color: var(--brand-navy); text-decoration: none; }
.idx__h2 a:hover { color: var(--brand-cyan); }
.idx__list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 32px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.idx__list li { padding: 3px 0; break-inside: avoid; scroll-margin-top: calc(var(--header-h) + 12px); }
.idx__list--cities { font-size: 15px; }
.idx__list--cities a { color: var(--brand-navy); font-weight: 500; text-decoration: none; }
.idx__list--cities a:hover { color: var(--brand-cyan); }
/* Phones: the ecosystem jump bar on /categories stays under the header as one row that scrolls
   sideways; the page runs to 25,000px on a phone (2026-10-18 mobile audit) */
@media (max-width: 719.98px) {
  .idx__jump { position: sticky; top: calc(var(--header-h) + 1px); z-index: 20; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px 24px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--gray-200); }
  .idx__jump::-webkit-scrollbar { display: none; }
  .idx__jump > * { flex: none; }
  /* html already pads anchor scrolls by the header (scroll-padding-top), so this adds the bar */
  .idx__sec { scroll-margin-top: 56px; }
}
@media (max-width: 480px) {
  .idx__jump { top: 65px; }
}

@media (min-width: 720px) {
  .idx__list { columns: 2; }
  .hub__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .idx__list { columns: 3; }
  .idx__list--cities { columns: 4; }
}

/* /directory search (src/render/directory.js) */
.dir__form { display: grid; gap: 12px; margin-top: 20px; padding: 16px; background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; box-shadow: var(--shadow-sm); }
.dir__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dir__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.dir__input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--brand-navy); }
.dir__input:focus { outline: none; border-color: var(--brand-cyan); box-shadow: var(--shadow-focus); }
.dir__go { min-height: 48px; align-self: end; justify-content: center; }
.dir__summary { margin: 0 0 16px; font-size: 15px; color: var(--fg-2); }
.dir__clear { margin-left: 8px; white-space: nowrap; }
.dir__none { padding: 28px 20px; border: 1px dashed var(--gray-300); border-radius: 16px; background: var(--bg-muted); }
.dir__none p { margin: 0 0 6px; }
@media (min-width: 860px) {
  .dir__form { grid-template-columns: 2fr 1.3fr 1.3fr auto; align-items: end; }
}
