/* Network Directory. Colours come from the theme's variables, so light and dark mode follow it. */
.nd { display: grid; gap: 1.25rem; margin: 0 0 3rem; min-width: 0; }
.nd [hidden] { display: none !important; }
.nd-search { margin: 0; }
.nd-sites { min-width: 0; }
.nd-sites .te-chip[aria-current="page"] { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.nd-sites .te-chip[aria-current="page"] .te-chip__count { color: inherit; opacity: .85; }
.nd-sites .te-chip[aria-current="page"] svg { color: inherit; }
.nd-status { margin: 0; }
.nd-status:empty { display: none; }

.nd-site { display: grid; gap: 1.25rem; padding-top: 1.75rem; border-top: 1px solid rgb(var(--bh-line, 226 232 240)); scroll-margin-top: 6rem; }
.nd-site:first-of-type, .nd-status + .nd-site, .nd-sites + .nd-status + .nd-site { border-top: 0; padding-top: .5rem; }
.nd-site__head { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; }
.nd-site__logo { flex: none; width: 3rem; height: 3rem; border-radius: .8rem; object-fit: cover; }
.nd-site__logo--icon { display: inline-grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary-text); }
.nd-site__text { flex: 1 1 16rem; min-width: 0; }
.nd-site__name { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.nd-site__name a { color: inherit; text-decoration: none; }
.nd-site__name a:hover { color: var(--color-primary-text); text-decoration: underline; text-underline-offset: 4px; }
.nd-site__desc { margin: .2rem 0 0; color: rgb(var(--bh-muted, 100 116 139)); font-size: .95rem; }
.nd-site__count { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary-text); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.nd-site__visit { flex: none; }

.nd-cat { display: grid; gap: .75rem; }
.nd-cat__name { display: flex; align-items: center; gap: .45rem; margin: .25rem 0 0; font-size: 1rem; font-weight: 700; color: rgb(var(--bh-muted, 100 116 139)); }
.nd-cat__name svg { width: 1.1rem; height: 1.1rem; }

.nd-empty { padding: 1.5rem; text-align: center; }
.nd-empty p { margin: .25rem 0 0; }
.nd-empty__title { font-weight: 700; font-size: 1.05rem; }
.nd-empty a { color: var(--color-primary-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nd-back { margin: .5rem 0 0; }

@media (max-width: 40rem) {
  .nd-site__visit { width: 100%; justify-content: center; }
  .nd-site__name { font-size: 1.2rem; }
}
