/* Spaces route shell: one rail for the masthead, search and content.
   Loaded only by directory/index.html; Home and other rubrics keep their layout. */
body.site-directory .hds-public-header.hds-public-header .hds-header-brand { margin-inline-start:0; }
body.site-directory .hds-header-search.hds-header-search.hds-header-search .directory-search-field:first-of-type { padding-left:0; }
body.site-directory :is(.route-selection-head, .taxonomy-selection-head, .city-results-controls) { flex-wrap:wrap; gap:16px; }
body.site-directory :is(.editorial-route-grid, .taxonomy-hero-grid, .city-route-hero-grid) > * { min-width:0; }
body.site-directory :is(.editorial-route-title, .taxonomy-hero h1, .city-route-title) { overflow-wrap:anywhere; }
@media(max-width:900px) {
  body.site-directory { --hds-public-rail:20px; --directory-gutter:var(--hds-public-rail); --page:var(--hds-public-rail); --hds-header-rail:var(--hds-public-rail); }
  body.site-directory :is(.editorial-route-hero, .taxonomy-hero, .directory-hub-hero) { padding-inline:var(--hds-public-rail); }
  body.site-directory :is(.route-links, .taxonomy-links) { margin-inline:var(--hds-public-rail); }
  body.site-directory .hds-header-search.hds-header-search.hds-header-search .directory-search-field:nth-of-type(odd) { padding-left:0; }
}

/* City, type and use pages share the same compact search as Space profiles. */
body.site-directory .city-search-shell { padding:16px var(--hds-public-rail) 0; }
body.site-directory .city-search-shell .search-box { width:100%; margin:0; padding:0; border:0; box-shadow:none; }
body.site-directory .city-search-shell .directory-search { grid-template-columns:repeat(4,minmax(0,1fr)) 160px; gap:0; padding:16px 0; border-block:1px solid #dedede; }
body.site-directory .city-search-shell .directory-search-field { display:grid; align-content:center; gap:7px; min-width:0; min-height:72px; padding:12px 18px; border:0; }
body.site-directory .city-search-shell .directory-search-field:first-of-type { padding-left:0; }
body.site-directory .city-search-shell .directory-search-field label { margin:0; line-height:1; }
body.site-directory .city-search-shell .directory-search-button { align-self:center; min-width:0; min-height:56px; padding:16px 24px; font:400 14px/22px 'Inter HDS',Inter,Arial,sans-serif; letter-spacing:0; text-transform:none; }
@media(max-width:980px) {
  body.site-directory .city-search-shell .directory-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.site-directory .city-search-shell .directory-search-field:nth-of-type(odd) { padding-left:0; }
  body.site-directory .city-search-shell .directory-search-field:nth-of-type(n+3) { border-top:1px solid #dedede; }
  body.site-directory .city-search-shell .directory-search-button { grid-column:1/-1; margin-top:8px; }
}
@media(max-width:900px) {
  body.site-directory:not(.is-space-view) .directory-floating-search { top:116px; width:calc(100% - 2 * var(--hds-public-rail)); }
  body.site-directory .directory-floating-toggle { min-height:56px; padding:10px 14px; border:1px solid #dedede; background:#fff; box-shadow:none; }
  body.site-directory .directory-floating-panel { padding:0 14px 14px; background:#fff; border:1px solid #dedede; box-shadow:none; max-height:calc(100svh - 196px); }
  body.site-directory .directory-floating-panel .directory-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.site-directory .directory-floating-panel .directory-search-field { padding:14px 8px; min-height:72px; }
  body.site-directory .directory-floating-panel .directory-search-field:nth-of-type(odd) { padding-left:0; }
  body.site-directory .directory-floating-panel .directory-search-button { grid-column:1/-1; min-width:0; min-height:48px; }
  body.site-directory .directory-collections,
  body.site-directory .directory-projects { padding-inline:var(--hds-public-rail); }
  body.site-directory .taxonomy-lower-editorial { margin-inline:var(--hds-public-rail); }
}

/* Signed-in Workspace access is a plain link in the Spaces masthead. */
body.site-directory.hds-workspace-signed-in .hds-public-header .hds-account-entry .hds-get-started-link {
  border: 0;
}
