/* Home housing filters carry their own counts ("Lease plans 3"). Written by home-opening.mjs. */
html.ds3 [data-housing-browser] .fg-filter-count { margin-left: 4px; font-variant-numeric: tabular-nums; font-weight: 500; opacity: .72; }
/* Phones: the four filters stay on one row; a long count scrolls the row instead of wrapping one filter alone. */
@media (max-width: 760px) {
  html.ds3 body [data-housing-browser] .housing-browser-filters.housing-browser-filters {
    flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  html.ds3 body [data-housing-browser] .housing-browser-filters::-webkit-scrollbar { display: none; }
  html.ds3 body [data-housing-browser] .housing-browser-filters > * { flex: 0 0 auto; }
  html.ds3 body [data-housing-browser] .fg-filter-count { margin-left: 2px; }
}

/* residence-lead.mjs linkCards: a card without a posted price says so where the price goes. */
html.ds3 body [data-housing-browser] .housing-browser-price.is-unposted { color: var(--ds3-muted, #6b6b6b); font-weight: 600; }
/* Photo credits under the phone thumbnail use the column gap too and break between words or after a
   domain's dots (linkCards adds those break points), not inside an operator's name. */
@media (max-width: 760px) {
  html.ds3 body [data-housing-browser] .housing-browser-photo figcaption { margin-inline-end: -12px; line-height: 1.35; }
  html.ds3 body [data-housing-browser] .housing-browser-photo figcaption a { overflow-wrap: break-word; word-break: normal; }
}
/* The card's checked date: one small muted line under its links, the same size as the date inside it,
   instead of body-size text that wrapped beside the links at a different baseline. */
html.ds3 body [data-housing-browser] .housing-browser-links > span {
  flex: 1 0 100%; margin: 2px 0 0; color: var(--ds3-muted, #6b6b6b); font-size: 13px; line-height: 1.4;
}
html.ds3 body [data-housing-browser] .housing-browser-links > span time { font-size: inherit; color: inherit; }
/* A plan without a posted price says "No posted price" like a card without plans: muted, not price-size. */
html.ds3 body [data-housing-browser] .ds3-price.is-unposted { color: var(--ds3-muted, #6b6b6b); font-size: .9375rem; font-weight: 600; }
html.ds3 body [data-housing-browser] .ds3-price.is-unposted > span { color: inherit; font: inherit; }
/* Phones: "Browse campus guides" under the title repeats the Browse button just above it (whose menu
   ends on All campus guides); the Campus map chip stays. Desktop keeps both beside the title. */
@media (max-width: 760px) {
  html.ds3 body:has(details.ds3-menu nav[data-fg-menu-areas]) main:has([data-housing-browser]) .ds3-page-head .ds3-head-actions a.ds3-chip[href="/campus/"] { display: none; }
}
/* One shared lease guide above the list instead of a "Housing guide" link on every priced card. */
html.ds3 body [data-housing-browser] .fg-list-guide { margin: 4px 0 12px; color: var(--ds3-muted, #6b6b6b); font-size: 15px; line-height: 1.45; }
html.ds3 body [data-housing-browser] .fg-list-guide a { color: var(--ds3-ink, #1f1f1f); font-weight: 600; text-underline-offset: 3px; }
